Browse Source

Hook in the Czech translations

JC Brand 6 năm trước cách đây
mục cha
commit
565cfc3984
3 tập tin đã thay đổi với 251 bổ sung284 xóa
  1. 247 281
      locale/cs/LC_MESSAGES/converse.po
  2. 1 1
      src/converse-core.js
  3. 3 2
      src/i18n.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 247 - 281
locale/cs/LC_MESSAGES/converse.po


+ 1 - 1
src/converse-core.js

@@ -224,7 +224,7 @@
         keepalive: true,
         locales_url: 'locale/{{{locale}}}/LC_MESSAGES/converse.json',
         locales: [
-            'af', 'ar', 'bg', 'ca', 'de', 'es', 'eu', 'en', 'fr', 'he',
+            'af', 'ar', 'bg', 'ca', 'cs', 'de', 'es', 'eu', 'en', 'fr', 'he',
             'hu', 'id', 'it', 'ja', 'nb', 'nl',
             'pl', 'pt_BR', 'ru', 'tr', 'uk', 'zh_CN', 'zh_TW'
         ],

+ 3 - 2
src/i18n.js

@@ -3,7 +3,7 @@
 //
 // This is the internationalization module.
 //
-// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
+// Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
 // Licensed under the Mozilla Public License (MPLv2)
 //
 /*global define */
@@ -18,6 +18,7 @@
         'moment/locale/ar',
         'moment/locale/bg',
         'moment/locale/ca',
+        'moment/locale/cs',
         'moment/locale/de',
         'moment/locale/es',
         'moment/locale/eu',
@@ -70,7 +71,7 @@
     }
 
     function isMomentLocale (locale) {
-        return _.isString(locale) && moment.locale() === moment.locale(locale);
+        return _.isString(locale) && moment.locale(locale) === moment.locale() ;
     }
 
     function isConverseLocale (locale, supported_locales) {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác