CRM-15705 - crmUiWizard - Label and translate previous/next buttons
authorTim Otten <totten@civicrm.org>
Thu, 19 Feb 2015 18:23:11 +0000 (10:23 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 19 Feb 2015 18:23:11 +0000 (10:23 -0800)
js/angular-crm-ui.js
partials/crmUi/wizard.html

index 731941bfe1e12ccef9720ad5ea79e56de26ee5d1..01be58540784c99bff85d507cd051322f4a5c3bf 100644 (file)
             $parse($scope.crmUiWizard).assign($scope.$parent, this);
           }
         },
-        link: function (scope, element, attrs) {}
+        link: function (scope, element, attrs) {
+          scope.ts = CRM.ts(null);
+        }
       };
     })
 
index 4988fbd05feafcee52b5287117baa046e4886c23..f10a1388f9ffa7b540019ebcda54b53752d47cb7 100644 (file)
@@ -9,7 +9,7 @@
   </ul>
   <div class="crm-wizard-body" ng-transclude/>
   <div class="crm-wizard-buttons">
-    <button crm-icon="triangle-1-w" ng-click="crmUiWizardCtrl.previous()" ng-show="!crmUiWizardCtrl.$first()"></button>
-    <button crm-icon="triangle-1-e" ng-click="crmUiWizardCtrl.next()" ng-show="!crmUiWizardCtrl.$last()" ng-disabled="!crmUiWizardCtrl.$validStep()"></button>
+    <button crm-icon="triangle-1-w" ng-click="crmUiWizardCtrl.previous()" ng-show="!crmUiWizardCtrl.$first()">{{ts('Previous')}}</button>
+    <button crm-icon="triangle-1-e" ng-click="crmUiWizardCtrl.next()" ng-show="!crmUiWizardCtrl.$last()" ng-disabled="!crmUiWizardCtrl.$validStep()">{{ts('Next')}}</button>
   </div>
 </div>