Fixes the html attributes for translation options.

pull/228/merge 400
hristoterezov 10 years ago
parent af682f8727
commit 6048d0a325
  1. 2
      index.html
  2. 4
      libs/app.bundle.js
  3. 2
      modules/UI/util/MessageHandler.js
  4. 2
      modules/translation/translation.js

@ -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">

@ -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) {

@ -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) +

@ -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) {

Loading…
Cancel
Save