Fixes the html attributes for translation options.

This commit is contained in:
hristoterezov 2015-02-27 20:05:32 +02:00
parent af682f8727
commit 6048d0a325
4 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
<script src="libs/app.bundle.js?v=24"></script>
<script src="libs/app.bundle.js?v=25"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=6"/>
<link rel="stylesheet" href="css/toastr.css?v=1">

View File

@ -5680,7 +5680,7 @@ var messageHandler = (function(my) {
displayNameSpan + '<br>' +
'<span class=' + cls + ' data-i18n="' + messageKey + '"' +
(messageArguments?
" i18n-options='" + JSON.stringify(messageArguments) + "'"
" data-i18n-options='" + JSON.stringify(messageArguments) + "'"
: "") + ">" +
APP.translation.translateString(messageKey,
messageArguments) +
@ -11630,7 +11630,6 @@ var defaultOptions = {
detectLngQS: "lang",
useCookie: false,
fallbackLng: DEFAULT_LANG,
shortcutFunction: 'defaultValue',
load: "unspecific",
resGetPath: 'lang/__ns__-__lng__.json',
ns: {
@ -11641,6 +11640,7 @@ var defaultOptions = {
fallbackOnNull: true,
fallbackOnEmpty: true,
useDataAttrOptions: true,
defaultValueFromContent: false,
app: interfaceConfig.APP_NAME,
getAsync: false,
customLoad: function(lng, ns, options, done) {

View File

@ -188,7 +188,7 @@ var messageHandler = (function(my) {
displayNameSpan + '<br>' +
'<span class=' + cls + ' data-i18n="' + messageKey + '"' +
(messageArguments?
" i18n-options='" + JSON.stringify(messageArguments) + "'"
" data-i18n-options='" + JSON.stringify(messageArguments) + "'"
: "") + ">" +
APP.translation.translateString(messageKey,
messageArguments) +

View File

@ -13,7 +13,6 @@ var defaultOptions = {
detectLngQS: "lang",
useCookie: false,
fallbackLng: DEFAULT_LANG,
shortcutFunction: 'defaultValue',
load: "unspecific",
resGetPath: 'lang/__ns__-__lng__.json',
ns: {
@ -24,6 +23,7 @@ var defaultOptions = {
fallbackOnNull: true,
fallbackOnEmpty: true,
useDataAttrOptions: true,
defaultValueFromContent: false,
app: interfaceConfig.APP_NAME,
getAsync: false,
customLoad: function(lng, ns, options, done) {