summaryrefslogtreecommitdiff
path: root/t/t5515/fetch.master_branches-default
diff options
context:
space:
mode:
authorLibravatar Jiang Xin <worldhello.net@gmail.com>2014-04-17 13:37:18 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-17 11:09:56 -0700
commit47fbfded53d46ef73c5f5c150d6e6e7602a7f66f (patch)
tree3e502f68c84b915fa59b9a4d966c21740a9742da /t/t5515/fetch.master_branches-default
parenti18n: remove obsolete comments for translators in diffstat generation (diff)
downloadtgif-47fbfded53d46ef73c5f5c150d6e6e7602a7f66f.tar.xz
i18n: only extract comments marked with "TRANSLATORS:"
When extract l10n messages, we use "--add-comments" option to keep comments right above the l10n messages for references. But sometimes irrelevant comments are also extracted. For example in the following code block, the comment in line 2 will be extracted as comment for the l10n message in line 3, but obviously it's wrong. { OPTION_CALLBACK, 0, "ignore-removal", &addremove_explicit, NULL /* takes no arguments */, N_("ignore paths removed in the working tree (same as --no-all)"), PARSE_OPT_NOARG, ignore_removal_cb }, Since almost all comments for l10n translators are marked with the same prefix (tag): "TRANSLATORS:", it's safe to only extract comments with this special tag. I.E. it's better to call xgettext as: xgettext --add-comments=TRANSLATORS: ... Also tweaks the multi-line comment in "init-db.c", to make it start with the proper tag, not "* TRANSLATORS:" (which has a star before the tag). Signed-off-by: Jiang Xin <worldhello.net@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.master_branches-default')
0 files changed, 0 insertions, 0 deletions