Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-08-29 06:41:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-29 11:56:08 +0300
commit014276a11cd24825ca9d3ea2e21682a5557d38da (patch)
treee4a7615b5a396fd0aaff0a9810aae5bae410f892 /source/blender/blentranslation/intern/blt_lang.c
parentbfa78aceed7824e5a5cfcefe6d73d96dc12b0d99 (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/blentranslation/intern/blt_lang.c')
-rw-r--r--source/blender/blentranslation/intern/blt_lang.c21
1 files changed, 12 insertions, 9 deletions
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)