Browse Source

Make window titles translatable

Neal Wilson 6 years ago
parent
commit
a3283d8f35
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      config/Windows/editinvoiceitem.xml
  2. 1
    1
      config/Windows/purchase.xml

+ 1
- 1
config/Windows/editinvoiceitem.xml View File

@@ -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 View File

@@ -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…
Cancel
Save