0009872: fix duplicate translations in de.po
authorAlexander Stintzing <a.stintzing@metaways.de>
Mon, 28 Apr 2014 10:30:36 +0000 (12:30 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 10 Sep 2014 11:06:39 +0000 (13:06 +0200)
fix duplicate translations in de.po

 - added filter sales.costcenter

Change-Id: I108bf374d5a2fd1998aa29077e7bbb37c39b9096
Reviewed-on: http://gerrit.tine20.com/customers/565
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Sales/Model/Contract.php
tine20/Sales/js/ContractCostCenterFilterModel.js

index 929d7f9..00d6a61 100644 (file)
@@ -59,6 +59,21 @@ class Sales_Model_Contract extends Tinebase_Record_Abstract
         'appName'           => 'Sales',
         'modelName'         => 'Contract',
         
+        'filterModel' => array(
+            'costcenter' => array(
+                'filter' => 'Tinebase_Model_Filter_ExplicitRelatedRecord',
+                'label' => 'Cost Center', // _('Cost Center')
+                'options' => array(
+                    'controller' => 'Sales_Controller_CostCenter',
+                    'filtergroup' => 'Sales_Model_CostCenterFilter',
+                    'own_filtergroup' => 'Sales_Model_ContractFilter',
+                    'own_controller' => 'Sales_Controller_Contract',
+                    'related_model' => 'Sales_Model_CostCenter',
+                ),
+                'jsConfig' => array('filtertype' => 'sales.contractcostcenter')
+            ),
+        ),
+        
         'fields'            => array(
             'number' => array(
                 'label' => 'Number', //_('Number')
index 1bfece8..82887e8 100644 (file)
@@ -27,7 +27,7 @@ Tine.Sales.ContractCostCenterFilterModel = Ext.extend(Tine.widgets.grid.ForeignR
      */
     initComponent: function() {
         this.app = Tine.Tinebase.appMgr.get('Sales');
-        this.label = this.app.i18n._('Cost Center');
+        this.label = this.app.i18n.n_('Cost Center', 'Cost Centers', 1);
         this.foreignRecordClass = Tine.Sales.Model.CostCenter;
         this.pickerConfig = {emptyText: this.app.i18n._('without CostCenter'), allowBlank: true};
 
@@ -35,4 +35,4 @@ Tine.Sales.ContractCostCenterFilterModel = Ext.extend(Tine.widgets.grid.ForeignR
     }
 });
 
-Tine.widgets.grid.FilterToolbar.FILTERS['sales.contract.costcenter'] = Tine.Sales.ContractCostCenterFilterModel;
+Tine.widgets.grid.FilterToolbar.FILTERS['sales.contractcostcenter'] = Tine.Sales.ContractCostCenterFilterModel;