translations in app/assets/javascripts/admin

This commit is contained in:
knopfler81
2015-12-14 20:20:01 +01:00
committed by elf Pavlik
parent 30141bd488
commit ed48b691e1
6 changed files with 38 additions and 21 deletions

View File

@@ -7,7 +7,7 @@ angular.module("ofn.admin").controller "AdminEnterpriseRelationshipsCtrl", ($sco
$scope.EnterpriseRelationships.create($scope.parent_id, $scope.child_id, $scope.permissions)
$scope.delete = (enterprise_relationship) ->
if confirm("Are you sure?")
if confirm(t("are_you_sure"))
$scope.EnterpriseRelationships.delete enterprise_relationship
$scope.toggleKeyword = (string, key) ->

View File

@@ -40,7 +40,7 @@ angular.module("ofn.admin").controller "AdminVariantOverridesCtrl", ($scope, $ti
$scope.update = ->
if DirtyVariantOverrides.count() == 0
StatusMessage.display 'alert', 'No changes to save.'
StatusMessage.display 'alert', 'No change to save '
else
StatusMessage.display 'progress', 'Saving...'
DirtyVariantOverrides.save()

View File

@@ -5,11 +5,11 @@ angular.module("admin.enterprise_groups")
$scope.menu.setItems [
{ name: 'Primary Details', icon_class: "icon-user" }
{ name: 'Users', icon_class: "icon-user" }
{ name: 'About', icon_class: "icon-pencil" }
{ name: 'Images', icon_class: "icon-picture" }
{ name: 'Contact', icon_class: "icon-phone" }
{ name: 'Web', icon_class: "icon-globe" }
{ name: (t('users')), icon_class: "icon-user" }
{ name: (t('about')), icon_class: "icon-pencil" }
{ name: (t('images')), icon_class: "icon-picture" }
{ name: (t('contact')), icon_class: "icon-phone" }
{ name: (t('web')), icon_class: "icon-globe" }
]
$scope.select(0)

View File

@@ -6,7 +6,7 @@ angular.module("admin.enterprises")
$scope.navClear = NavigationCheck.clear
$scope.pristineEmail = $scope.Enterprise.email
$scope.menu = SideMenu
$scope.newManager = { id: '', email: (t("add_manager")) }
$scope.newManager = { id: '', email: (t('add_manager')) }
# Provide a callback for generating warning messages displayed before leaving the page. This is passed in
# from a directive "nav-check" in the page - if we pass it here it will be called in the test suite,

View File

@@ -5,19 +5,19 @@ angular.module("admin.enterprises")
$scope.select = SideMenu.select
$scope.menu.setItems [
{ name: 'Primary Details', icon_class: "icon-home" }
{ name: 'Users', icon_class: "icon-user" }
{ name: 'Address', icon_class: "icon-map-marker" }
{ name: 'Contact', icon_class: "icon-phone" }
{ name: 'Social', icon_class: "icon-twitter" }
{ name: 'About', icon_class: "icon-pencil" }
{ name: 'Business Details', icon_class: "icon-briefcase" }
{ name: 'Images', icon_class: "icon-picture" }
{ name: "Properties", icon_class: "icon-tags", show: "showProperties()" }
{ name: "Shipping Methods", icon_class: "icon-truck", show: "showShippingMethods()" }
{ name: "Payment Methods", icon_class: "icon-money", show: "showPaymentMethods()" }
{ name: "Enterprise Fees", icon_class: "icon-tasks", show: "showEnterpriseFees()" }
{ name: "Shop Preferences", icon_class: "icon-shopping-cart", show: "showShopPreferences()" }
{ name: (t('primary_details')), icon_class: "icon-home" }
{ name: (t('users')), icon_class: "icon-user" }
{ name: (t('address')), icon_class: "icon-map-marker" }
{ name: (t('contact')), icon_class: "icon-phone" }
{ name: (t('social')), icon_class: "icon-twitter" }
{ name: (t('about')), icon_class: "icon-pencil" }
{ name: (t('business_details')), icon_class: "icon-briefcase" }
{ name: (t('images')), icon_class: "icon-picture" }
{ name: (t("properties")), icon_class: "icon-tags", show: "showProperties()" }
{ name: (t("shipping_methods")), icon_class: "icon-truck", show: "showShippingMethods()" }
{ name: (t("payment_methods")), icon_class: "icon-money", show: "showPaymentMethods()" }
{ name: (t("enterprise_fees")), icon_class: "icon-tasks", show: "showEnterpriseFees()" }
{ name: (t("shop_preferences")), icon_class: "icon-shopping-cart", show: "showShopPreferences()" }
]
$scope.select(0)

View File

@@ -876,3 +876,20 @@ Please follow the instructions there to make your enterprise visible on the Open
remain_unsaved: "remain unsaced"
add_manager: "Add a manager"
is_already_manager: "is already a manager!"
no_change_to_save: " No change to save"
add_manager: "Add a manager"
users: "Users"
about: "About"
images: "Images"
contact: "Contact"
web: "Web"
primary_details: "Primary Details"
adrdress: "Address"
contact: "Contact"
social: "Social"
business_details: "Business Details"
properties: "Properties"
shipping_methods: "Shipping Methods"
payment_methods: "Payment Methods"
enterprise_fees: "Enterprise Fees"
shop_preferences: "Shop Preferences"