]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Die Sprachauswahl temporär deaktivieren und auf "Deutsch" hardcodieren.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 5 Jun 2009 11:59:56 +0000 (11:59 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 5 Jun 2009 11:59:56 +0000 (11:59 +0000)
Wird die Sprache von "Deutsch" auf eine beliebige andere umgestellt,
so bekommt man sofort Perl-Fehler wegen Objektzugriffe auf nicht
definierte Variablen. Der Grund ist, dass das anzulegende
Locale-Objekt halb leer ist und nicht die Iconv-Instanzen enthält.

Temporärer Fix für Bug 1037.

locale/de/all
templates/webpages/admin/edit_user_de.html
templates/webpages/admin/edit_user_master.html
templates/webpages/am/config_de.html
templates/webpages/am/config_master.html

index da1f6a9136aa515b906fdf0b4a6a53f41cb2f3db..984d0985ac190b5736c1f9fafdd75cf3bbb12015 100644 (file)
@@ -728,6 +728,7 @@ $self->{texts} = {
   'General ledger and cash'     => 'Finanzbuchhaltung und Zahlungsverkehr',
   'General ledger corrections'  => 'Korrekturen im Hauptbuch',
   'Generic Tax Report'          => 'USTVA Bericht',
+  'German'                      => 'Deutsch',
   'Given Name'                  => 'Vorname',
   'Greeting'                    => 'Anrede',
   'Group'                       => 'Warengruppe',
index ebe3a9905496256e420a9faba0409d7f4d698648..7ab87881289ad3d65deceb9a9fb22985bbfcf812 100644 (file)
       <tr>
        <th align="right">Sprache</th>
        <td>
-        <select name="countrycode">
+        Deutsch
+        <input type="hidden" name="countrycode" value="de">
+<!--        <select name="countrycode">
          [% FOREACH row = ALL_COUNTRYCODES %]<option value="[% HTML.escape(row.value) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
          [% END %]
-        </select>
+        </select>-->
        </td>
       </tr>
 
index bb89a5a27dcf4307efc930752eedde04b8902675..ef9c3b66fe6c7603a6572e8a1a109e3e412916a3 100644 (file)
       <tr>
        <th align="right"><translate>Language</translate></th>
        <td>
-        <select name="countrycode">
+        <translate>German</translate>
+        <input type="hidden" name="countrycode" value="de">
+<!--        <select name="countrycode">
          [% FOREACH row = ALL_COUNTRYCODES %]<option value="[% HTML.escape(row.value) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
          [% END %]
-        </select>
+        </select>-->
        </td>
       </tr>
 
index 417a52f8e92e7cfff789c6fe2d477e79bc369fd1..88c24b70cef4c609403f23ec35b61aad6e978885 100644 (file)
      <tr>
       <th align="right">Sprache</th>
       <td>
-       <select name="countrycode">
+       Deutsch
+       <input type="hidden" name="countrycode" value="de">
+<!--       <select name="countrycode">
         [%- FOREACH row = COUNTRYCODES %]
         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
         [%- END %]
-       </select>
+       </select>-->
       </td>
      </tr>
 
index 08494352e428324d6c6f45f29b13533a4fbe11c3..43347ee044921389c8f8dbda32e117a988237bcf 100644 (file)
      <tr>
       <th align="right"><translate>Language</translate></th>
       <td>
-       <select name="countrycode">
+       <translate>German</translate>
+       <input type="hidden" name="countrycode" value="de">
+<!--       <select name="countrycode">
         [%- FOREACH row = COUNTRYCODES %]
         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
         [%- END %]
-       </select>
+       </select>-->
       </td>
      </tr>