Skip to content

Commit

Permalink
Translations to syncing contacts modal
Browse files Browse the repository at this point in the history
  • Loading branch information
melonmanchan committed Feb 16, 2016
1 parent 227dfb9 commit ced751e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/js/controllers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

angular.module('settings', [])

.controller('SettingsCtrl', function($scope, $ionicLoading, contactsFactory) {
.controller('SettingsCtrl', function($scope, $ionicLoading, $translate, contactsFactory) {

$scope.updateContactsList = function () {
$ionicLoading.show({template: 'Syncing contacts...'});
$ionicLoading.show({template: $translate.instant('SYNCING_CONTACTS')});
return contactsFactory.syncContactsWithServer()
.then(function () {
$ionicLoading.hide();
Expand Down
7 changes: 4 additions & 3 deletions app/res/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"ACTIONS": "Actions",
"NO_CONTACTS_SEARCH": "No matching contacts",
"NO_CONTACTS_FOUND": "Looks like your phone doesn't have any contacts that have SoAR installed",
"CALL_HEADER": "Call with {{displayName}}",
"CALL_INCOMING_TEMPLATE": "Incoming call. Answer?",
"CALL_INCOMING_TITLE":" Call from {{displayName}}",
Expand All @@ -20,9 +18,11 @@
"LOST_PASSWORD": " Lost password?",
"MALFORMED_NUMBER": "Your number seems to not be valid!",
"MISCALLENEOUS": "Miscellaneous",
"MOBILE_NUMBER_EXAMPLE": "eg. +358 40 123456",
"MOBILE_NUMBER": "Mobile number",
"MOBILE_NUMBER_EXAMPLE": "eg. +358 40 123456",
"NOTIFICATION_CALL" : "SoAR call from {{displayName}} ( {{mediaConnection}} )",
"NO_CONTACTS_FOUND": "Looks like your phone doesn't have any contacts that have SoAR installed",
"NO_CONTACTS_SEARCH": "No matching contacts",
"NO_VERIFICATION": "Verification code not found",
"PASSWORD": "Password",
"PASSWORD_AGAIN": "Password again",
Expand All @@ -40,6 +40,7 @@
"SAR_CALL": "Call with SoAR",
"SEARCH": "Search",
"SETTINGS": "Settings",
"SYNCING_CONTACTS": "Syncing your contacts...",
"TIMEOUT_ERROR" : "Connection timed out",
"UNSPECIFIED_ERROR" : "Unspecified error",
"USER_ALREADY_IN_CALL": "User is already in call!",
Expand Down
5 changes: 3 additions & 2 deletions app/res/locales/fi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"ACTIONS": "Toiminnot",
"NO_CONTACTS_SEARCH": "Ei vastaavia kontakteja",
"NO_CONTACTS_FOUND": "Näyttää siltä, että sinulla ei ole SoAR:n asentaneita kontakteja puhelimellasi",
"CALL_HEADER": "Puhelu {{displayName}}:n kanssa",
"CALL_INCOMING_TEMPLATE": "Puhelu tulossa. Vastaa?",
"CALL_INCOMING_TITLE":" Puhelu {{displayName}}:lta",
Expand All @@ -23,6 +21,8 @@
"MOBILE_NUMBER": "Puhelinnumero",
"MOBILE_NUMBER_EXAMPLE": "Esim. +358 40 123456",
"NOTIFICATION_CALL" : "SoAR-puhelu {{displayName}}:lta ( {{mediaConnection}} )",
"NO_CONTACTS_FOUND": "Näyttää siltä, että sinulla ei ole SoAR:n asentaneita kontakteja puhelimellasi",
"NO_CONTACTS_SEARCH": "Ei vastaavia kontakteja",
"NO_VERIFICATION": "Kyseistä koodia ei löytynyt",
"PASSWORD": "Salasana",
"PASSWORD_AGAIN": "Salasana uudelleen",
Expand All @@ -40,6 +40,7 @@
"SAR_CALL": "Soita SoAR:lla",
"SEARCH": "Hae",
"SETTINGS": "Asetukset",
"SYNCING_CONTACTS": "Päivitetään kontakteja...",
"TIMEOUT_ERROR" : "Yhteyttä palvelimeen ei saatu",
"UNSPECIFIED_ERROR" : "Tuntematon virhe",
"USER_ALREADY_IN_CALL": "Käyttäjällä on puhelu kesken!",
Expand Down

0 comments on commit ced751e

Please sign in to comment.