16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 12:19:18 +02:00

basic text localization system

This commit is contained in:
tmj-fstate
2018-09-02 16:09:05 +02:00
parent 955e8915a5
commit 6d16d52356
11 changed files with 555 additions and 318 deletions

View File

@@ -20,6 +20,7 @@ http://mozilla.org/MPL/2.0/.
#include "sceneeditor.h"
#include "renderer.h"
#include "uilayer.h"
#include "translation.h"
#include "logs.h"
#ifdef EU07_BUILD_STATIC
@@ -109,6 +110,9 @@ eu07_application::init( int Argc, char *Argv[] ) {
if( ( result = init_settings( Argc, Argv ) ) != 0 ) {
return result;
}
if( ( result = init_locale() ) != 0 ) {
return result;
}
WriteLog( "Starting MaSzyna rail vehicle simulator (release: " + Global.asVersion + ")" );
WriteLog( "For online documentation and additional files refer to: http://eu07.pl" );
@@ -368,6 +372,14 @@ eu07_application::init_settings( int Argc, char *Argv[] ) {
return 0;
}
int
eu07_application::init_locale() {
locale::init();
return 0;
}
int
eu07_application::init_glfw() {