-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I18N: Do not mark empty strings for a translation
An empty string has a special meaning in gettext and marking such string produces invalid catalogs with a duplicate message ID entry. We cannot use simply Error("") necause Error() expects BgettextMessage argument. Therefore I added EMPTY_MESSAGE macro which expands to the same as M_(""), but is not caught by xgettext. I think it's cleaner solution than overriding xgettext behaviour for that line of code. For aesthetic reasons I also disabled clang-format at two places. Fixes: #1158
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters