Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c068de1b

Von Bernd Blessmann vor mehr als 12 Jahren hinzugefügt

  • ID c068de1b9ec5eebe34ba76af1e1445dbb9564c70
  • Vorgänger 9d3c499e
  • Nachfolger bd9b5588

Spracheinstellungen bei Waren usw.: Übersetzungsfelder auch mehrzeilig

analog zu Beschreibung und Bemerkungen im Hauptfenster.

Unterschiede anzeigen:

bin/mozilla/ic.pl
2016 2016

  
2017 2017
        $language->{translation}     = $translation;
2018 2018
        $language->{longdescription} = $longdescription;
2019

  
2020
        $language->{translation_area}     = ($language->{translation_rows} = $form->numtextrows($language->{translation}, 40)) > 1;
2021
        $language->{longdescription_rows} = max 4, $form->numtextrows($language->{longdescription}, 40);
2022

  
2019 2023
        last;
2020 2024
      }
2021 2025
    }
templates/webpages/ic/parts_language_selection.html
21 21
    [%- FOREACH row = LANGUAGES %]
22 22
    <tr class="listrow[% loop.count % 2 %]">
23 23
     <td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td>
24
     <td><input  id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td>
25
     <td><input  id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td>
24
     <td>
25
       [%- IF row.translation_area %]
26
         <textarea id="translation_[% loop.count %]" name="translation_[% loop.count %]" rows="[% HTML.escape(row.translation_rows) %]" cols=40 wrap="soft">[% HTML.escape(row.translation) %]</textarea>
27
       [%- ELSE %]
28
         <input  id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]">
29
       [%- END %]
30
     </td>
31
     <td><textarea id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" rows="[% HTML.escape(row.longdescription_rows) %]" cols=40 wrap="soft">[% HTML.escape(row.longdescription) %]</textarea></td>
26 32
    </tr>
27 33

  
28 34
    [%- IF loop.last %]

Auch abrufbar als: Unified diff