{if $message} Fehler: {$message} {else} {title text="Verknüpfungen"} {assign var=ids value=$Site->getLangIds()}

{assign var=no_use_langs value=""} {foreach from=$langs item=lang} {if $Site->existLang($lang, false) && $ids.$lang} {if $lang != $Project->getAttribute('lang')}
| {$Project->getAttribute('lang')} (#{$Site->getId()}) |  |  | {$lang} (#{$ids.$lang}) |
{/if} {assign var=existlang value=true} {else} {capture assign=no_use_langs}{$no_use_langs},{$lang}{/capture} {/if} {/foreach} {if !$existlang}
Keine Verknüpfung vorhanden
{/if}

{title text="Sprachverknüpfung hinzufügen"}

{strip} {if $no_use_langs != ''} {assign var=no_use_langs value=','|split:$no_use_langs} {/if} {if is_array($no_use_langs)} {foreach from=$no_use_langs item=no_lang} {if $Project->getAttribute('lang') != $no_lang} {$no_lang}, {/if} {/foreach} {elseif !$existlang} {assign var=langs value=$Project->getAttribute('langs')} {foreach from=$langs item=lang} {if $Project->getAttribute('lang') != $lang} {$lang}, {/if} {/foreach} {else} Alle Sprachen sind verknüpft {/if} {/strip}

{/if}