i18n last merge

This commit is contained in:
wvengen 2013-03-06 01:24:57 +01:00
parent 2d382df1f1
commit c9b2d01fa5
4 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
-# please polish the following line if you know how, same in view destroy -# please polish the following line if you know how, same in view destroy
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">x</a></div>'); var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close')}</a></div>');
errorDiv.append(document.createTextNode('#{j(fail_msg)}')); errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
$('div.container-fluid').prepend(errorDiv); $('div.container-fluid').prepend(errorDiv);

View file

@ -1,7 +1,7 @@
-# please polish the following line if you know how, same in partial _destroy_fail -# please polish the following line if you know how, same in partial _destroy_fail
var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">x</a></div>'); var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">#{escape_javascript(t('ui.marks.close'))}</a></div>');
successDiv.append(document.createTextNode('Artikel #{j(@article.name)} gelöscht.')); successDiv.append(document.createTextNode('#{escape_javascript(t('.notice', name: @article.name))}'));
$('div.container-fluid').prepend(successDiv); $('div.container-fluid').prepend(successDiv);
-# WARNING: If you try to use the escape j(...) here, an error occurs: -# WARNING: If you try to use the escape j(...) here, an error occurs:

View file

@ -29,6 +29,8 @@ de:
new: new:
title: 'Neuen Lagerartikel anlegen' title: 'Neuen Lagerartikel anlegen'
search_text: 'Suche nache Artikeln aus allen Katalogen:' search_text: 'Suche nache Artikeln aus allen Katalogen:'
destroy:
notice: 'Artikel %{name} gelöscht.'
# used by controller # used by controller
stock_create: stock_create:
@ -39,4 +41,3 @@ de:
# used by model # used by model
check: check:
not_empty: '%{name} kann nicht gelöscht werden. Der Lagerbestand ist nicht null.' not_empty: '%{name} kann nicht gelöscht werden. Der Lagerbestand ist nicht null.'

View file

@ -29,6 +29,8 @@ en:
new: new:
title: 'Add new stock article' title: 'Add new stock article'
search_text: 'Search for articles in all catalogues:' search_text: 'Search for articles in all catalogues:'
destroy:
notice: 'Article %{name} was deleted.'
# used by controller # used by controller
stock_create: stock_create: