Translation fixes

This commit is contained in:
2013-03-04 09:36:17 +01:00
parent 798281bbe2
commit 730f910881
8 changed files with 26 additions and 3 deletions
@@ -44,7 +44,7 @@ function currency(num) {
return Qwaiter.currency(num); return Qwaiter.currency(num);
} }
$(function(){ $(function(){
$locale = Qstorage.getItem('locale') || 'en'; //$locale = Qstorage.getItem('locale') || 'en';
if(Qstorage.getItem('message')){ if(Qstorage.getItem('message')){
var container = $('.alert-success'); var container = $('.alert-success');
var msg_finder = Qstorage.getItem('message'); var msg_finder = Qstorage.getItem('message');
+1 -1
View File
@@ -22,7 +22,7 @@ module ApplicationHelper
super(*args) super(*args)
end end
def are_you_sure?(record) def are_you_sure?(record = nil)
t('helpers.links.are_you_sure') t('helpers.links.are_you_sure')
end end
+1
View File
@@ -18,6 +18,7 @@ html lang="en"
link href="/favicon.ico" rel="shortcut icon" link href="/favicon.ico" rel="shortcut icon"
javascript: javascript:
var $locale = '#{I18n.locale}';
var supplier_id = '#{current_supplier.id}'; var supplier_id = '#{current_supplier.id}';
var data_host = ''; var data_host = '';
var event_host = '#{event_host}'; var event_host = '#{event_host}';
@@ -10,6 +10,7 @@
= label_tag "product-checker-#{product.id}", product.display = label_tag "product-checker-#{product.id}", product.display
br br
.control-group .control-group
= label_tag nil, ProductCategory.human_attribute_name(:week_days), class: 'control-label'
.controls .controls
#week_days-group.btn-group data-toggle="buttons-checkbox" #week_days-group.btn-group data-toggle="buttons-checkbox"
span#full_day-controller.icon.icon-time span#full_day-controller.icon.icon-time
@@ -5,7 +5,7 @@
ul#product-category-list data-update-url=sort_suppliers_product_categories_path ul#product-category-list data-update-url=sort_suppliers_product_categories_path
- for product_category in @product_categories - for product_category in @product_categories
= content_tag_for :li, product_category do = content_tag_for :li, product_category do
span.handle [drag] span.handle.icon-move.icon-white
span.name= link_to product_category.name, [:suppliers, product_category] span.name= link_to product_category.name, [:suppliers, product_category]
.pull-right.actions .pull-right.actions
= link_to t('helpers.links.edit'), [:edit, :suppliers, product_category], class: 'btn btn-mini' = link_to t('helpers.links.edit'), [:edit, :suppliers, product_category], class: 'btn btn-mini'
+7
View File
@@ -19,6 +19,13 @@ en:
product_category: Product categories product_category: Product categories
section: Sections section: Sections
attributes: attributes:
product_category:
name: Name
position: Position
week_days: Availability
full_day: Whole day
start_from: From
end_on: Till
product: product:
name: Name name: Name
code: Code code: Code
+7
View File
@@ -19,6 +19,13 @@ nl:
product_category: Product categorieen product_category: Product categorieen
section: Afdelingen section: Afdelingen
attributes: attributes:
product_category:
name: Naam
position: Positie
week_days: Beschikbaarheid
full_day: De hele dag
start_from: Van
end_on: Tot
product: product:
name: Naam name: Naam
code: Code code: Code
+7
View File
@@ -74,3 +74,10 @@ nl:
selected_products: selected_products:
clear: Leegmaken clear: Leegmaken
order: Bestellen order: Bestellen
views:
pagination:
first: "« Eerste"
last: "Laatste »"
previous: "‹ Vorige"
next: "Volgende ›"
truncate: "…"