Browse Source

Make window titles translatable

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

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

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

Loading…
Cancel
Save