From: Bernd Blessmann Date: Wed, 9 May 2012 09:15:20 +0000 (+0200) Subject: Spracheinstellungen bei Waren usw.: Übersetzungsfelder auch mehrzeilig X-Git-Tag: release-3.0.0beta1~340 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c068de1b9ec5eebe34ba76af1e1445dbb9564c70;p=kivitendo-erp.git Spracheinstellungen bei Waren usw.: Übersetzungsfelder auch mehrzeilig analog zu Beschreibung und Bemerkungen im Hauptfenster. --- diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 3eb67383c..d6ecbb5c5 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -2016,6 +2016,10 @@ sub parts_language_selection { $language->{translation} = $translation; $language->{longdescription} = $longdescription; + + $language->{translation_area} = ($language->{translation_rows} = $form->numtextrows($language->{translation}, 40)) > 1; + $language->{longdescription_rows} = max 4, $form->numtextrows($language->{longdescription}, 40); + last; } } diff --git a/templates/webpages/ic/parts_language_selection.html b/templates/webpages/ic/parts_language_selection.html index 95ed20d85..947f7d064 100644 --- a/templates/webpages/ic/parts_language_selection.html +++ b/templates/webpages/ic/parts_language_selection.html @@ -21,8 +21,14 @@ [%- FOREACH row = LANGUAGES %] [% HTML.escape(row.description) %] - - + + [%- IF row.translation_area %] + + [%- ELSE %] + + [%- END %] + + [%- IF loop.last %]