diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-06-14 19:55:30 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-06-14 19:57:07 -0700 |
commit | 3cecc1f475d8f2d34f6e2519a8f7f9168296a494 (patch) | |
tree | 3c38712d0319ccd174db70909015ecb6bd0790dd /src | |
parent | 9f0c31611c189b7685cd5a818330ce36a9774eeb (diff) |
trivial locale cleanups
Clarify the purpose of the `N_()` macro. Remove inconsistent capitalization of
two strings in the parser module.
Diffstat (limited to 'src')
-rw-r--r-- | src/common.h | 6 | ||||
-rw-r--r-- | src/parser.cpp | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h index 87fefed3..b8791279 100644 --- a/src/common.h +++ b/src/common.h @@ -229,8 +229,10 @@ void write_ignore(int fd, const void *buff, size_t count); /// Shorthand for wgettext call in situations where a C-style string is needed (e.g., fwprintf()). #define _(wstr) wgettext(wstr).c_str() -/// Noop, used to tell xgettext that a string should be translated, even though it is not directly -/// sent to wgettext. +/// Noop, used to tell xgettext that a string should be translated. Use this when a string cannot be +/// passed through wgettext() at the point where it is used. For example, when initializing a +/// static array or structure. You must pass the string through wgettext() when it is used. +/// See https://developer.gnome.org/glib/stable/glib-I18N.html#N-:CAPS #define N_(wstr) wstr /// Check if the specified string element is a part of the specified string list. diff --git a/src/parser.cpp b/src/parser.cpp index 86026f80..6b19f349 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -37,7 +37,7 @@ class io_chain_t; #define FOR_BLOCK N_(L"'for' block") /// Breakpoint block. -#define BREAKPOINT_BLOCK N_(L"Block created by breakpoint") +#define BREAKPOINT_BLOCK N_(L"block created by breakpoint") /// If block description. #define IF_BLOCK N_(L"'if' conditional block") @@ -67,7 +67,7 @@ class io_chain_t; #define BEGIN_BLOCK N_(L"'begin' unconditional block") /// Source block description. -#define SOURCE_BLOCK N_(L"Block created by the . builtin") +#define SOURCE_BLOCK N_(L"block created by the . builtin") /// Source block description. #define EVENT_BLOCK N_(L"event handler block") |