Skip to content
Permalink
Browse files

Allow user to specify language using --lang

  • Loading branch information...
thp committed Nov 17, 2015
1 parent 9d4dd23 commit f902d8fbc24593495c1096e63c56efdf30d25088
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/App.cpp
@@ -54,7 +54,12 @@ class App : private Container, public MainLoop
setEventMap(APP_MAP);

// FIXME: Figure out system language and load corresponding translation
Tr::load("i18n/de");
for (int i=0; i<argc; i++) {
if (i < argc-1 && strcmp(argv[i], "--lang") == 0) {
LOG_DEBUG("Trying to load translation for '%s'", argv[i+1]);
Tr::load(thp::format("i18n/%s", argv[i+1]));
}
}

m_window = new Window(m_width,m_height,"Numpty Physics");
sizeTo(Vec2(m_width,m_height));

1 comment on commit f902d8f

@glixx

This comment has been minimized.

Copy link
Contributor

commented on f902d8f Nov 18, 2015

Manpage was not updated for new option.

Please sign in to comment.
You can’t perform that action at this time.