add pseudolocalize

This commit is contained in:
Chris Danford
2006-01-06 23:34:41 +00:00
parent 210f36a243
commit b70eb0e509
3 changed files with 37 additions and 20 deletions
+1
View File
@@ -794,6 +794,7 @@ void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame )
// it's OK to call these functions with names that don't exist.
ANNOUNCER->SwitchAnnouncer( sAnnouncer );
THEME->SwitchThemeAndLanguage( sTheme, PREFSMAN->m_sLanguage );
THEME->SetPseudoLocalilze( PREFSMAN->m_bPseudoLocalize );
}
+13 -1
View File
@@ -12,6 +12,7 @@
#include "LuaManager.h"
#include "ThemeManager.h"
#include "SpecialFiles.h"
#include "IniFile.h"
#ifdef _DEBUG
@@ -112,7 +113,18 @@ BOOL CSmpackageApp::InitInstance()
FILEMAN = new RageFileManager( "" );
LUA = new LuaManager();
THEME = new ThemeManager();
THEME->SwitchThemeAndLanguage( SpecialFiles::BASE_THEME_NAME, SpecialFiles::BASE_LANGUAGE );
// TODO: Use PrefsManager to get the current language instead? PrefsManager would
// need to be split up to reduce dependencies
IniFile ini;
ini.ReadFile( SpecialFiles::PREFERENCES_INI_PATH );
RString sLanguage;
ini.GetValue( "Preferences", "Language", sLanguage );
bool bPseudoLocalize;
ini.GetValue( "PseudoLocalize", "Language", bPseudoLocalize );
THEME->SwitchThemeAndLanguage( SpecialFiles::BASE_THEME_NAME, sLanguage );
THEME->SetPseudoLocalilze( bPseudoLocalize );
// Show the Manager Dialog
+23 -19
View File
@@ -157,39 +157,43 @@ BEGIN
IDC_STATIC,18,144,196,17
END
IDD_MENU DIALOGEX 0, 0, 332, 265
IDD_MENU DIALOGEX 0, 0, 332, 284
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "StepMania Tools Main Menu"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
DEFPUSHBUTTON "Exit",IDOK,275,244,50,14
DEFPUSHBUTTON "Exit",IDOK,275,263,50,14
CONTROL 1045,IDC_STATIC,"Static",SS_BITMAP,0,0,332,38
GROUPBOX "Installation",IDC_STATIC,7,41,318,28
PUSHBUTTON "Edit Installations",IDC_EDIT_INSTALLATIONS,241,49,75,15
GROUPBOX "Create and Share",IDC_STATIC,7,161,318,79
PUSHBUTTON "Export Packages",IDC_EXPORT_PACKAGES,15,176,75,15
GROUPBOX "Create and Share",IDC_STATIC,7,176,318,78
PUSHBUTTON "Export Packages",IDC_EXPORT_PACKAGES,14,190,83,15
LTEXT "Create .smzip package files to share with other users. Packages can contain songs, courses, themes, backgrounds, and more.",
IDC_STATIC,104,175,215,18
PUSHBUTTON "Create Song",IDC_CREATE_SONG,15,197,75,15
IDC_STATIC,106,190,215,18
PUSHBUTTON "Create Song",IDC_CREATE_SONG,14,211,83,15
LTEXT "Create a new song in from your favorite mp3 or ogg music file.",
IDC_STATIC,103,196,215,20
GROUPBOX "Troubleshooting",IDC_STATIC,7,72,318,87
PUSHBUTTON "Change Preferences",IDC_CHANGE_PREFERENCES,16,83,75,15
PUSHBUTTON "Open Preferences",IDC_OPEN_PREFERENCES,16,115,75,15
LTEXT "Using this feature, you can:\n - Change the graphics API that the game will use.\n - Change the sound API that the game will use.\n - Clear all preferences if the game won't start.\n - Open the preferences file to make changes by hand.",
IDC_STATIC,104,86,215,45
PUSHBUTTON "Clear Preferences",IDC_CLEAR_PREFERENCES,16,99,75,15
PUSHBUTTON "Clear Mappings",IDC_CLEAR_KEYMAPS,16,138,75,15
IDC_STATIC,106,211,215,20
GROUPBOX "Troubleshooting",IDC_STATIC,7,73,318,99
PUSHBUTTON "Change Preferences",IDC_CHANGE_PREFERENCES,15,85,83,15
PUSHBUTTON "Open Preferences",IDC_OPEN_PREFERENCES,15,127,83,15
LTEXT "Change the graphics API, sound API, and other settings that the game will use.",
IDC_STATIC,106,85,215,18
PUSHBUTTON "Clear Preferences",IDC_CLEAR_PREFERENCES,15,106,83,15
PUSHBUTTON "Clear Mappings",IDC_CLEAR_KEYMAPS,15,148,83,15
EDITTEXT IDC_EDIT_INSTALLATION,16,51,219,12,ES_AUTOHSCROLL |
ES_READONLY
LTEXT "Erase all of your keyboard and joystick mappings if you've made a mistake.",
IDC_STATIC,104,137,214,18
PUSHBUTTON "Launch Game",IDC_BUTTON_LAUNCH_GAME,189,244,70,14
PUSHBUTTON "Languages",IDC_LANGUAGES,15,218,75,15
IDC_STATIC,106,148,214,18
PUSHBUTTON "Launch Game",IDC_BUTTON_LAUNCH_GAME,189,263,70,14
PUSHBUTTON "Languages",IDC_LANGUAGES,14,232,83,15
LTEXT "Create a new or manage existing language translations.",
IDC_STATIC,103,217,215,20
IDC_STATIC,106,232,215,20
LTEXT "StepMania Tools Main Menu",IDC_STATIC_HEADER_TEXT,5,2,
280,24
LTEXT "Open the preferences file to make changes by hand.",
IDC_STATIC,106,127,214,18
LTEXT "Clear all preferences if you've made changes and the game won't start.",
IDC_STATIC,106,106,214,18
END
IDD_ENTER_COMMENT DIALOGEX 0, 0, 312, 202
@@ -398,7 +402,7 @@ BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 325
TOPMARGIN, 7
BOTTOMMARGIN, 258
BOTTOMMARGIN, 277
END
IDD_ENTER_COMMENT, DIALOG