Procházet zdrojové kódy

Make window titles translatable

Neal Wilson před 7 roky
rodič
revize
a3283d8f35

+ 1
- 1
config/Windows/editinvoiceitem.xml Zobrazit soubor

@@ -27,7 +27,7 @@
27 27
     <program>
28 28
         <![CDATA[
29 29
             window = this;
30
-            this.windowTitle = 'Typica - Item Detail';
30
+            this.windowTitle = TTR("invoiceitemdetail", "Typica - Item Detail");
31 31
             var nameField = findChildObject(this, 'name');
32 32
             var referenceField = findChildObject(this, 'reference');
33 33
             var costField = findChildObject(this, 'cost');

+ 1
- 1
config/Windows/purchase.xml Zobrazit soubor

@@ -159,7 +159,7 @@
159 159
 				}
160 160
 				return w;
161 161
 			};
162
-            this.windowTitle = 'Typica - Coffee Purchase';
162
+            this.windowTitle = TTR("purchase", "Typica - Coffee Purchase");
163 163
             var form = findChildObject(this, 'form');
164 164
             form.setMaximumElementHeight(320);
165 165
             var appendForm = function() {

Loading…
Zrušit
Uložit