mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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:
@@ -98,6 +98,10 @@
|
||||
RelativePath=".\he.po"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\hu.po"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\it.po"
|
||||
>
|
||||
|
||||
+636
-330
File diff suppressed because it is too large
Load Diff
+450
-160
File diff suppressed because it is too large
Load Diff
+609
-299
File diff suppressed because it is too large
Load Diff
+450
-161
File diff suppressed because it is too large
Load Diff
+474
-167
File diff suppressed because it is too large
Load Diff
+993
-666
File diff suppressed because it is too large
Load Diff
@@ -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
File diff suppressed because it is too large
Load Diff
+3499
File diff suppressed because it is too large
Load Diff
+943
-392
File diff suppressed because it is too large
Load Diff
+460
-161
File diff suppressed because it is too large
Load Diff
+468
-161
File diff suppressed because it is too large
Load Diff
+470
-161
File diff suppressed because it is too large
Load Diff
+470
-161
File diff suppressed because it is too large
Load Diff
+468
-161
File diff suppressed because it is too large
Load Diff
+455
-161
File diff suppressed because it is too large
Load Diff
+468
-161
File diff suppressed because it is too large
Load Diff
@@ -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;}
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user