From 014276a11cd24825ca9d3ea2e21682a5557d38da Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 29 Aug 2020 13:41:02 +1000 Subject: Cleanup: spelling --- source/blender/blentranslation/intern/blt_lang.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'source/blender/blentranslation') diff --git a/source/blender/blentranslation/intern/blt_lang.c b/source/blender/blentranslation/intern/blt_lang.c index bcbffe56636..078ded7e5c2 100644 --- a/source/blender/blentranslation/intern/blt_lang.c +++ b/source/blender/blentranslation/intern/blt_lang.c @@ -205,11 +205,11 @@ void BLT_lang_init(void) const char *const messagepath = BKE_appdir_folder_id(BLENDER_DATAFILES, "locale"); #endif - /* Make sure LANG is correct and wouldn't cause std::rumtime_error. */ + /* Make sure LANG is correct and wouldn't cause #std::rumtime_error. */ #ifndef _WIN32 /* TODO(sergey): This code only ensures LANG is set properly, so later when - * Cycles will try to use file system API from boost there'll be no runtime - * exception generated by std::locale() which _requires_ having proper LANG + * Cycles will try to use file system API from boost there will be no runtime + * exception generated by #std::locale() which _requires_ having proper LANG * set in the environment. * * Ideally we also need to ensure LC_ALL, LC_MESSAGES and others are also @@ -221,7 +221,7 @@ void BLT_lang_init(void) const char *lang = BLI_getenv("LANG"); if (lang != NULL) { char *old_locale = setlocale(LC_ALL, NULL); - /* Make a copy so subsequenct setlocale() doesn't interfere. */ + /* Make a copy so subsequent #setlocale() doesn't interfere. */ old_locale = BLI_strdup(old_locale); if (setlocale(LC_ALL, lang) == NULL) { setenv("LANG", "C", 1); @@ -267,7 +267,7 @@ void BLT_lang_set(const char *str) /* We want to avoid locales like '.UTF-8'! */ if (short_locale[0]) { - /* Hurrey! encoding needs to be placed *before* variant! */ + /* Hooray! Encoding needs to be placed *before* variant! */ char *variant = strchr(short_locale, '@'); if (variant) { char *locale = BLI_strdupn(short_locale, variant - short_locale); @@ -311,12 +311,14 @@ 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. +/** + * 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, @@ -378,7 +380,8 @@ void BLT_lang_locale_explode(const char *locale, } } -/* Test if the translation context allows IME input - used to +/** + * Test if the translation context allows IME input - used to * avoid weird character drawing if IME inputs non-ascii chars. */ static void blt_lang_check_ime_supported(void) -- cgit v1.2.3