diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-05 09:03:10 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-05 09:03:10 +0900 |
commit | b19174e2f37cc696cbfded9a02c2f2fd6e93bce7 (patch) | |
tree | a006fc1e437b51f50e904ffca1e10add88b0ede8 /Documentation | |
parent | 916a33875499a230012348ecbb8efcc305142579 (diff) | |
parent | 66f5f6dca95eda46bf02c8d06de8cb265995fd6e (diff) | |
download | git-b19174e2f37cc696cbfded9a02c2f2fd6e93bce7.tar.gz git-b19174e2f37cc696cbfded9a02c2f2fd6e93bce7.tar.xz |
Merge branch 'ab/c-translators-comment-style' into maint
Update the C style recommendation for notes for translators, as
recent versions of gettext tools can work with our style of
multi-line comments.
* ab/c-translators-comment-style:
C style: use standard style for "TRANSLATORS" comments
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/CodingGuidelines | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index 2248cf732..c4cb5ff0d 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -256,12 +256,12 @@ For C programs: Note however that a comment that explains a translatable string to translators uses a convention of starting with a magic token - "TRANSLATORS: " immediately after the opening delimiter, even when - it spans multiple lines. We do not add an asterisk at the beginning - of each line, either. E.g. + "TRANSLATORS: ", e.g. - /* TRANSLATORS: here is a comment that explains the string - to be translated, that follows immediately after it */ + /* + * TRANSLATORS: here is a comment that explains the string to + * be translated, that follows immediately after it. + */ _("Here is a translatable string explained by the above."); - Double negation is often harder to understand than no negation |