mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Don't call gnc_path_get_localedir vefore binreloc is initialized.
This commit is contained in:
parent
b1ffe2246a
commit
159ceb6490
@ -846,7 +846,7 @@ redirect_stdout (void)
|
|||||||
int
|
int
|
||||||
main(int argc, char ** argv)
|
main(int argc, char ** argv)
|
||||||
{
|
{
|
||||||
gchar *localedir = gnc_path_get_localedir();
|
gchar *localedir;
|
||||||
#if !defined(G_THREADS_ENABLED) || defined(G_THREADS_IMPL_NONE)
|
#if !defined(G_THREADS_ENABLED) || defined(G_THREADS_IMPL_NONE)
|
||||||
# error "No GLib thread implementation available!"
|
# error "No GLib thread implementation available!"
|
||||||
#endif
|
#endif
|
||||||
@ -882,6 +882,7 @@ main(int argc, char ** argv)
|
|||||||
setlocale (LC_ALL, "C");
|
setlocale (LC_ALL, "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
localedir = gnc_path_get_localedir();
|
||||||
bindtextdomain(PROJECT_NAME, localedir);
|
bindtextdomain(PROJECT_NAME, localedir);
|
||||||
bindtextdomain("iso_4217", localedir); // For win32 to find currency name translations
|
bindtextdomain("iso_4217", localedir); // For win32 to find currency name translations
|
||||||
bind_textdomain_codeset("iso_4217", "UTF-8");
|
bind_textdomain_codeset("iso_4217", "UTF-8");
|
||||||
|
Loading…
Reference in New Issue
Block a user