diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 18:50:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 23:30:08 +0300 |
commit | 380ce86a7f0a9f70f9b152541c53e74c52863ef5 (patch) | |
tree | 68d075c8e184186e56a32e9dd839cd7cbed1b673 /source/blender/blentranslation/intern | |
parent | c5862e0a06b75767fd863673c54aab54f27d1872 (diff) |
Cleanup: comments (long lines) in avi, blf & blt
Diffstat (limited to 'source/blender/blentranslation/intern')
-rw-r--r-- | source/blender/blentranslation/intern/blt_lang.c | 12 | ||||
-rw-r--r-- | source/blender/blentranslation/intern/blt_translation.c | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/blentranslation/intern/blt_lang.c b/source/blender/blentranslation/intern/blt_lang.c index e8955235198..52d15a29fc2 100644 --- a/source/blender/blentranslation/intern/blt_lang.c +++ b/source/blender/blentranslation/intern/blt_lang.c @@ -118,7 +118,8 @@ static void fill_locales(void) /* And now, build locales and locale_menu! */ locales_menu = MEM_callocN(num_locales_menu * sizeof(EnumPropertyItem), __func__); line = lines; - /* Do not allocate locales with zero-sized mem, as LOCALE macro uses NULL locales as invalid marker! */ + /* Do not allocate locales with zero-sized mem, + * as LOCALE macro uses NULL locales as invalid marker! */ if (num_locales > 0) { locales = MEM_callocN(num_locales * sizeof(char *), __func__); while (line) { @@ -155,7 +156,8 @@ static void fill_locales(void) /* The DEFAULT/Automatic item... */ if (BLI_strnlen(loc, 2)) { locales[id] = ""; - /* Keep this tip in sync with the one in rna_userdef (rna_enum_language_default_items). */ + /* Keep this tip in sync with the one in rna_userdef + * (rna_enum_language_default_items). */ locales_menu[idx].description = BLI_strdup( "Automatically choose system's defined language " "if available, or fall-back to English"); @@ -307,10 +309,12 @@ const char *BLT_lang_get(void) #undef LOCALE #undef ULANGUAGE -/* Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g. if there is no variant, +/* Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g. + * if there is no variant, * *variant and *language_variant will always be NULL). * Non-null elements are always MEM_mallocN'ed, it's the caller's responsibility to free them. - * NOTE: Keep that one always available, you never know, may become useful even in no-WITH_INTERNATIONAL context... + * NOTE: Keep that one always available, you never know, + * may become useful even in no-WITH_INTERNATIONAL context... */ void BLT_lang_locale_explode(const char *locale, char **language, diff --git a/source/blender/blentranslation/intern/blt_translation.c b/source/blender/blentranslation/intern/blt_translation.c index a4bac6bc01f..64e14522aca 100644 --- a/source/blender/blentranslation/intern/blt_translation.c +++ b/source/blender/blentranslation/intern/blt_translation.c @@ -61,8 +61,8 @@ const char *BLT_pgettext(const char *msgctxt, const char *msgid) msgctxt = BLT_I18NCONTEXT_DEFAULT; } ret = bl_locale_pgettext(msgctxt, msgid); - /* We assume if the returned string is the same (memory level) as the msgid, no translation was found, - * and we can try py scripts' ones! + /* We assume if the returned string is the same (memory level) as the msgid, + * no translation was found, and we can try py scripts' ones! */ # ifdef WITH_PYTHON if (ret == msgid) { |