fix billing and delivery address translations
authorsstamer <s.stamer@metaways.de>
Thu, 15 Jan 2015 12:58:38 +0000 (13:58 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Tue, 20 Jan 2015 14:17:49 +0000 (15:17 +0100)
TODO: this should use the singular/plural translations

Change-Id: Id6ce73c9c4d1e58fc3192ed93d0a3fb200f12333
Reviewed-on: http://gerrit.tine20.com/customers/1533
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Sales/js/BillingAddressGridPanel.js
tine20/Sales/js/DeliveryAddressGridPanel.js
tine20/Sales/translations/de.po

index bfd46a5..6fe9e9d 100644 (file)
@@ -35,8 +35,9 @@ Tine.Sales.BillingAddressGridPanel = Ext.extend(Tine.Sales.AddressGridPanel, {
     initComponent: function() {
         this.addressType = 'billing';
         
-        this.i18nRecordName  = this.app.i18n.n_hidden('Billing Address', 'Billing Addresses', 1);
-        this.i18nRecordsName = this.app.i18n.n_hidden('Billing Address', 'Billing Addresses', 2);
+        // TODO use singular/plural translations here
+        this.i18nRecordName  = this.app.i18n._('Billing Address');
+        this.i18nRecordsName = this.app.i18n._('Billing Addresses');
         
         Tine.Sales.BillingAddressGridPanel.superclass.initComponent.call(this);
     }
index f64ec5b..4f1ecef 100644 (file)
@@ -35,8 +35,9 @@ Tine.Sales.DeliveryAddressGridPanel = Ext.extend(Tine.Sales.AddressGridPanel, {
     initComponent: function() {
         this.addressType = 'delivery';
         
-        this.i18nRecordName  = this.app.i18n.n_hidden('Delivery Address', 'Delivery Addresses', 1);
-        this.i18nRecordsName = this.app.i18n.n_hidden('Delivery Address', 'Delivery Addresses', 2);
+        // TODO use singular/plural translations here
+        this.i18nRecordName  = this.app.i18n._('Delivery Address');
+        this.i18nRecordsName = this.app.i18n._('Delivery Addresses');
         
         this.modelConfig = Ext.decode(Ext.encode(this.modelConfig));
         
index f121da9..08b72d2 100644 (file)
@@ -364,7 +364,7 @@ msgstr "Kostenstelle"
 #: js/InvoiceDetailsPanel.js:115 js/ContractEditDialog.js:240
 #: js/AddressEditDialog.js:74
 msgid "Billing Address"
-msgstr "Rechnungsanschriften"
+msgstr "Rechnungsanschrift"
 
 #: Model/Contract.php:152 Model/ProductAggregate.php:106
 #: js/ProductAggregateGridPanel.js:231 js/ContractEditDialog.js:250
@@ -732,7 +732,7 @@ msgstr "Ok"
 
 #: js/AddressEditDialog.js:77
 msgid "Delivery Address"
-msgstr "Lieferanschriften"
+msgstr "Lieferanschrift"
 
 #: js/AddressEditDialog.js:84
 #, python-brace-format