mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Removed my previous PanicAlert translation hack. Fixed with a better method suggested by BhaaL. The translation is done by a callback in the MsgHandler routine that is set at program start. Added macros PanicAlertT, SuccessAlertT, PanicYesNoT, and AskYesNoT that are identical to the non T versions except those strings will be added by gettext to the po files to be translated. These can and should be used anywhere in the code for strings that should be translated.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6838 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
+1019
-186
File diff suppressed because it is too large
Load Diff
+1023
-187
File diff suppressed because it is too large
Load Diff
+1017
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
+1017
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
@@ -4,8 +4,8 @@ cd ${0/gettextize/}/..
|
||||
SRCDIR=Source
|
||||
CPP_FILE_LIST=$(find $SRCDIR \( -name '*.cpp' -o -name '*.h' -o -name '*.c' \) \
|
||||
-a ! -path '*Debug*')
|
||||
xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=_t \
|
||||
--keyword=_wxt --keyword=_trans \
|
||||
xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \
|
||||
--keyword=PanicAlertT --keyword=PanicYesNoT --keyword=AskYesNoT --keyword=_trans \
|
||||
-p ./Languages -o dolphin-emu.pot $CPP_FILE_LIST \
|
||||
--package-name="Dolphin Emu"
|
||||
|
||||
|
||||
+1017
-184
File diff suppressed because it is too large
Load Diff
+1020
-184
File diff suppressed because it is too large
Load Diff
+1113
-247
File diff suppressed because it is too large
Load Diff
+1021
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
+1019
-184
File diff suppressed because it is too large
Load Diff
+1022
-184
File diff suppressed because it is too large
Load Diff
@@ -35,7 +35,7 @@ void AOSound::SoundLoop()
|
||||
device = ao_open_live(default_driver, &format, NULL /* no options */);
|
||||
if (!device)
|
||||
{
|
||||
PanicAlert("AudioCommon: Error opening AO device.\n");
|
||||
PanicAlertT("AudioCommon: Error opening AO device.\n");
|
||||
ao_shutdown();
|
||||
Stop();
|
||||
return;
|
||||
|
||||
@@ -65,9 +65,9 @@ namespace AudioCommon
|
||||
*/
|
||||
return soundStream;
|
||||
}
|
||||
PanicAlert("Could not initialize backend %s.", backend.c_str());
|
||||
PanicAlertT("Could not initialize backend %s.", backend.c_str());
|
||||
}
|
||||
PanicAlert("Sound backend %s is not valid.", backend.c_str());
|
||||
PanicAlertT("Sound backend %s is not valid.", backend.c_str());
|
||||
|
||||
delete soundStream;
|
||||
soundStream = NULL;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user