Skip to content

Commit

Permalink
Add translations for app settings
Browse files Browse the repository at this point in the history
  • Loading branch information
manu-d committed Nov 14, 2017
1 parent 514a567 commit 23750a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/app/views/apps/modals/app-settings-modal.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

angular.module 'mnoEnterpriseAngular'
.controller('DashboardAppSettingsModalCtrl', ($scope, MnoConfirm, MnoeOrganizations, $uibModalInstance, MnoeAppInstances, Utilities, app, $window, ImpacMainSvc, toastr, $translate)->
.controller('DashboardAppSettingsModalCtrl', ($scope, MnoConfirm, MnoeOrganizations, $uibModalInstance, MnoeAppInstances, Utilities, app, $window, ImpacMainSvc, toastr, $filter, $translate)->

$scope.modal ||= {}
$scope.app = app
Expand Down Expand Up @@ -217,7 +217,7 @@ angular.module 'mnoEnterpriseAngular'
switch $scope.selectedTab
when 0
MnoeAppInstances.sync($scope.app)
toastr.success("The sync with Neto has started")
toastr.success($filter('translate')("mno_enterprise.templates.impac.dock.settings.sync_started", { appname: $scope.app.name }))

return

Expand Down
12 changes: 6 additions & 6 deletions src/app/views/apps/modals/app-settings-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3><b>{{ 'mno_enterprise.templates.impac.dock.settings.settings' | translate }}
<hr>
<uib-tabset active="activeJustified" justified="true">
<uib-tab index="0" heading="History" ng-click="loadSyncs()" select="selectHistory()">
<h4 class="text-center" style="margin-bottom: 20px; margin-top: 20px">List of previous synchronizations:</h4>
<h4 class="text-center" style="margin-bottom: 20px; margin-top: 20px">{{ 'mno_enterprise.templates.impac.dock.settings.sync_list' | translate }}</h4>
<mno-sortable-table row-collection="syncs.list" fields="mnoSyncsTableFields" is-loading="syncs.loading" pipe="sortableSyncsServerPipe"></mno-sortable-table>

<div class="pagination">
Expand Down Expand Up @@ -48,13 +48,13 @@ <h4 class="text-center" style="margin-bottom: 20px; margin-top: 20px">List of pr
</uib-tab>

<uib-tab index="2" heading="Entities" select="selectEntities()">
<h4 class="text-center" style="margin-bottom: 20px; margin-top: 20px">Chose which entities you want to synchronize</h4>
<h4 class="text-center" style="margin-bottom: 20px; margin-top: 20px">{{"mno_enterprise.templates.components.addon_connect.entities.chose_entities" | translate}}</h4>

<table class="table-striped table-condensed">
<tr>
<th>Entity&nbsp</th>
<th>From Connec™ to Neto&nbsp</th>
<th>From Neto to Connec™&nbsp</th>
<th>{{"mno_enterprise.templates.components.addon_connect.entities.entity" | translate}}&nbsp</th>
<th>{{"mno_enterprise.templates.components.addon_connect.entities.to_app" | translate:{ appname: app.app_name} }}&nbsp</th>
<th>{{"mno_enterprise.templates.components.addon_connect.entities.to_connec" | translate:{ appname: app.app_name} }}&nbsp</th>
</tr>
<tr ng-repeat="entity in app.addon_organization.displayable_synchronized_entities">
<td>{{entity.connec_name}}&nbsp</td>
Expand Down Expand Up @@ -100,7 +100,7 @@ <h4 class="text-center" style="margin-bottom: 20px; margin-top: 20px">Chose whic
<div class="col-xs-13">
<div class="panel-group">
<div class="btn-toolbar">
<button class="btn btn-warning" ng-hide="!helper.isAddOnSettingShown(app)" ng-click="disconnect()"> Disconnect
<button class="btn btn-warning" ng-hide="!helper.isAddOnSettingShown(app)" ng-click="disconnect()"> {{ "mno_enterprise.templates.impac.dock.settings.disconnect_app" | translate }}
<i class="fa fa-refresh fa-spin" ng-if="isDisconnecting"></i>
</button>
<button class="btn btn-danger" ng-hide="app.showDelete" ng-click="app.showDelete = !app.showDelete">{{ 'mno_enterprise.templates.impac.dock.settings.delete' | translate }}</button>
Expand Down
6 changes: 4 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@
"mno_enterprise.templates.impac.dock.settings.linked_to": "Linked to",
"mno_enterprise.templates.impac.dock.settings.organization_id": "Organization id",
"mno_enterprise.templates.impac.dock.settings.group_id": "Group id (uid)",
"mno_enterprise.templates.impac.dock.settings.sync_started": "The sync with {appname} has started",
"mno_enterprise.templates.impac.dock.settings.sync_list": "List of previous synchronizations:",
"mno_enterprise.templates.impac.dock.settings.disconnect_app": "Disconnect",
"mno_enterprise.templates.impac.dock.add_more_apps": "Add more apps",
"mno_enterprise.templates.impac.dock.cancel": "Cancel",
"mno_enterprise.templates.impac.dock.do_not_have_apps": "It looks like you don't have any apps",
Expand Down Expand Up @@ -859,7 +862,6 @@
"mno_enterprise.templates.dashboard.account.authorize.action": "Authorize",
"mno_enterprise.templates.dashboard.account.authorize.success_toastr": "The access has been authorized",
"mno_enterprise.templates.dashboard.account.authorize.error_toastr": "An error occured, the access could not be authorized",

"mno_enterprise.templates.dashboard.account.register": "Register!",
"mno_enterprise.templates.dashboard.account.show": "Show",
"mno_enterprise.templates.dashboard.account.hide": "Hide",
Expand Down Expand Up @@ -937,7 +939,7 @@
"mno_enterprise.templates.components.addon_connect.entities.to_app": "From Connec™ to {appname}",
"mno_enterprise.templates.components.addon_connect.entities.chose_entities": "Chose which entities you want to synchronize",
"mno_enterprise.templates.components.addon_connect.entities.to_connec": "From {appname} to Connec™",
"mno_enterprise.templates.components.addon_connect.sync,sync_launched": "Congratulations, your data is now being synced!",
"mno_enterprise.templates.components.addon_connect.sync.sync_launched": "Congratulations, your data is now being synced!",
"mno_enterprise.templates.components.addon_connect.sync.start_sync": "Start synchronizing",
"mno_enterprise.templates.components.addon_connect.sync.chose_historical": "Chose wether to synchronize historical data",
"mno_enterprise.templates.components.addon_connect.sync.warning_hisorical_html": "<p><b>All data</b> created prior to the date you linked Neto <b>will be synchronized both ways</b></p><p>It means that:<br/>- all data from applications you already have linked to the platform will be sent to your Neto account<br/>- all exisiting data from Neto will be sent to your other applications<br/></p><p>If you have been manually copying records in multiple applications, <b>you risk seeing duplicates arising!</b></p><p><b>This action cannot be undone at any time!</b></p><b>Synchronize my historical data:</b>",
Expand Down

0 comments on commit 23750a6

Please sign in to comment.