From c068de1b9ec5eebe34ba76af1e1445dbb9564c70 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Wed, 9 May 2012 11:15:20 +0200 Subject: [PATCH] =?utf8?q?Spracheinstellungen=20bei=20Waren=20usw.:=20?= =?utf8?q?=C3=9Cbersetzungsfelder=20auch=20mehrzeilig?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit analog zu Beschreibung und Bemerkungen im Hauptfenster. --- bin/mozilla/ic.pl | 4 ++++ templates/webpages/ic/parts_language_selection.html | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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 %] -- 2.20.1