Commit Graph

932 Commits

Author SHA1 Message Date
Pierre-Yves David
5bcff70a60 merge with stable 2016-09-14 17:12:39 +02:00
Wagner Bruna
511ad6839c i18n-pt_BR: synchronized with 9c29cf2af0ce 2016-08-31 13:58:33 -03:00
FUJIWARA Katsunori
8d71526776 i18n-ja: synchronized with 9b5b7cc2faf0 2016-08-01 08:27:22 +09:00
Wagner Bruna
dc05ec8bba i18n-pt_BR: synchronized with ec63fb038fbc 2016-07-19 19:01:11 -03:00
Pulkit Goyal
aef2bdd39a py3: make files use absolute_import and print_function
This patch includes addition of absolute_import and print_function to the
 files where they are missing. The modern importing conventions are also followed.
2016-07-03 22:28:24 +05:30
Matt Mackall
c0d551e8ec merge with stable 2016-07-01 16:02:56 -05:00
Wagner Bruna
ddd16592d2 i18n-pt_BR: synchronized with fe2fb19f4279 2016-07-01 07:41:37 -03:00
Wagner Bruna
9fe82bf618 i18n-pt_BR: synchronized with 2ae54831e766 2016-05-01 00:12:56 -03:00
Pulkit Goyal
ce56f5973f py3: make i18n/hggettext use print_function 2016-05-13 02:58:15 +05:30
Pulkit Goyal
f24edb8c72 py3: make i18n/hggettext use absolute_import 2016-05-13 02:56:13 +05:30
Pulkit Goyal
6499112aa6 py3: make i18n/posplit use print_function 2016-05-13 03:09:30 +05:30
Pulkit Goyal
91f9f5358d py3: make i18n/posplit use absolute_import 2016-05-13 03:08:46 +05:30
Yuya Nishihara
146f5e3a27 i18n: use inspect.getsourcelines() to obtain lineno from func or class
Before, func must be a function object. I want to make it parse docstring
of classes, too.
2016-07-27 21:53:14 +09:00
Matt Mackall
2f932b7682 merge with stable 2016-03-02 16:44:56 -06:00
Wagner Bruna
9d5da66d98 i18n-pt_BR: synchronized with bffe7c27f5f7 2016-02-29 22:20:53 -03:00
FUJIWARA Katsunori
27b5df55d8 i18n-ja: synchronized with 03346da08322 2016-02-29 22:52:29 +09:00
Wagner Bruna
520e980e14 i18n-pt_BR: synchronized with f565b894e807 2016-02-03 10:57:27 -02:00
FUJIWARA Katsunori
7b42659ca1 i18n-ja: synchronized with 8722bd8b0726 2016-02-01 23:17:40 +09:00
Wagner Bruna
f0a0975a77 i18n-pt_BR: synchronized with 2fdffa2ec2c4 2016-02-01 12:12:06 -02:00
Matt Mackall
c0ab1b7cbf merge with stable 2016-02-29 17:52:17 -06:00
Bryan O'Sullivan
dd6b32aa80 i18n: fix a test-gendoc.t failure 2016-01-14 10:31:06 -08:00
Matt Mackall
d7ec07e23e merge with stable 2016-01-02 02:13:56 +01:00
FUJIWARA Katsunori
d7f83ba96c i18n-ja: synchronized with b1a0b5b8828a 2016-01-01 12:21:11 +09:00
timeless
2c1511b176 i18n: add execute bit to check-translation.py 2015-12-22 11:03:33 +00:00
Yuya Nishihara
1d7fbf80aa i18n: make sure to include translation of (DEPRECATED)
This patch replaces old "DEPRECATED" msgid by "(DEPRECATED)" if that .po
file does not have "(DEPRECATED)" but have "... (DEPRECATED)".

It is necessary to hide deprecated options correctly.
2015-11-03 22:44:57 +09:00
Yuya Nishihara
1a1642aa7c i18n: do not abuse msgstr of "DEPRECATED" to check for bad translation
Because f94973e0eefb requires the msgstr of "(DEPRECATED)", old *.po files
must be blamed. Using "DEPRECATED" would just hide the error.

For example, "LANG=da_DK.UTF-8 hg help serve" fails to hide deprecated
options right now, but check-translation.py couldn't detect it because
da.po has outdated translation of "DEPRECATED".
2015-11-03 22:39:26 +09:00
FUJIWARA Katsunori
6881eb2c6f i18n: look translation of both "DEPRECATED" and "(DEPRECATED)" up
Since f94973e0eefb, deprecated commands, options and so on are
detected by "(DEPRECATED)" instead of "DEPRECATED".

"hg.pot" generated from recent source files doesn't contain msgid
"DEPRECATED", and looking the translation of "DEPRECATED" up in
up-to-date *.po files works incorrectly.

But on the other hand, there are still old *.po files, which contain
msgid "DEPRECATED" but not "(DEPRECATED)". Looking the translation of
"(DEPRECATED)" up in such old *.po files also works incorrectly.

