Set locale under Windows
This is mostly a quick hack to be able to test localization under Windows. It seems to work fine under Windows 7 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
72c7d7c9c4
commit
f97f75f961
2
main.c
2
main.c
@ -230,8 +230,8 @@ int main(int argc, char **argv)
|
||||
/* set up l18n - the search directory needs to change
|
||||
* so that it uses the correct system directory when
|
||||
* subsurface isn't run from the local directory */
|
||||
setlocale( LC_ALL, "" );
|
||||
path = subsurface_gettext_domainpath();
|
||||
setlocale( LC_ALL, "" );
|
||||
bindtextdomain("subsurface", path);
|
||||
bind_textdomain_codeset("subsurface", "utf-8");
|
||||
textdomain("subsurface");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user