Skip to content

Commit c00e8aa

Browse files
committed
fixup! gettext: avoid initialization if the locale dir is not present
In preparation for the more general RUNTIME_PREFIX support, this reverts commit 5025407. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f91c5f2 commit c00e8aa

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

gettext.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,11 @@ void git_setup_gettext(void)
169169
if (!is_absolute_path(podir))
170170
podir = p = system_path(podir);
171171

172-
if (is_directory(podir)) {
173-
bindtextdomain("git", podir);
174-
setlocale(LC_MESSAGES, "");
175-
setlocale(LC_TIME, "");
176-
init_gettext_charset("git");
177-
textdomain("git");
178-
}
172+
bindtextdomain("git", podir);
173+
setlocale(LC_MESSAGES, "");
174+
setlocale(LC_TIME, "");
175+
init_gettext_charset("git");
176+
textdomain("git");
179177

180178
free(p);
181179
}

0 commit comments

Comments
 (0)