We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb879ff commit 95a9fc7Copy full SHA for 95a9fc7
1 file changed
src/translate.c
@@ -48,7 +48,6 @@ void translate_init(struct context *cnt)
48
{
49
#ifdef HAVE_GETTEXT
50
if (cnt->conf.native_language == 1) {
51
- translate_locale_chg("es"); /* This is a testing only function call*/
52
nls_enabled = 1;
53
setlocale (LC_ALL, "");
54
bindtextdomain ("motion", LOCALEDIR);
@@ -62,6 +61,10 @@ void translate_init(struct context *cnt)
62
61
nls_enabled = 0;
63
(void)cnt;
64
#endif
+
65
+ if (nls_enabled == 1) {
66
+ translate_locale_chg("es"); /* This is a testing only function call*/
67
+ }
68
}
69
70
char* translate_text(const char *msgid)
0 commit comments