Advertisement
Guest User

Django plural forms inconsistencies (c06492d)

a guest
Dec 5th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 12.65 KB | None | 0 0
  1. In [1]: from django.utils.translation import activate                                            
  2.  
  3. In [2]: from django.conf.locale import LANG_INFO                                                
  4.  
  5. In [3]: for lang in LANG_INFO:
  6.    ...:     activate(lang)
  7.    ...:                                                                                          
  8. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  9. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  10. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  11. Not-merged catalog info:
  12. {   'content-transfer-encoding': '8bit',
  13.     'content-type': 'text/plain; charset=UTF-8',
  14.     'language': 'fa',
  15.     'language-team': 'Persian '
  16.                      '(http://www.transifex.com/django/django/language/fa/)',
  17.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  18.     'mime-version': '1.0',
  19.     'plural-forms': 'nplurals=1; plural=0;',
  20.     'po-revision-date': '2017-09-23 18:54+0000',
  21.     'pot-creation-date': '2015-01-17 11:07+0100',
  22.     'project-id-version': 'django',
  23.     'report-msgid-bugs-to': ''}
  24. MAIN PLURAL FORM:
  25. 'nplurals=2; plural=(n > 1);'
  26. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  27.   warnings.warn(msg, RuntimeWarning)
  28. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  29. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  30. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  31. Not-merged catalog info:
  32. {   'content-transfer-encoding': '8bit',
  33.     'content-type': 'text/plain; charset=UTF-8',
  34.     'language': 'he',
  35.     'language-team': 'Hebrew '
  36.                      '(http://www.transifex.com/django/django/language/he/)',
  37.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  38.     'mime-version': '1.0',
  39.     'plural-forms': 'nplurals=2; plural=(n != 1);',
  40.     'po-revision-date': '2017-09-19 16:40+0000',
  41.     'pot-creation-date': '2015-01-17 11:07+0100',
  42.     'project-id-version': 'django',
  43.     'report-msgid-bugs-to': ''}
  44. MAIN PLURAL FORM:
  45. ('nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: '
  46.  '(n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;')
  47. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  48.   warnings.warn(msg, RuntimeWarning)
  49. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  50. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  51. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  52. Not-merged catalog info:
  53. {   'content-transfer-encoding': '8bit',
  54.     'content-type': 'text/plain; charset=UTF-8',
  55.     'language': 'ka',
  56.     'language-team': 'Georgian '
  57.                      '(http://www.transifex.com/django/django/language/ka/)',
  58.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  59.     'mime-version': '1.0',
  60.     'plural-forms': 'nplurals=1; plural=0;',
  61.     'po-revision-date': '2017-09-19 16:40+0000',
  62.     'pot-creation-date': '2015-01-17 11:07+0100',
  63.     'project-id-version': 'django',
  64.     'report-msgid-bugs-to': ''}
  65. MAIN PLURAL FORM:
  66. 'nplurals=2; plural=(n!=1);'
  67. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  68.   warnings.warn(msg, RuntimeWarning)
  69. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  70. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  71. Not-merged catalog localedir: /home/bot/code/django/django/contrib/contenttypes/locale
  72. Not-merged catalog info:
  73. {   'content-transfer-encoding': '8bit',
  74.     'content-type': 'text/plain; charset=UTF-8',
  75.     'language': 'ka',
  76.     'language-team': 'Georgian '
  77.                      '(http://www.transifex.com/django/django/language/ka/)',
  78.     'last-translator': 'André Bouatchidzé <a@anbz.net>',
  79.     'mime-version': '1.0',
  80.     'plural-forms': 'nplurals=1; plural=0;',
  81.     'po-revision-date': '2017-09-19 16:40+0000',
  82.     'pot-creation-date': '2015-01-17 11:07+0100',
  83.     'project-id-version': 'django',
  84.     'report-msgid-bugs-to': ''}
  85. MAIN PLURAL FORM:
  86. 'nplurals=2; plural=(n!=1);'
  87. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  88.   warnings.warn(msg, RuntimeWarning)
  89. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  90. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  91. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  92. Not-merged catalog info:
  93. {   'content-transfer-encoding': '8bit',
  94.     'content-type': 'text/plain; charset=UTF-8',
  95.     'language': 'kk',
  96.     'language-team': 'Kazakh '
  97.                      '(http://www.transifex.com/django/django/language/kk/)',
  98.     'last-translator': 'Baurzhan Muftakhidinov <baurthefirst@gmail.com>',
  99.     'mime-version': '1.0',
  100.     'plural-forms': 'nplurals=1; plural=0;',
  101.     'po-revision-date': '2017-09-19 16:40+0000',
  102.     'pot-creation-date': '2015-01-17 11:07+0100',
  103.     'project-id-version': 'django',
  104.     'report-msgid-bugs-to': ''}
  105. MAIN PLURAL FORM:
  106. 'nplurals=2; plural=(n!=1);'
  107. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  108.   warnings.warn(msg, RuntimeWarning)
  109. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  110. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  111. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  112. Not-merged catalog info:
  113. {   'content-transfer-encoding': '8bit',
  114.     'content-type': 'text/plain; charset=UTF-8',
  115.     'language': 'kn',
  116.     'language-team': 'Kannada '
  117.                      '(http://www.transifex.com/django/django/language/kn/)',
  118.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  119.     'mime-version': '1.0',
  120.     'plural-forms': 'nplurals=1; plural=0;',
  121.     'po-revision-date': '2017-09-19 16:40+0000',
  122.     'pot-creation-date': '2015-01-17 11:07+0100',
  123.     'project-id-version': 'django',
  124.     'report-msgid-bugs-to': ''}
  125. MAIN PLURAL FORM:
  126. 'nplurals=2; plural=(n > 1);'
  127. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  128.   warnings.warn(msg, RuntimeWarning)
  129. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  130. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  131. Not-merged catalog localedir: /home/bot/code/django/django/contrib/contenttypes/locale
  132. Not-merged catalog info:
  133. {   'content-transfer-encoding': '8bit',
  134.     'content-type': 'text/plain; charset=UTF-8',
  135.     'language': 'kn',
  136.     'language-team': 'Kannada '
  137.                      '(http://www.transifex.com/django/django/language/kn/)',
  138.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  139.     'mime-version': '1.0',
  140.     'plural-forms': 'nplurals=1; plural=0;',
  141.     'po-revision-date': '2017-09-19 16:40+0000',
  142.     'pot-creation-date': '2015-01-17 11:07+0100',
  143.     'project-id-version': 'django',
  144.     'report-msgid-bugs-to': ''}
  145. MAIN PLURAL FORM:
  146. 'nplurals=2; plural=(n > 1);'
  147. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  148.   warnings.warn(msg, RuntimeWarning)
  149. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  150. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  151. Not-merged catalog localedir: /home/bot/code/django/django/contrib/auth/locale
  152. Not-merged catalog info:
  153. {   'content-transfer-encoding': '8bit',
  154.     'content-type': 'text/plain; charset=UTF-8',
  155.     'language': 'kn',
  156.     'language-team': 'Kannada '
  157.                      '(http://www.transifex.com/django/django/language/kn/)',
  158.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  159.     'mime-version': '1.0',
  160.     'plural-forms': 'nplurals=1; plural=0;',
  161.     'po-revision-date': '2017-09-24 14:24+0000',
  162.     'pot-creation-date': '2017-09-24 13:46+0200',
  163.     'project-id-version': 'django',
  164.     'report-msgid-bugs-to': ''}
  165. MAIN PLURAL FORM:
  166. 'nplurals=2; plural=(n > 1);'
  167. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  168.   warnings.warn(msg, RuntimeWarning)
  169. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  170. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  171. Not-merged catalog localedir: /home/bot/code/django/django/contrib/admin/locale
  172. Not-merged catalog info:
  173. {   'content-transfer-encoding': '8bit',
  174.     'content-type': 'text/plain; charset=UTF-8',
  175.     'language': 'kn',
  176.     'language-team': 'Kannada '
  177.                      '(http://www.transifex.com/django/django/language/kn/)',
  178.     'last-translator': 'Jannis Leidel <jannis@leidel.info>',
  179.     'mime-version': '1.0',
  180.     'plural-forms': 'nplurals=1; plural=0;',
  181.     'po-revision-date': '2017-09-19 16:41+0000',
  182.     'pot-creation-date': '2017-01-19 16:49+0100',
  183.     'project-id-version': 'django',
  184.     'report-msgid-bugs-to': ''}
  185. MAIN PLURAL FORM:
  186. 'nplurals=2; plural=(n > 1);'
  187. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  188.   warnings.warn(msg, RuntimeWarning)
  189. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  190. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  191. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  192. Not-merged catalog info:
  193. {   'content-transfer-encoding': '8bit',
  194.     'content-type': 'text/plain; charset=UTF-8',
  195.     'language': 'lt',
  196.     'language-team': 'Lithuanian '
  197.                      '(http://www.transifex.com/django/django/language/lt/)',
  198.     'last-translator': 'Matas Dailyda <matas@dailyda.com>',
  199.     'mime-version': '1.0',
  200.     'plural-forms': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && '
  201.                     '(n%100<10 || n%100>=20) ? 1 : 2);',
  202.     'po-revision-date': '2017-09-19 16:40+0000',
  203.     'pot-creation-date': '2015-01-17 11:07+0100',
  204.     'project-id-version': 'django',
  205.     'report-msgid-bugs-to': ''}
  206. MAIN PLURAL FORM:
  207. ('nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % '
  208.  '10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? '
  209.  '2: 3);')
  210. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  211.   warnings.warn(msg, RuntimeWarning)
  212. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  213. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  214. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  215. Not-merged catalog info:
  216. {   'content-transfer-encoding': '8bit',
  217.     'content-type': 'text/plain; charset=UTF-8',
  218.     'language': 'sk',
  219.     'language-team': 'Slovak '
  220.                      '(http://www.transifex.com/django/django/language/sk/)',
  221.     'last-translator': 'Martin Tóth <ezimir@gmail.com>',
  222.     'mime-version': '1.0',
  223.     'plural-forms': 'nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;',
  224.     'po-revision-date': '2017-09-23 18:54+0000',
  225.     'pot-creation-date': '2015-01-17 11:07+0100',
  226.     'project-id-version': 'django',
  227.     'report-msgid-bugs-to': ''}
  228. MAIN PLURAL FORM:
  229. ('nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= '
  230.  '4 ? 1 : n % 1 != 0 ? 2: 3);')
  231. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  232.   warnings.warn(msg, RuntimeWarning)
  233. /home/bot/code/django/django/utils/translation/trans_real.py:199: RuntimeWarning:
  234. Catalog **NOT MERGED** to prevent inconsistencies due to different plural forms.
  235. Not-merged catalog localedir: /home/bot/code/django/django/contrib/sessions/locale
  236. Not-merged catalog info:
  237. {   'content-transfer-encoding': '8bit',
  238.     'content-type': 'text/plain; charset=UTF-8',
  239.     'language': 'uk',
  240.     'language-team': 'Ukrainian '
  241.                      '(http://www.transifex.com/django/django/language/uk/)',
  242.     'last-translator': 'Mykola Zamkovoi <nickzam@gmail.com>',
  243.     'mime-version': '1.0',
  244.     'plural-forms': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && '
  245.                     'n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
  246.     'po-revision-date': '2017-09-23 18:54+0000',
  247.     'pot-creation-date': '2015-01-17 11:07+0100',
  248.     'project-id-version': 'django',
  249.     'report-msgid-bugs-to': ''}
  250. MAIN PLURAL FORM:
  251. ('nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 '
  252.  '== 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n '
  253.  '% 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n '
  254.  '% 100 <=14 )) ? 2: 3);')
  255. See https://docs.djangoproject.com/en/dev/topics/i18n/translation/#plural-forms
  256.   warnings.warn(msg, RuntimeWarning)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement