Commit Graph

920 Commits

Author SHA1 Message Date
Wagner Bruna
9fe82bf618 i18n-pt_BR: synchronized with 2ae54831e766 2016-05-01 00:12:56 -03: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
Gregory Szorc
5380dea2a7 global: mass rewrite to use modern exception syntax
Python 2.6 introduced the "except type as instance" syntax, replacing
the "except type, instance" syntax that came before. Python 3 dropped
support for the latter syntax. Since we no longer support Python 2.4 or
2.5, we have no need to continue supporting the "except type, instance".

This patch mass rewrites the exception syntax to be Python 2.6+ and
Python 3 compatible.

This patch was produced by running `2to3 -f except -w -n .`.
2015-06-23 22:20:08 -07:00
FUJIWARA Katsunori
f215738702 i18n-ja: synchronized with 87267040cd32 2015-06-01 10:50:15 +09:00
Wagner Bruna
d3f6348af8 i18n-pt_BR: synchronized with 1f494259cbf1 2015-05-22 11:54:43 -03:00
FUJIWARA Katsunori
4424b8d24d i18n-ja: synchronized with 0fc13b42416a 2015-04-30 19:12:28 +09:00
Wagner Bruna
51af6ac437 i18n-pt_BR: synchronized with 7deb565901a9 2015-04-29 16:43:02 -03:00
Wagner Bruna
8c89a6489a i18n-pt_BR: synchronized with 44dfca3ef1e3 2015-04-23 00:07:37 -03:00
Michael O'Connor
d4eb35d7ec transaction: add missing newline to message
Add a missing newline to the "journal was created by a
different version of Mercurial" message.
2015-04-14 10:59:26 -04:00
Matt Mackall
8f35738cc3 merge with stable 2015-04-01 20:38:36 -05:00
Wagner Bruna
8c2719662d i18n-pt_BR: synchronized with f920316ac560 2015-03-31 20:20:17 -03:00
Wagner Bruna
af401eafef i18n-pt_BR: synchronized with be4e8b8e43d7 2015-03-01 00:18:43 -03:00
FUJIWARA Katsunori
5a992da389 i18n-ja: synchronized with be4e8b8e43d7 2015-03-01 01:28:05 +09:00
FUJIWARA Katsunori
c16c2eca4a i18n-ja: synchronized with d197a07d4a2b 2015-02-01 08:24:08 +09:00