This patch resolves this problem by looking translation of both
"DEPRECATED" and "(DEPRECATED)" up.

This should work correctly, because previous patch makes "deprecated"
checker be applied only on translations, of which msgid contains exact
"(DEPRECATED)" string.

'p.msgstr' examination in 'deprecatedsetup()' is needed to ignore
untranslated entries. This also makes 'deprecatedpe.msgstr'
examination in 'deprecated()' meaningless.
2015-11-01 08:38:56 +09:00
FUJIWARA Katsunori
7c484b491b i18n: fix regexp pattern to detect translation for DEPRECATED
Since f94973e0eefb, deprecated commands, options and so on are
detected by "(DEPRECATED)" instead of "DEPRECATED".

Therefore, 'deprecated' checker in i18n/check-translation.py should
check translation, of which msgid contains "(DEPRECATED)" instead of
"DEPRECATED".

At glance, it seems to do so, but it actually doesn't, because Python
regexp treats "()" as grouping of patterns and "(DEPRECATED)" matches
only against "DEPRECATED".
2015-11-01 08:38:56 +09:00
Wagner Bruna
d32d84ab4a i18n-pt_BR: synchronized with 9258975676a4 2015-11-01 15:24:57 -02:00
FUJIWARA Katsunori
66cb39338f i18n-ja: synchronized with 284326a73bff 2015-11-01 05:34:27 +09:00
FUJIWARA Katsunori
5a05b076f2 i18n: calculate correct line number in source of messages to be translated
Before this patch, line number in source of the message to be
translated is wrong in hg.pot, if corresponded message is placed after
".. DIRECTIVE::", because number of lines related to such directive
isn't added to variable "delta", which holds number of untranslated
lines in given text.

This patch always adds "2" to "delta", because text block is split
into translation units by "\n\n".
2016-02-11 23:15:34 +09:00
Matt Mackall
eb810eca5f merge with stable 2015-10-01 12:17:46 -05:00
Wagner Bruna
9560b312bd i18n-pt_BR: synchronized with e1c84c9ac25a 2015-10-01 11:09:36 -03:00
timeless@mozdev.org
1e8c71dffb i18n-zh_CN: annotate broken HG: translations 2015-09-25 03:47:48 -04:00
FUJIWARA Katsunori
eaf3b5592f i18n-ja: synchronized with 8f6d74e8777a 2015-08-31 23:14:58 +09:00
timeless@mozdev.org
1796c2de4c tests: add more doctests for check-translation deprecated 2015-09-17 21:20:35 -04:00
timeless@mozdev.org
8ab1a3583e tests: cleanup check-translation deprecated 2015-09-17 21:20:17 -04:00
timeless@mozdev.org
cef7f703ed tests: check for inconsistently translated DEPRECATED
Mercurial expects DEPRECATED to be translated consistently,
not doing that breaks Mercurial.
2015-09-17 07:49:18 -04:00
timeless@mozdev.org
80f4daf493 i18n-fr: reject translation which is missing DEPRECATED 2015-09-17 07:33:21 -04:00
timeless@mozdev.org
5d6c8cf675 i18n-pt_BR: select a single definition of DEPRECATED
Mercurial expects DEPRECATED to be translated consistently,
not doing that breaks Mercurial.
2015-09-17 07:47:30 -04:00
timeless@mozdev.org
0f2ad741cd i18n-sv: select a single definition of DEPRECATED
Mercurial expects DEPRECATED to be translated consistently,
not doing that breaks Mercurial.
2015-09-17 07:37:20 -04:00
timeless@mozdev.org
3c256de349 i18n-ro: use ()s instead of [] for DEPRECATED 2015-09-17 07:34:27 -04:00
timeless@mozdev.org
0669670d0b i18n-ro: include translation of DEPRECATED 2015-09-17 07:34:13 -04:00
timeless@mozdev.org
346d662db7 i18n-zh_CN: include translation of DEPRECATED 2015-09-17 07:35:03 -04:00
timeless@mozdev.org
cb880bc40e i18n-it: include translation of DEPRECATED 2015-09-17 07:33:44 -04:00
timeless@mozdev.org
63d6405686 i18n-da: include translation of DEPRECATED 2015-09-17 07:32:28 -04:00
Wagner Bruna
d9218da8c7 i18n-pt_BR: synchronized with 936c4f790419 2015-08-13 16:50:05 -03:00
Matt Mackall
d585ecbe64 i18n: fix unclosed inline span in pt_BR
This was causing test-gendoc.t to complain:

WARNING: Inline interpreted text or phrase reference start-string
without end-string.
2015-07-31 10:49:15 -05:00
FUJIWARA Katsunori
895418cefb i18n-ja: synchronized with bcb4578674eb 2015-07-31 18:39:48 +09:00
Wagner Bruna
1a4e90ed7e i18n-pt_BR: synchronized with 6aaad589ef8a 2015-07-29 11:37:36 -03:00