Ver código fonte

Fixes the html attributes for translation options.

j8
hristoterezov 10 anos atrás
pai
commit
6048d0a325

+ 1
- 1
index.html Ver arquivo

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

+ 2
- 2
libs/app.bundle.js Ver arquivo

5680
             displayNameSpan + '<br>' +
5680
             displayNameSpan + '<br>' +
5681
             '<span class=' + cls + ' data-i18n="' + messageKey + '"' +
5681
             '<span class=' + cls + ' data-i18n="' + messageKey + '"' +
5682
                 (messageArguments?
5682
                 (messageArguments?
5683
-                    " i18n-options='" + JSON.stringify(messageArguments) + "'"
5683
+                    " data-i18n-options='" + JSON.stringify(messageArguments) + "'"
5684
                     : "") + ">" +
5684
                     : "") + ">" +
5685
             APP.translation.translateString(messageKey,
5685
             APP.translation.translateString(messageKey,
5686
                 messageArguments) +
5686
                 messageArguments) +
11630
     detectLngQS: "lang",
11630
     detectLngQS: "lang",
11631
     useCookie: false,
11631
     useCookie: false,
11632
     fallbackLng: DEFAULT_LANG,
11632
     fallbackLng: DEFAULT_LANG,
11633
-    shortcutFunction: 'defaultValue',
11634
     load: "unspecific",
11633
     load: "unspecific",
11635
     resGetPath: 'lang/__ns__-__lng__.json',
11634
     resGetPath: 'lang/__ns__-__lng__.json',
11636
     ns: {
11635
     ns: {
11641
     fallbackOnNull: true,
11640
     fallbackOnNull: true,
11642
     fallbackOnEmpty: true,
11641
     fallbackOnEmpty: true,
11643
     useDataAttrOptions: true,
11642
     useDataAttrOptions: true,
11643
+    defaultValueFromContent: false,
11644
     app: interfaceConfig.APP_NAME,
11644
     app: interfaceConfig.APP_NAME,
11645
     getAsync: false,
11645
     getAsync: false,
11646
     customLoad: function(lng, ns, options, done) {
11646
     customLoad: function(lng, ns, options, done) {

+ 1
- 1
modules/UI/util/MessageHandler.js Ver arquivo

188
             displayNameSpan + '<br>' +
188
             displayNameSpan + '<br>' +
189
             '<span class=' + cls + ' data-i18n="' + messageKey + '"' +
189
             '<span class=' + cls + ' data-i18n="' + messageKey + '"' +
190
                 (messageArguments?
190
                 (messageArguments?
191
-                    " i18n-options='" + JSON.stringify(messageArguments) + "'"
191
+                    " data-i18n-options='" + JSON.stringify(messageArguments) + "'"
192
                     : "") + ">" +
192
                     : "") + ">" +
193
             APP.translation.translateString(messageKey,
193
             APP.translation.translateString(messageKey,
194
                 messageArguments) +
194
                 messageArguments) +

+ 1
- 1
modules/translation/translation.js Ver arquivo

13
     detectLngQS: "lang",
13
     detectLngQS: "lang",
14
     useCookie: false,
14
     useCookie: false,
15
     fallbackLng: DEFAULT_LANG,
15
     fallbackLng: DEFAULT_LANG,
16
-    shortcutFunction: 'defaultValue',
17
     load: "unspecific",
16
     load: "unspecific",
18
     resGetPath: 'lang/__ns__-__lng__.json',
17
     resGetPath: 'lang/__ns__-__lng__.json',
19
     ns: {
18
     ns: {
24
     fallbackOnNull: true,
23
     fallbackOnNull: true,
25
     fallbackOnEmpty: true,
24
     fallbackOnEmpty: true,
26
     useDataAttrOptions: true,
25
     useDataAttrOptions: true,
26
+    defaultValueFromContent: false,
27
     app: interfaceConfig.APP_NAME,
27
     app: interfaceConfig.APP_NAME,
28
     getAsync: false,
28
     getAsync: false,
29
     customLoad: function(lng, ns, options, done) {
29
     customLoad: function(lng, ns, options, done) {

Carregando…
Cancelar
Salvar