diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-08 22:25:02 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-08 23:11:25 -0700 |
commit | 7813ac86bf5bfaeee3d4652b35dcfd8972775423 (patch) | |
tree | e055e7dd4b8497248d4528732715cb638da8257c /main.cpp | |
parent | c260ec5c1673f9071b0c9c5407944ecb35bf5ff2 (diff) | |
download | subsurface-7813ac86bf5bfaeee3d4652b35dcfd8972775423.tar.gz |
Load translations at run time
This doesn't enable translation switching, but at least we try and load
the correct translation at startup.
We create two global pointers for the currently active translations.
This also removes the remainders of the gettext()/glib based translation
system.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -13,22 +13,13 @@ #include <QStringList> +QTranslator *qtTranslator, *ssrfTranslator; + int main(int argc, char **argv) { int i; bool no_filenames = true; -#if 0 - const char *path; - /* 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 */ - path = subsurface_gettext_domainpath(argv[0]); - setlocale(LC_ALL, ""); - bindtextdomain("subsurface", path); - bind_textdomain_codeset("subsurface", "utf-8"); - textdomain("subsurface"); -#endif setup_system_prefs(); prefs = default_prefs; |