Skip to content

Commit 95a9fc7

Browse files
committed
Revise call to translate testing function
1 parent eb879ff commit 95a9fc7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/translate.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ void translate_init(struct context *cnt)
4848
{
4949
#ifdef HAVE_GETTEXT
5050
if (cnt->conf.native_language == 1) {
51-
translate_locale_chg("es"); /* This is a testing only function call*/
5251
nls_enabled = 1;
5352
setlocale (LC_ALL, "");
5453
bindtextdomain ("motion", LOCALEDIR);
@@ -62,6 +61,10 @@ void translate_init(struct context *cnt)
6261
nls_enabled = 0;
6362
(void)cnt;
6463
#endif
64+
65+
if (nls_enabled == 1) {
66+
translate_locale_chg("es"); /* This is a testing only function call*/
67+
}
6568
}
6669

6770
char* translate_text(const char *msgid)

0 commit comments

Comments
 (0)