Add a little hack to make it so panic alerts and questions can be translated if they are in the wxWidgets portion of the code, as well as make a few strings in the config dialog translatable.

Add Hungarian translations by Delirious.
Update Italian translations by RebuMan.
Update German translations by JackyCola and LucasX.
Update Greek translations by Gpower2.
Update Frensh translations by Pascal.
Make sure the game list is refreshed when the GC language is changed.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6826 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2011-01-12 13:14:50 +00:00
parent 49a89c1739
commit a4dd8c41a8
33 changed files with 11860 additions and 3540 deletions
+4
View File
@@ -98,6 +98,10 @@
RelativePath=".\he.po"
>
</File>
<File
RelativePath=".\hu.po"
>
</File>
<File
RelativePath=".\it.po"
>
+636 -330
View File
File diff suppressed because it is too large Load Diff
+450 -160
View File
File diff suppressed because it is too large Load Diff
+609 -299
View File
File diff suppressed because it is too large Load Diff
+450 -161
View File
File diff suppressed because it is too large Load Diff
+474 -167
View File
File diff suppressed because it is too large Load Diff
+993 -666
View File
File diff suppressed because it is too large Load Diff
+5 -3
View File
@@ -2,9 +2,11 @@
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 -p ./Languages -o dolphin-emu.pot $CPP_FILE_LIST \
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 \
-p ./Languages -o dolphin-emu.pot $CPP_FILE_LIST \
--package-name="Dolphin Emu"
POTFILE=./Languages/dolphin-emu.pot
+451 -162
View File
File diff suppressed because it is too large Load Diff
+3499
View File
File diff suppressed because it is too large Load Diff
+943 -392
View File
File diff suppressed because it is too large Load Diff
+460 -161
View File
File diff suppressed because it is too large Load Diff
+468 -161
View File
File diff suppressed because it is too large Load Diff
+470 -161
View File
File diff suppressed because it is too large Load Diff
+470 -161
View File
File diff suppressed because it is too large Load Diff
+468 -161
View File
File diff suppressed because it is too large Load Diff
+455 -161
View File
File diff suppressed because it is too large Load Diff
+468 -161
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -122,6 +122,14 @@ inline T max(const T& a, const T& b) {return a > b ? a : b;}
// Defined in Misc.cpp.
const char* GetLastErrorMsg();
#if defined(HAVE_WX) && HAVE_WX
// This should be used to mark c strings as translatable in PanicAlerts but only in
// wxWidgets portions of the code.
#define _wxt(a) (std::string(wxString(wxGetTranslation(wxT(a))).To8BitData()).c_str())
#else
#define _wxt(a) a
#endif
namespace Common
{
inline u8 swap8(u8 _data) {return _data;}
+1 -1
View File
@@ -151,7 +151,7 @@ bool BootCore(const std::string& _rFilename)
// Init the core
if (!Core::Init())
{
PanicAlert("Couldn't init the core.\nCheck your configuration.");
PanicAlert(_wxt("Couldn't init the core.\nCheck your configuration."));
return false;
}

Some files were not shown because too many files have changed in this diff Show More