diff --git a/gui.pnproj b/gui.pnproj
index 5d2af8d1..7d63842a 100644
--- a/gui.pnproj
+++ b/gui.pnproj
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/source/cfg.c b/source/cfg.c
index 9ee0dcc5..3291fe2c 100644
--- a/source/cfg.c
+++ b/source/cfg.c
@@ -6,7 +6,11 @@
#include
#include
#include "cfg.h"
-
+#include "language.h"
+//#include "language.c"
+extern void language_set();
+extern void lang_default();
+extern char* strcopy();
struct SSettings Settings;
//struct SSettings2 Settings2;
@@ -33,7 +37,6 @@ char current_path[100];
struct CFG CFG;
struct THEME THEME;
-struct LANGUAGE LANGUAGE;
u8 ocarinaChoice = 0;
u8 videoChoice = 0;
u8 languageChoice = 0;
@@ -222,7 +225,8 @@ void CFG_Default(int widescreen) // -1 = non forced Mode
snprintf(CFG.covers_path, sizeof(CFG.covers_path), "SD:/images/"); //default image path
snprintf(CFG.disc_path, sizeof(CFG.disc_path), "SD:/images/disc/");//default path for disc images
- snprintf(CFG.unlockCode, sizeof(CFG.unlockCode), "ab121b"); // default passwore
+ snprintf(CFG.unlockCode, sizeof(CFG.unlockCode), "ab121b"); // default password
+ snprintf(CFG.language_path, sizeof(CFG.language_path), "SD:/config/language.txt");
CFG.parentalcontrol = 0;
CFG.maxcharacters = 38;
@@ -286,12 +290,7 @@ void CFG_Default(int widescreen) // -1 = non forced Mode
}
-char* strcopy(char *dest, char *src, int size)
-{
- strncpy(dest,src,size);
- dest[size-1] = 0;
- return dest;
-}
+
char *cfg_get_title(u8 *id)
{
@@ -451,6 +450,7 @@ void cfg_set(char *name, char *val)
return;
}
+
if (CFG.widescreen && strcmp(name, "wtheme_path") == 0) { // if in 16:9
strcopy(CFG.theme_path, val, sizeof(CFG.theme_path));
return;
@@ -466,6 +466,11 @@ void cfg_set(char *name, char *val)
return;
}
+ if (strcmp(name, "language_path") == 0) {
+ strcopy(CFG.language_path, val, sizeof(CFG.language_path));
+ return;
+ }
+
cfg_int("parentalcontrol", &CFG.parentalcontrol, 4);
cfg_bool("godmode", &CFG.godmode);
@@ -473,8 +478,18 @@ void cfg_set(char *name, char *val)
strcopy(CFG.unlockCode, val, sizeof(CFG.unlockCode));
return;
}
+
+
+
+
+ /*if (strcmp(name, "lang_path") == 0) {
+ strcopy(, val, sizeof(CFG.unlockCode));
+ return;
+ }*/
}
+
+
void theme_set(char *name, char *val)
{
cfg_name = name;
@@ -648,7 +663,10 @@ void theme_set(char *name, char *val)
THEME.maxcharacters = x;
}
}
-
+
+
+
+
cfg_bool("show_id", &THEME.showID);
cfg_bool("show_tooltip", &THEME.showToolTip);
cfg_bool("show_hddinfo", &THEME.showHDD);
@@ -959,6 +977,7 @@ bool cfg_save_global()// save global settings
fprintf(f, "theme_path = %s\n ", CFG.theme_path);
}
fprintf(f, "disc_path = %s\n ", CFG.disc_path);
+ fprintf(f, "language_path = %s\n ", CFG.language_path);
if(!strcmp("", Settings.unlockCode)) {
fprintf(f, "godmode = %d\n ", CFG.godmode);
} else {
@@ -1143,6 +1162,9 @@ void CFG_Load(int argc, char **argv)
snprintf(pathname, sizeof(pathname), "%stheme.txt", CFG.theme_path);
cfg_parsefile(pathname, &theme_set); //finally set console information
+
+ snprintf(pathname, sizeof(pathname), CFG.language_path);
+ cfg_parsefile(pathname, &language_set);
// if (!ret)
// {
@@ -1160,8 +1182,8 @@ void CFG_Load(int argc, char **argv)
// cfg_parsearg(argc, argv);
}
-void CFG_Load1()
-{
+void CFG_ReLoad()
+{
char pathname[200];
// bool ret = false;
@@ -1177,6 +1199,10 @@ void CFG_Load1()
snprintf(pathname, sizeof(pathname), "%stheme.txt", CFG.theme_path);
cfg_parsefile(pathname, &theme_set); //finally set console information
+
+ snprintf(pathname, sizeof(pathname), "%slanguage.txt",CFG.language_path);
+ cfg_parsefile(pathname, &language_set);
+
// if (!ret)
// {
@@ -1190,6 +1216,7 @@ void CFG_Load1()
// load per-game settings
cfg_load_games();
+ lang_default();
// cfg_parsearg(argc, argv);
diff --git a/source/cfg.h b/source/cfg.h
index 3a9b4203..f90db0e1 100644
--- a/source/cfg.h
+++ b/source/cfg.h
@@ -68,11 +68,9 @@ struct CFG
char covers_path[100];
char theme_path[100];
char disc_path[100];
+ char language_path[100];
};
-struct LANGUAGE
-{char Install[20];
-};
struct THEME
{
@@ -133,9 +131,11 @@ struct THEME
short pagesize;
};
+
+
+
extern struct CFG CFG;
extern struct THEME THEME;
-extern struct LANGUAGE LANGUAGE;
extern u8 ocarinaChoice;
extern u8 videoChoice;
extern u8 languageChoice;
@@ -160,7 +160,8 @@ struct Game_CFG
void CFG_Default(int widescreen); // -1 = non forced mode
void CFG_Load(int argc, char **argv);
-void CFG_Load1();
+void CFG_ReLoad();
+void lang_defualt();
struct Game_CFG* CFG_get_game_opt(u8 *id);
bool CFG_save_game_opt(u8 *id);
bool CFG_forget_game_opt(u8 *id);
diff --git a/source/language.c b/source/language.c
new file mode 100644
index 00000000..97125e19
--- /dev/null
+++ b/source/language.c
@@ -0,0 +1,882 @@
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include "language.h"
+static char *cfg_name, *cfg_val;
+
+char* strcopy(char *dest, char *src, int size)
+{
+ strncpy(dest,src,size);
+ dest[size-1] = 0;
+ return dest;
+}
+
+void lang_default()
+{
+snprintf(LANGUAGE.ok, sizeof(LANGUAGE.ok), "OK");
+snprintf(LANGUAGE.AppLanguage, sizeof(LANGUAGE.AppLanguage), "App Language");
+snprintf(LANGUAGE.t3Covers, sizeof(LANGUAGE.t3Covers), "3D Covers");
+snprintf(LANGUAGE.Areyousure, sizeof(LANGUAGE.Areyousure), "Are you sure?");
+snprintf(LANGUAGE.AutoPatch, sizeof(LANGUAGE.AutoPatch), "AutoPatch");
+snprintf(LANGUAGE.Back, sizeof(LANGUAGE.Back), "Back");
+snprintf(LANGUAGE.BacktoHBCorWiiMenu, sizeof(LANGUAGE.BacktoHBCorWiiMenu), "Back to HBC or Wii Menu");
+snprintf(LANGUAGE.BacktoLoader, sizeof(LANGUAGE.BacktoLoader), "Back to Loader");
+snprintf(LANGUAGE.BacktoWiiMenu, sizeof(LANGUAGE.BacktoWiiMenu), "Back to Wii Menu");
+snprintf(LANGUAGE.BootStandard, sizeof(LANGUAGE.BootStandard), "Boot/Standard");
+snprintf(LANGUAGE.Both, sizeof(LANGUAGE.Both), "Both");
+snprintf(LANGUAGE.Cantcreatedirectory, sizeof(LANGUAGE.Cantcreatedirectory), "Can't create directory");
+snprintf(LANGUAGE.Cancel, sizeof(LANGUAGE.Cancel), "Cancel");
+snprintf(LANGUAGE.Cantbeformated, sizeof(LANGUAGE.Cantbeformated), "Can't be formated");
+snprintf(LANGUAGE.Cantdelete, sizeof(LANGUAGE.Cantdelete), "Can't delete:");
+snprintf(LANGUAGE.ClicktoDownloadCovers, sizeof(LANGUAGE.ClicktoDownloadCovers), "Click to Download Covers");
+snprintf(LANGUAGE.Clock, sizeof(LANGUAGE.Clock), "Clock");
+snprintf(LANGUAGE.Continueinstallgame, sizeof(LANGUAGE.Continueinstallgame), "Continue to install game?");
+snprintf(LANGUAGE.ConsoleDefault, sizeof(LANGUAGE.ConsoleDefault), "Console Default");
+snprintf(LANGUAGE.Consoleshouldbeunlockedtomodifyit, sizeof(LANGUAGE.Consoleshouldbeunlockedtomodifyit), "Console should be unlocked to modify it.");
+snprintf(LANGUAGE.ConsoleLocked, sizeof(LANGUAGE.ConsoleLocked), "Console Locked");
+snprintf(LANGUAGE.CorrectPassword, sizeof(LANGUAGE.CorrectPassword), "Correct Password");
+snprintf(LANGUAGE.Couldnotinitializenetwork, sizeof(LANGUAGE.Couldnotinitializenetwork), "Could not initialize network!");
+snprintf(LANGUAGE.CouldnotopenDisc, sizeof(LANGUAGE.CouldnotopenDisc), "Could not open Disc");
+snprintf(LANGUAGE.CouldnotinitializeDIPmodule, sizeof(LANGUAGE.CouldnotinitializeDIPmodule), "Could not initialize DIP module!");
+snprintf(LANGUAGE.CoverDownload, sizeof(LANGUAGE.CoverDownload), "Cover Download");
+snprintf(LANGUAGE.CoverPath, sizeof(LANGUAGE.CoverPath), "Cover Path");
+snprintf(LANGUAGE.CoverpathChanged, sizeof(LANGUAGE.CoverpathChanged), "Coverpath Changed");
+snprintf(LANGUAGE.Coverpathchange, sizeof(LANGUAGE.Coverpathchange), "Coverpath change");
+snprintf(LANGUAGE.Credits, sizeof(LANGUAGE.Credits), "Credits");
+snprintf(LANGUAGE.DiscImages, sizeof(LANGUAGE.DiscImages), "Disc Images");
+snprintf(LANGUAGE.DiscimagePath, sizeof(LANGUAGE.DiscimagePath), "Discimage Path");
+snprintf(LANGUAGE.DiscpathChanged, sizeof(LANGUAGE.DiscpathChanged), "Discpath Changed");
+snprintf(LANGUAGE.Discpathchange, sizeof(LANGUAGE.Discpathchange), "Discpath change");
+snprintf(LANGUAGE.DiscDefault, sizeof(LANGUAGE.DiscDefault), "Disc Default");
+snprintf(LANGUAGE.Display, sizeof(LANGUAGE.Display), "Display");
+snprintf(LANGUAGE.Doyouwanttoformat, sizeof(LANGUAGE.Doyouwanttoformat), "Do you want to format:");
+snprintf(LANGUAGE.Doyoureallywanttodelete, sizeof(LANGUAGE.Doyoureallywanttodelete), "Do you really want to delete:");
+snprintf(LANGUAGE.Doyouwanttoretryfor30secs, sizeof(LANGUAGE.Doyouwanttoretryfor30secs), "Do you want to retry for 30 secs?");
+snprintf(LANGUAGE.Downloadingfile, sizeof(LANGUAGE.Downloadingfile), "Downloading file:");
+snprintf(LANGUAGE.DownloadBoxartimage, sizeof(LANGUAGE.DownloadBoxartimage), "Download Boxart image?");
+snprintf(LANGUAGE.Downloadfinished, sizeof(LANGUAGE.Downloadfinished), "Download finished");
+snprintf(LANGUAGE.Error, sizeof(LANGUAGE.Error), "Error !");
+snprintf(LANGUAGE.BOOTERROR, sizeof(LANGUAGE.BOOTERROR), "BOOT ERROR");
+snprintf(LANGUAGE.ErrorreadingDisc, sizeof(LANGUAGE.ErrorreadingDisc), "Error reading Disc");
+snprintf(LANGUAGE.ExitUSBISOLoader, sizeof(LANGUAGE.ExitUSBISOLoader), "Exit USB Loader GX?");
+snprintf(LANGUAGE.InitializingNetwork, sizeof(LANGUAGE.InitializingNetwork), "Initializing Network");
+snprintf(LANGUAGE.InsertDisk, sizeof(LANGUAGE.InsertDisk), "Insert Disk");
+snprintf(LANGUAGE.InsertaWiiDisc, sizeof(LANGUAGE.InsertaWiiDisc), "Insert a Wii Disc!");
+snprintf(LANGUAGE.InsertaSDCardtodownloadimages, sizeof(LANGUAGE.InsertaSDCardtodownloadimages), "Insert an SD-Card to download images.");
+snprintf(LANGUAGE.InsertaSDCardtosave, sizeof(LANGUAGE.InsertaSDCardtosave), "Insert an SD-Card to save.");
+snprintf(LANGUAGE.InstallRenameandDeleteareunlocked, sizeof(LANGUAGE.InstallRenameandDeleteareunlocked), "All the features of USB Loader GX are unlocked.");
+snprintf(LANGUAGE.Installerror, sizeof(LANGUAGE.Installerror), "Install Error!");
+snprintf(LANGUAGE.Installagame, sizeof(LANGUAGE.Installagame), "Install a game");
+snprintf(LANGUAGE.Installinggame, sizeof(LANGUAGE.Installinggame), "Installing game:");
+snprintf(LANGUAGE.Failedtoboot, sizeof(LANGUAGE.Failedtoboot), "Failed to boot:");
+snprintf(LANGUAGE.FailedtomountfrontSDcard, sizeof(LANGUAGE.FailedtomountfrontSDcard), "Failed to mount front SD-card");
+snprintf(LANGUAGE.FailedtosetUSB, sizeof(LANGUAGE.FailedtosetUSB), "Failed to set USB:");
+snprintf(LANGUAGE.Failedformating, sizeof(LANGUAGE.Failedformating), "Failed formating");
+snprintf(LANGUAGE.filesnotfoundontheserver, sizeof(LANGUAGE.filesnotfoundontheserver), "files not found on the server!");
+snprintf(LANGUAGE.filesleft, sizeof(LANGUAGE.filesleft), "file(s) left");
+snprintf(LANGUAGE.FlipX, sizeof(LANGUAGE.FlipX), "Flip-X");
+snprintf(LANGUAGE.Force, sizeof(LANGUAGE.Force), "Force");
+snprintf(LANGUAGE.Youneedtoformatapartition, sizeof(LANGUAGE.Youneedtoformatapartition), "You need to format a partition");
+snprintf(LANGUAGE.Format, sizeof(LANGUAGE.Format), "Format");
+snprintf(LANGUAGE.Formattingpleasewait, sizeof(LANGUAGE.Formattingpleasewait), "Formatting, please wait...");
+snprintf(LANGUAGE.formated, sizeof(LANGUAGE.formated), "formatted!");
+snprintf(LANGUAGE.free, sizeof(LANGUAGE.free), "free");
+snprintf(LANGUAGE.FreeSpace, sizeof(LANGUAGE.FreeSpace), "Free Space");
+snprintf(LANGUAGE.FullShutdown, sizeof(LANGUAGE.FullShutdown), "Full Shutdown");
+snprintf(LANGUAGE.GameID, sizeof(LANGUAGE.GameID), "Game ID");
+snprintf(LANGUAGE.Games, sizeof(LANGUAGE.Games), "Games");
+snprintf(LANGUAGE.Gameisalreadyinstalled, sizeof(LANGUAGE.Gameisalreadyinstalled), "Game is already installed:");
+snprintf(LANGUAGE.GameRegion, sizeof(LANGUAGE.GameRegion), "Game Region");
+snprintf(LANGUAGE.GameSize, sizeof(LANGUAGE.GameSize), "Game Size");
+snprintf(LANGUAGE.GoBack, sizeof(LANGUAGE.GoBack), "Go Back");
+//snprintf(LANGUAGE.GotoPage, sizeof(LANGUAGE.GotoPage), "Go to Page");
+snprintf(LANGUAGE.HowtoShutdown, sizeof(LANGUAGE.HowtoShutdown), "How to Shutdown?");
+snprintf(LANGUAGE.Language, sizeof(LANGUAGE.Language), "Game Language");
+snprintf(LANGUAGE.Left, sizeof(LANGUAGE.Left), "Left");
+snprintf(LANGUAGE.LikeSysMenu, sizeof(LANGUAGE.LikeSysMenu), "Like SysMenu");
+snprintf(LANGUAGE.LoadingincIOS, sizeof(LANGUAGE.LoadingincIOS), "Loading in cIOS249");
+snprintf(LANGUAGE.Lock, sizeof(LANGUAGE.Lock), "Lock");
+snprintf(LANGUAGE.LockConsole, sizeof(LANGUAGE.LockConsole), "Lock Console");
+snprintf(LANGUAGE.MP3Menu, sizeof(LANGUAGE.MP3Menu), "MP3 Menu");
+snprintf(LANGUAGE.Missingfiles, sizeof(LANGUAGE.Missingfiles), "Missing files");
+snprintf(LANGUAGE.Networkiniterror, sizeof(LANGUAGE.Networkiniterror), "Network init error");
+snprintf(LANGUAGE.Neither, sizeof(LANGUAGE.Neither), "Neither");
+snprintf(LANGUAGE.Next, sizeof(LANGUAGE.Next), "Next");
+snprintf(LANGUAGE.No, sizeof(LANGUAGE.No), "No");
+snprintf(LANGUAGE.Nofilemissing, sizeof(LANGUAGE.Nofilemissing), "No file missing!");
+snprintf(LANGUAGE.NoHDDfound, sizeof(LANGUAGE.NoHDDfound), "No HDD found!");
+snprintf(LANGUAGE.NoSDcardinserted, sizeof(LANGUAGE.NoSDcardinserted), "No SD-Card inserted!");
+snprintf(LANGUAGE.Nopartitionsfound, sizeof(LANGUAGE.Nopartitionsfound), "No partitions found");
+snprintf(LANGUAGE.NoUSBDevice, sizeof(LANGUAGE.NoUSBDevice), "No USB Device");
+snprintf(LANGUAGE.NoWBFSpartitionfound, sizeof(LANGUAGE.NoWBFSpartitionfound), "No WBFS partition found");
+snprintf(LANGUAGE.NormalCovers, sizeof(LANGUAGE.NormalCovers), "Normal Covers");
+snprintf(LANGUAGE.Normal, sizeof(LANGUAGE.Normal), "Normal");
+snprintf(LANGUAGE.NotaWiiDisc, sizeof(LANGUAGE.NotaWiiDisc), "Not a Wii Disc");
+snprintf(LANGUAGE.NoUSBDevicefound, sizeof(LANGUAGE.NoUSBDevicefound), "No USB Device found.");
+snprintf(LANGUAGE.Notenoughfreespace, sizeof(LANGUAGE.Notenoughfreespace), "Not enough free space!");
+snprintf(LANGUAGE.notset, sizeof(LANGUAGE.notset), "not set");
+snprintf(LANGUAGE.of, sizeof(LANGUAGE.of), "of");
+snprintf(LANGUAGE.OFF, sizeof(LANGUAGE.OFF), "OFF");
+snprintf(LANGUAGE.OfficialSite, sizeof(LANGUAGE.OfficialSite), "Official Site");
+snprintf(LANGUAGE.ON, sizeof(LANGUAGE.ON), "ON");
+snprintf(LANGUAGE.Parentalcontrol, sizeof(LANGUAGE.Parentalcontrol), "Parental control");
+snprintf(LANGUAGE.Partition, sizeof(LANGUAGE.Partition), "Partition");
+snprintf(LANGUAGE.Password, sizeof(LANGUAGE.Password), "Password");
+snprintf(LANGUAGE.PasswordChanged, sizeof(LANGUAGE.PasswordChanged), "Password Changed");
+snprintf(LANGUAGE.Passwordhasbeenchanged, sizeof(LANGUAGE.Passwordhasbeenchanged), "Password has been changed");
+snprintf(LANGUAGE.Passwordchange, sizeof(LANGUAGE.Passwordchange), "Password change");
+snprintf(LANGUAGE.PowerofftheWii, sizeof(LANGUAGE.PowerofftheWii), "Power off the Wii");
+snprintf(LANGUAGE.Prev, sizeof(LANGUAGE.Prev), "Prev");
+snprintf(LANGUAGE.PromptsButtons, sizeof(LANGUAGE.PromptsButtons), "Prompts Buttons");
+snprintf(LANGUAGE.ReloadSD, sizeof(LANGUAGE.ReloadSD), "Reload SD");
+snprintf(LANGUAGE.RenameGameonWBFS, sizeof(LANGUAGE.RenameGameonWBFS), "Rename Game on WBFS");
+snprintf(LANGUAGE.Restart, sizeof(LANGUAGE.Restart), "Restart");
+snprintf(LANGUAGE.Return, sizeof(LANGUAGE.Return), "Return");
+snprintf(LANGUAGE.ReturntoWiiMenu, sizeof(LANGUAGE.ReturntoWiiMenu), "Return to Wii Menu");
+snprintf(LANGUAGE.Right, sizeof(LANGUAGE.Right), "Right");
+snprintf(LANGUAGE.Rumble, sizeof(LANGUAGE.Rumble), "Rumble");
+snprintf(LANGUAGE.QuickBoot, sizeof(LANGUAGE.QuickBoot), "Quick Boot");
+snprintf(LANGUAGE.Save, sizeof(LANGUAGE.Save), "Save");
+snprintf(LANGUAGE.SaveFailed, sizeof(LANGUAGE.SaveFailed), "Save Failed");
+snprintf(LANGUAGE.Specialthanksto, sizeof(LANGUAGE.Specialthanksto), "Special thanks to");
+snprintf(LANGUAGE.For, sizeof(LANGUAGE.For), "for");
+snprintf(LANGUAGE.theUSBLoaderandreleasingthesourcecode, sizeof(LANGUAGE.theUSBLoaderandreleasingthesourcecode), "and releasing the source code");
+snprintf(LANGUAGE.secondsleft, sizeof(LANGUAGE.secondsleft), "seconds left");
+snprintf(LANGUAGE.SelectthePartition, sizeof(LANGUAGE.SelectthePartition), "Select the Partition");
+snprintf(LANGUAGE.Specialthanksto, sizeof(LANGUAGE.Specialthanksto), "Special thanks to");
+snprintf(LANGUAGE.youwanttoformat, sizeof(LANGUAGE.youwanttoformat), "you want to format");
+snprintf(LANGUAGE.settings, sizeof(LANGUAGE.settings), "Settings");
+snprintf(LANGUAGE.ShutdowntoIdle, sizeof(LANGUAGE.ShutdowntoIdle), "Shutdown to Idle");
+snprintf(LANGUAGE.ShutdownSystem, sizeof(LANGUAGE.ShutdownSystem), "Shutdown System");
+snprintf(LANGUAGE.Success, sizeof(LANGUAGE.Success), "Success:");
+snprintf(LANGUAGE.Successfullyinstalled, sizeof(LANGUAGE.Successfullyinstalled), "Successfully installed:");
+snprintf(LANGUAGE.Successfullydeleted, sizeof(LANGUAGE.Successfullydeleted), "Successfully deleted:");
+snprintf(LANGUAGE.SuccessfullySaved, sizeof(LANGUAGE.SuccessfullySaved), "Successfully Saved");
+snprintf(LANGUAGE.SystemDefault, sizeof(LANGUAGE.SystemDefault), "System Default");
+snprintf(LANGUAGE.ThemePath, sizeof(LANGUAGE.ThemePath), "ThemePath");
+snprintf(LANGUAGE.ThemepathChanged, sizeof(LANGUAGE.ThemepathChanged), "Themepath Changed");
+snprintf(LANGUAGE.Themepathchange, sizeof(LANGUAGE.Themepathchange), "Themepath change");
+snprintf(LANGUAGE.Try, sizeof(LANGUAGE.Try), "Try");
+snprintf(LANGUAGE.Tooltips, sizeof(LANGUAGE.Tooltips), "Tooltips");
+snprintf(LANGUAGE.Timeleft, sizeof(LANGUAGE.Timeleft), "Time left:");
+snprintf(LANGUAGE.Unlock, sizeof(LANGUAGE.Unlock), "Unlock");
+snprintf(LANGUAGE.Uninstall, sizeof(LANGUAGE.Uninstall), "Uninstall");
+snprintf(LANGUAGE.USBLoaderisprotected, sizeof(LANGUAGE.USBLoaderisprotected), "USB Loader GX is protected");
+snprintf(LANGUAGE.USBDevicenotfound, sizeof(LANGUAGE.USBDevicenotfound), "USB Device not found");
+snprintf(LANGUAGE.VideoMode, sizeof(LANGUAGE.VideoMode), "Video Mode");
+snprintf(LANGUAGE.VIDTVPatch, sizeof(LANGUAGE.VIDTVPatch), "VIDTV Patch");
+snprintf(LANGUAGE.Volume, sizeof(LANGUAGE.Volume), "Volume");
+snprintf(LANGUAGE.Waiting, sizeof(LANGUAGE.Waiting), "Waiting...");
+snprintf(LANGUAGE.WaitingforUSBDevice, sizeof(LANGUAGE.WaitingforUSBDevice), "Waiting for USB Device");
+snprintf(LANGUAGE.WidescreenFix, sizeof(LANGUAGE.WidescreenFix), "Widescreen Fix");
+snprintf(LANGUAGE.WiiMenu, sizeof(LANGUAGE.WiiMenu), "Wii Menu");
+snprintf(LANGUAGE.WrongPassword, sizeof(LANGUAGE.WrongPassword), "Wrong Password");
+snprintf(LANGUAGE.Yes, sizeof(LANGUAGE.Yes), "Yes");
+snprintf(LANGUAGE.YoudonthavecIOS, sizeof(LANGUAGE.YoudonthavecIOS), "You don't have cIOS222");
+snprintf(LANGUAGE.Japanese, sizeof(LANGUAGE.Japanese), "Japanese");
+snprintf(LANGUAGE.German, sizeof(LANGUAGE.German), "German");
+snprintf(LANGUAGE.English, sizeof(LANGUAGE.English), "English");
+snprintf(LANGUAGE.French, sizeof(LANGUAGE.French), "French");
+snprintf(LANGUAGE.Spanish, sizeof(LANGUAGE.Spanish), "Spanish");
+snprintf(LANGUAGE.Italian, sizeof(LANGUAGE.Italian), "Italian");
+snprintf(LANGUAGE.Dutch, sizeof(LANGUAGE.Dutch), "Dutch");
+snprintf(LANGUAGE.SChinese, sizeof(LANGUAGE.SChinese), "SChinese");
+snprintf(LANGUAGE.TChinese, sizeof(LANGUAGE.TChinese), "TChinese");
+snprintf(LANGUAGE.Korean, sizeof(LANGUAGE.Korean), "Korean");
+};
+
+
+struct LANGUAGE LANGUAGE;
+
+void language_set(char *name, char *val)
+{
+ cfg_name = name;
+ cfg_val = val;
+
+ if (strcmp(name, "Specialthanksto") == 0) {
+ strcopy(LANGUAGE.Specialthanksto, val, sizeof(LANGUAGE.Specialthanksto));
+ return;
+ }
+ if (strcmp(name, "ok") == 0) {
+ strcopy(LANGUAGE.ok, val, sizeof(LANGUAGE.ok));
+ return;
+ }
+ if (strcmp(name, "AppLanguage") == 0) {
+ strcopy(LANGUAGE.AppLanguage, val, sizeof(LANGUAGE.AppLanguage));
+ return;
+ }
+ if (strcmp(name, "Areyousure") == 0) {
+ strcopy(LANGUAGE.Areyousure, val, sizeof(LANGUAGE.Areyousure));
+ return;
+ }
+ if (strcmp(name, "AutoPatch") == 0) {
+ strcopy(LANGUAGE.AutoPatch, val, sizeof(LANGUAGE.AutoPatch));
+ return;
+ }
+ if (strcmp(name, "Back") == 0) {
+ strcopy(LANGUAGE.Back, val, sizeof(LANGUAGE.Back));
+ return;
+ }
+ if (strcmp(name, "BacktoHBCorWiiMenu") == 0) {
+ strcopy(LANGUAGE.BacktoHBCorWiiMenu, val, sizeof(LANGUAGE.BacktoHBCorWiiMenu));
+ return;
+ }
+ if (strcmp(name, "BacktoLoader") == 0) {
+ strcopy(LANGUAGE.BacktoLoader, val, sizeof(LANGUAGE.BacktoLoader));
+ return;
+ }
+ if (strcmp(name, "BacktoWiiMenu") == 0) {
+ strcopy(LANGUAGE.BacktoWiiMenu, val, sizeof(LANGUAGE.BacktoWiiMenu));
+ return;
+ }
+ if (strcmp(name, "BootStandard") == 0) {
+ strcopy(LANGUAGE.BootStandard, val, sizeof(LANGUAGE.BootStandard));
+ return;
+ }
+ if (strcmp(name, "Both") == 0) {
+ strcopy(LANGUAGE.Both, val, sizeof(LANGUAGE.Both));
+ return;
+ }
+ if (strcmp(name, "Cantcreatedirectory") == 0) {
+ strcopy(LANGUAGE.Cantcreatedirectory, val, sizeof(LANGUAGE.Cantcreatedirectory));
+ return;
+ }
+ if (strcmp(name, "Cancel") == 0) {
+ strcopy(LANGUAGE.Cancel, val, sizeof(LANGUAGE.Cancel));
+ return;
+ }
+ if (strcmp(name, "Cantbeformated") == 0) {
+ strcopy(LANGUAGE.Cantbeformated, val, sizeof(LANGUAGE.Cantbeformated));
+ return;
+ }
+ if (strcmp(name, "Cantdelete") == 0) {
+ strcopy(LANGUAGE.Cantdelete, val, sizeof(LANGUAGE.Cantdelete));
+ return;
+ }
+ if (strcmp(name, "ClicktoDownloadCovers") == 0) {
+ strcopy(LANGUAGE.ClicktoDownloadCovers, val, sizeof(LANGUAGE.ClicktoDownloadCovers));
+ return;
+ }
+ if (strcmp(name, "Clock") == 0) {
+ strcopy(LANGUAGE.Clock, val, sizeof(LANGUAGE.Clock));
+ return;
+ }
+ if (strcmp(name, "Continueinstallgame") == 0) {
+ strcopy(LANGUAGE.Continueinstallgame, val, sizeof(LANGUAGE.Continueinstallgame));
+ return;
+ }
+ if (strcmp(name, "ConsoleDefault") == 0) {
+ strcopy(LANGUAGE.ConsoleDefault, val, sizeof(LANGUAGE.ConsoleDefault));
+ return;
+ }
+ if (strcmp(name, "Consoleshouldbeunlockedtomodifyit") == 0) {
+ strcopy(LANGUAGE.Consoleshouldbeunlockedtomodifyit, val, sizeof(LANGUAGE.Consoleshouldbeunlockedtomodifyit));
+ return;
+ }
+ if (strcmp(name, "ConsoleLocked") == 0) {
+ strcopy(LANGUAGE.ConsoleLocked, val, sizeof(LANGUAGE.ConsoleLocked));
+ return;
+ }
+ if (strcmp(name, "CorrectPassword") == 0) {
+ strcopy(LANGUAGE.CorrectPassword, val, sizeof(LANGUAGE.CorrectPassword));
+ return;
+ }
+ if (strcmp(name, "Couldnotinitializenetwork") == 0) {
+ strcopy(LANGUAGE.Couldnotinitializenetwork, val, sizeof(LANGUAGE.Couldnotinitializenetwork));
+ return;
+ }
+ if (strcmp(name, "CouldnotopenDisc") == 0) {
+ strcopy(LANGUAGE.CouldnotopenDisc, val, sizeof(LANGUAGE.CouldnotopenDisc));
+ return;
+ }
+ if (strcmp(name, "CouldnotinitializeDIPmodule") == 0) {
+ strcopy(LANGUAGE.CouldnotinitializeDIPmodule, val, sizeof(LANGUAGE.CouldnotinitializeDIPmodule));
+ return;
+ }
+ if (strcmp(name, "CoverDownload") == 0) {
+ strcopy(LANGUAGE.CoverDownload, val, sizeof(LANGUAGE.CoverDownload));
+ return;
+ }
+ if (strcmp(name, "CoverPath") == 0) {
+ strcopy(LANGUAGE.CoverPath, val, sizeof(LANGUAGE.CoverPath));
+ return;
+ }
+ if (strcmp(name, "CoverpathChanged") == 0) {
+ strcopy(LANGUAGE.CoverpathChanged, val, sizeof(LANGUAGE.CoverpathChanged));
+ return;
+ }
+ if (strcmp(name, "Coverpathchange") == 0) {
+ strcopy(LANGUAGE.Coverpathchange, val, sizeof(LANGUAGE.Coverpathchange));
+ return;
+ }
+ if (strcmp(name, "Credits") == 0) {
+ strcopy(LANGUAGE.Credits, val, sizeof(LANGUAGE.Credits));
+ return;
+ }
+ if (strcmp(name, "DiscImages") == 0) {
+ strcopy(LANGUAGE.DiscImages, val, sizeof(LANGUAGE.DiscImages));
+ return;
+ }
+ if (strcmp(name, "DiscimagePath") == 0) {
+ strcopy(LANGUAGE.DiscimagePath, val, sizeof(LANGUAGE.DiscimagePath));
+ return;
+ }
+ if (strcmp(name, "DiscpathChanged") == 0) {
+ strcopy(LANGUAGE.DiscpathChanged, val, sizeof(LANGUAGE.DiscpathChanged));
+ return;
+ }
+ if (strcmp(name, "Discpathchange") == 0) {
+ strcopy(LANGUAGE.Discpathchange, val, sizeof(LANGUAGE.Discpathchange));
+ return;
+ }
+ if (strcmp(name, "DiscDefault") == 0) {
+ strcopy(LANGUAGE.DiscDefault, val, sizeof(LANGUAGE.DiscDefault));
+ return;
+ }
+ if (strcmp(name, "Display") == 0) {
+ strcopy(LANGUAGE.Display, val, sizeof(LANGUAGE.Display));
+ return;
+ }
+ if (strcmp(name, "Doyouwanttoformat") == 0) {
+ strcopy(LANGUAGE.Doyouwanttoformat, val, sizeof(LANGUAGE.Doyouwanttoformat));
+ return;
+ }
+ if (strcmp(name, "Doyoureallywanttodelete") == 0) {
+ strcopy(LANGUAGE.Doyoureallywanttodelete, val, sizeof(LANGUAGE.Doyoureallywanttodelete));
+ return;
+ }
+ if (strcmp(name, "Doyouwanttoretryfor30secs") == 0) {
+ strcopy(LANGUAGE.Doyouwanttoretryfor30secs, val, sizeof(LANGUAGE.Doyouwanttoretryfor30secs));
+ return;
+ }
+ if (strcmp(name, "Downloadingfile") == 0) {
+ strcopy(LANGUAGE.Downloadingfile, val, sizeof(LANGUAGE.Downloadingfile));
+ return;
+ }
+ if (strcmp(name, "DownloadBoxartimage") == 0) {
+ strcopy(LANGUAGE.DownloadBoxartimage, val, sizeof(LANGUAGE.DownloadBoxartimage));
+ return;
+ }
+ if (strcmp(name, "Downloadfinished") == 0) {
+ strcopy(LANGUAGE.Downloadfinished, val, sizeof(LANGUAGE.Downloadfinished));
+ return;
+ }
+ if (strcmp(name, "Error") == 0) {
+ strcopy(LANGUAGE.Error, val, sizeof(LANGUAGE.Error));
+ return;
+ }
+ if (strcmp(name, "BOOTERROR") == 0) {
+ strcopy(LANGUAGE.BOOTERROR, val, sizeof(LANGUAGE.BOOTERROR));
+ return;
+ }
+ if (strcmp(name, "ErrorreadingDisc") == 0) {
+ strcopy(LANGUAGE.ErrorreadingDisc, val, sizeof(LANGUAGE.ErrorreadingDisc));
+ return;
+ }
+ if (strcmp(name, "ExitUSBISOLoader") == 0) {
+ strcopy(LANGUAGE.ExitUSBISOLoader, val, sizeof(LANGUAGE.ExitUSBISOLoader));
+ return;
+ }
+ if (strcmp(name, "InitializingNetwork") == 0) {
+ strcopy(LANGUAGE.InitializingNetwork, val, sizeof(LANGUAGE.InitializingNetwork));
+ return;
+ }
+ if (strcmp(name, "InsertDisk") == 0) {
+ strcopy(LANGUAGE.InsertDisk, val, sizeof(LANGUAGE.InsertDisk));
+ return;
+ }
+ if (strcmp(name, "InsertaWiiDisc") == 0) {
+ strcopy(LANGUAGE.InsertaWiiDisc, val, sizeof(LANGUAGE.InsertaWiiDisc));
+ return;
+ }
+ if (strcmp(name, "InsertaSDCardtodownloadimages") == 0) {
+ strcopy(LANGUAGE.InsertaSDCardtodownloadimages, val, sizeof(LANGUAGE.InsertaSDCardtodownloadimages));
+ return;
+ }
+ if (strcmp(name, "InsertaSDCardtosave") == 0) {
+ strcopy(LANGUAGE.InsertaSDCardtosave, val, sizeof(LANGUAGE.InsertaSDCardtosave));
+ return;
+ }
+ if (strcmp(name, "InstallRenameandDeleteareunlocked") == 0) {
+ strcopy(LANGUAGE.InstallRenameandDeleteareunlocked, val, sizeof(LANGUAGE.InstallRenameandDeleteareunlocked));
+ return;
+ }
+ if (strcmp(name, "Installerror") == 0) {
+ strcopy(LANGUAGE.Installerror, val, sizeof(LANGUAGE.Installerror));
+ return;
+ }
+ if (strcmp(name, "Installagame") == 0) {
+ strcopy(LANGUAGE.Installagame, val, sizeof(LANGUAGE.Installagame));
+ return;
+ }
+ if (strcmp(name, "Installinggame") == 0) {
+ strcopy(LANGUAGE.Installinggame, val, sizeof(LANGUAGE.Installinggame));
+ return;
+ }
+ if (strcmp(name, "Failedtoboot") == 0) {
+ strcopy(LANGUAGE.Failedtoboot, val, sizeof(LANGUAGE.Failedtoboot));
+ return;
+ }
+ if (strcmp(name, "FailedtomountfrontSDcard") == 0) {
+ strcopy(LANGUAGE.FailedtomountfrontSDcard, val, sizeof(LANGUAGE.FailedtomountfrontSDcard));
+ return;
+ }
+ if (strcmp(name, "FailedtosetUSB") == 0) {
+ strcopy(LANGUAGE.FailedtosetUSB, val, sizeof(LANGUAGE.FailedtosetUSB));
+ return;
+ }
+ if (strcmp(name, "Failedformating") == 0) {
+ strcopy(LANGUAGE.Failedformating, val, sizeof(LANGUAGE.Failedformating));
+ return;
+ }
+ if (strcmp(name, "filesnotfoundontheserver") == 0) {
+ strcopy(LANGUAGE.filesnotfoundontheserver, val, sizeof(LANGUAGE.filesnotfoundontheserver));
+ return;
+ }
+ if (strcmp(name, "filesleft") == 0) {
+ strcopy(LANGUAGE.filesleft, val, sizeof(LANGUAGE.filesleft));
+ return;
+ }
+ if (strcmp(name, "FlipX") == 0) {
+ strcopy(LANGUAGE.FlipX, val, sizeof(LANGUAGE.FlipX));
+ return;
+ }
+ if (strcmp(name, "for") == 0) {
+ strcopy(LANGUAGE.For, val, sizeof(LANGUAGE.For));
+ return;
+ }
+ if (strcmp(name, "Force") == 0) {
+ strcopy(LANGUAGE.Force, val, sizeof(LANGUAGE.Force));
+ return;
+ }
+ if (strcmp(name, "Youneedtoformatapartition") == 0) {
+ strcopy(LANGUAGE.Youneedtoformatapartition, val, sizeof(LANGUAGE.Youneedtoformatapartition));
+ return;
+ }
+ if (strcmp(name, "Format") == 0) {
+ strcopy(LANGUAGE.Format, val, sizeof(LANGUAGE.Format));
+ return;
+ }
+ if (strcmp(name, "Formattingpleasewait") == 0) {
+ strcopy(LANGUAGE.Formattingpleasewait, val, sizeof(LANGUAGE.Formattingpleasewait));
+ return;
+ }
+ if (strcmp(name, "formated") == 0) {
+ strcopy(LANGUAGE.formated, val, sizeof(LANGUAGE.formated));
+ return;
+ }
+ if (strcmp(name, "free") == 0) {
+ strcopy(LANGUAGE.free, val, sizeof(LANGUAGE.free));
+ return;
+ }
+ if (strcmp(name, "FreeSpace") == 0) {
+ strcopy(LANGUAGE.FreeSpace, val, sizeof(LANGUAGE.FreeSpace));
+ return;
+ }
+ if (strcmp(name, "FullShutdown") == 0) {
+ strcopy(LANGUAGE.FullShutdown, val, sizeof(LANGUAGE.FullShutdown));
+ return;
+ }
+ if (strcmp(name, "GameID") == 0) {
+ strcopy(LANGUAGE.GameID, val, sizeof(LANGUAGE.GameID));
+ return;
+ }
+ if (strcmp(name, "Games") == 0) {
+ strcopy(LANGUAGE.Games, val, sizeof(LANGUAGE.Games));
+ return;
+ }
+ if (strcmp(name, "Gameisalreadyinstalled") == 0) {
+ strcopy(LANGUAGE.Gameisalreadyinstalled, val, sizeof(LANGUAGE.Gameisalreadyinstalled));
+ return;
+ }
+ if (strcmp(name, "GameRegion") == 0) {
+ strcopy(LANGUAGE.GameRegion, val, sizeof(LANGUAGE.GameRegion));
+ return;
+ }
+ if (strcmp(name, "GameSize") == 0) {
+ strcopy(LANGUAGE.GameSize, val, sizeof(LANGUAGE.GameSize));
+ return;
+ }
+ if (strcmp(name, "GoBack") == 0) {
+ strcopy(LANGUAGE.GoBack, val, sizeof(LANGUAGE.GoBack));
+ return;
+ }
+ if (strcmp(name, "GotoPage") == 0) {
+ strcopy(LANGUAGE.GotoPage, val, sizeof(LANGUAGE.GotoPage));
+ return;
+ }
+ if (strcmp(name, "HowtoShutdown") == 0) {
+ strcopy(LANGUAGE.HowtoShutdown, val, sizeof(LANGUAGE.HowtoShutdown));
+ return;
+ }
+ if (strcmp(name, "Language") == 0) {
+ strcopy(LANGUAGE.Language, val, sizeof(LANGUAGE.Language));
+ return;
+ }
+ if (strcmp(name, "Langchange") == 0) {
+ strcopy(LANGUAGE.Langchange, val, sizeof(LANGUAGE.Langchange));
+ return;
+ }
+ if (strcmp(name, "Left") == 0) {
+ strcopy(LANGUAGE.Left, val, sizeof(LANGUAGE.Left));
+ return;
+ }
+ if (strcmp(name, "LikeSysMenu") == 0) {
+ strcopy(LANGUAGE.LikeSysMenu, val, sizeof(LANGUAGE.LikeSysMenu));
+ return;
+ }
+ if (strcmp(name, "LoadingincIOS") == 0) {
+ strcopy(LANGUAGE.LoadingincIOS, val, sizeof(LANGUAGE.LoadingincIOS));
+ return;
+ }
+ if (strcmp(name, "Lock") == 0) {
+ strcopy(LANGUAGE.Lock, val, sizeof(LANGUAGE.Lock));
+ return;
+ }
+ if (strcmp(name, "LockConsole") == 0) {
+ strcopy(LANGUAGE.LockConsole, val, sizeof(LANGUAGE.LockConsole));
+ return;
+ }
+ if (strcmp(name, "MP3Menu") == 0) {
+ strcopy(LANGUAGE.MP3Menu, val, sizeof(LANGUAGE.MP3Menu));
+ return;
+ }
+ if (strcmp(name, "Missingfiles") == 0) {
+ strcopy(LANGUAGE.Missingfiles, val, sizeof(LANGUAGE.Missingfiles));
+ return;
+ }
+ if (strcmp(name, "Networkiniterror") == 0) {
+ strcopy(LANGUAGE.Networkiniterror, val, sizeof(LANGUAGE.Networkiniterror));
+ return;
+ }
+ if (strcmp(name, "Neither") == 0) {
+ strcopy(LANGUAGE.Neither, val, sizeof(LANGUAGE.Neither));
+ return;
+ }
+ if (strcmp(name, "Next") == 0) {
+ strcopy(LANGUAGE.Next, val, sizeof(LANGUAGE.Next));
+ return;
+ }
+ if (strcmp(name, "No") == 0) {
+ strcopy(LANGUAGE.No, val, sizeof(LANGUAGE.No));
+ return;
+ }
+ if (strcmp(name, "Nofilemissing") == 0) {
+ strcopy(LANGUAGE.Nofilemissing, val, sizeof(LANGUAGE.Nofilemissing));
+ return;
+ }
+ if (strcmp(name, "NoHDDfound") == 0) {
+ strcopy(LANGUAGE.NoHDDfound, val, sizeof(LANGUAGE.NoHDDfound));
+ return;
+ }
+ if (strcmp(name, "NoSDcardinserted") == 0) {
+ strcopy(LANGUAGE.NoSDcardinserted, val, sizeof(LANGUAGE.NoSDcardinserted));
+ return;
+ }
+ if (strcmp(name, "Nopartitionsfound") == 0) {
+ strcopy(LANGUAGE.Nopartitionsfound, val, sizeof(LANGUAGE.Nopartitionsfound));
+ return;
+ }
+ if (strcmp(name, "NoUSBDevice") == 0) {
+ strcopy(LANGUAGE.NoUSBDevice, val, sizeof(LANGUAGE.NoUSBDevice));
+ return;
+ }
+ if (strcmp(name, "NoWBFSpartitionfound") == 0) {
+ strcopy(LANGUAGE.NoWBFSpartitionfound, val, sizeof(LANGUAGE.NoWBFSpartitionfound));
+ return;
+ }
+ if (strcmp(name, "NormalCovers") == 0) {
+ strcopy(LANGUAGE.NormalCovers, val, sizeof(LANGUAGE.NormalCovers));
+ return;
+ }
+ if (strcmp(name, "Normal") == 0) {
+ strcopy(LANGUAGE.Normal, val, sizeof(LANGUAGE.Normal));
+ return;
+ }
+ if (strcmp(name, "NotaWiiDisc") == 0) {
+ strcopy(LANGUAGE.NotaWiiDisc, val, sizeof(LANGUAGE.NotaWiiDisc));
+ return;
+ }
+ if (strcmp(name, "NoUSBDevicefound") == 0) {
+ strcopy(LANGUAGE.NoUSBDevicefound, val, sizeof(LANGUAGE.NoUSBDevicefound));
+ return;
+ }
+ if (strcmp(name, "Notenoughfreespace") == 0) {
+ strcopy(LANGUAGE.Notenoughfreespace, val, sizeof(LANGUAGE.Notenoughfreespace));
+ return;
+ }
+ if (strcmp(name, "notset") == 0) {
+ strcopy(LANGUAGE.notset, val, sizeof(LANGUAGE.notset));
+ return;
+ }
+ if (strcmp(name, "of") == 0) {
+ strcopy(LANGUAGE.of, val, sizeof(LANGUAGE.of));
+ return;
+ }
+ if (strcmp(name, "OFF") == 0) {
+ strcopy(LANGUAGE.OFF, val, sizeof(LANGUAGE.OFF));
+ return;
+ }
+ if (strcmp(name, "OfficialSite") == 0) {
+ strcopy(LANGUAGE.OfficialSite, val, sizeof(LANGUAGE.OfficialSite));
+ return;
+ }
+ if (strcmp(name, "ON") == 0) {
+ strcopy(LANGUAGE.ON, val, sizeof(LANGUAGE.ON));
+ return;
+ }
+ if (strcmp(name, "Parentalcontrol") == 0) {
+ strcopy(LANGUAGE.Parentalcontrol, val, sizeof(LANGUAGE.Parentalcontrol));
+ return;
+ }
+ if (strcmp(name, "Partition") == 0) {
+ strcopy(LANGUAGE.Partition, val, sizeof(LANGUAGE.Partition));
+ return;
+ }
+ if (strcmp(name, "Password") == 0) {
+ strcopy(LANGUAGE.Password, val, sizeof(LANGUAGE.Password));
+ return;
+ }
+ if (strcmp(name, "PasswordChanged") == 0) {
+ strcopy(LANGUAGE.PasswordChanged, val, sizeof(LANGUAGE.PasswordChanged));
+ return;
+ }
+ if (strcmp(name, "Passwordhasbeenchanged") == 0) {
+ strcopy(LANGUAGE.Passwordhasbeenchanged, val, sizeof(LANGUAGE.Passwordhasbeenchanged));
+ return;
+ }
+ if (strcmp(name, "Passwordchange") == 0) {
+ strcopy(LANGUAGE.Passwordchange, val, sizeof(LANGUAGE.Passwordchange));
+ return;
+ }
+ if (strcmp(name, "PowerofftheWii") == 0) {
+ strcopy(LANGUAGE.PowerofftheWii, val, sizeof(LANGUAGE.PowerofftheWii));
+ return;
+ }
+ if (strcmp(name, "Prev") == 0) {
+ strcopy(LANGUAGE.Prev, val, sizeof(LANGUAGE.Prev));
+ return;
+ }
+ if (strcmp(name, "PromptsButtons") == 0) {
+ strcopy(LANGUAGE.PromptsButtons, val, sizeof(LANGUAGE.PromptsButtons));
+ return;
+ }
+ if (strcmp(name, "ReloadSD") == 0) {
+ strcopy(LANGUAGE.ReloadSD, val, sizeof(LANGUAGE.ReloadSD));
+ return;
+ }
+ if (strcmp(name, "RenameGameonWBFS") == 0) {
+ strcopy(LANGUAGE.RenameGameonWBFS, val, sizeof(LANGUAGE.RenameGameonWBFS));
+ return;
+ }
+ if (strcmp(name, "Restart") == 0) {
+ strcopy(LANGUAGE.Restart, val, sizeof(LANGUAGE.Restart));
+ return;
+ }
+ if (strcmp(name, "Return") == 0) {
+ strcopy(LANGUAGE.Return, val, sizeof(LANGUAGE.Return));
+ return;
+ }
+ if (strcmp(name, "ReturntoWiiMenu") == 0) {
+ strcopy(LANGUAGE.ReturntoWiiMenu, val, sizeof(LANGUAGE.ReturntoWiiMenu));
+ return;
+ }
+ if (strcmp(name, "Right") == 0) {
+ strcopy(LANGUAGE.Right, val, sizeof(LANGUAGE.Right));
+ return;
+ }
+ if (strcmp(name, "Rumble") == 0) {
+ strcopy(LANGUAGE.Rumble, val, sizeof(LANGUAGE.Rumble));
+ return;
+ }
+ if (strcmp(name, "QuickBoot") == 0) {
+ strcopy(LANGUAGE.QuickBoot, val, sizeof(LANGUAGE.QuickBoot));
+ return;
+ }
+ if (strcmp(name, "Save") == 0) {
+ strcopy(LANGUAGE.Save, val, sizeof(LANGUAGE.Save));
+ return;
+ }
+ if (strcmp(name, "SaveFailed") == 0) {
+ strcopy(LANGUAGE.SaveFailed, val, sizeof(LANGUAGE.SaveFailed));
+ return;
+ }
+ if (strcmp(name, "Specialthanksto") == 0) {
+ strcopy(LANGUAGE.Specialthanksto, val, sizeof(LANGUAGE.Specialthanksto));
+ return;
+ }
+ if (strcmp(name, "theUSBLoaderandreleasingthesourcecode") == 0) {
+ strcopy(LANGUAGE.theUSBLoaderandreleasingthesourcecode, val, sizeof(LANGUAGE.theUSBLoaderandreleasingthesourcecode));
+ return;
+ }
+ if (strcmp(name, "secondsleft") == 0) {
+ strcopy(LANGUAGE.secondsleft, val, sizeof(LANGUAGE.secondsleft));
+ return;
+ }
+ if (strcmp(name, "SelectthePartition") == 0) {
+ strcopy(LANGUAGE.SelectthePartition, val, sizeof(LANGUAGE.SelectthePartition));
+ return;
+ }
+ if (strcmp(name, "youwanttoformat") == 0) {
+ strcopy(LANGUAGE.youwanttoformat, val, sizeof(LANGUAGE.youwanttoformat));
+ return;
+ }
+ if (strcmp(name, "settings") == 0) {
+ strcopy(LANGUAGE.settings, val, sizeof(LANGUAGE.settings));
+ return;
+ }
+ if (strcmp(name, "ShutdowntoIdle") == 0) {
+ strcopy(LANGUAGE.ShutdowntoIdle, val, sizeof(LANGUAGE.ShutdowntoIdle));
+ return;
+ }
+ if (strcmp(name, "ShutdownSystem") == 0) {
+ strcopy(LANGUAGE.ShutdownSystem, val, sizeof(LANGUAGE.ShutdownSystem));
+ return;
+ }
+ if (strcmp(name, "Success") == 0) {
+ strcopy(LANGUAGE.Success, val, sizeof(LANGUAGE.Success));
+ return;
+ }
+ if (strcmp(name, "Successfullyinstalled") == 0) {
+ strcopy(LANGUAGE.Successfullyinstalled, val, sizeof(LANGUAGE.Successfullyinstalled));
+ return;
+ }
+ if (strcmp(name, "Successfullydeleted") == 0) {
+ strcopy(LANGUAGE.Successfullydeleted, val, sizeof(LANGUAGE.Successfullydeleted));
+ return;
+ }
+ if (strcmp(name, "SuccessfullySaved") == 0) {
+ strcopy(LANGUAGE.SuccessfullySaved, val, sizeof(LANGUAGE.SuccessfullySaved));
+ return;
+ }
+ if (strcmp(name, "SystemDefault") == 0) {
+ strcopy(LANGUAGE.SystemDefault, val, sizeof(LANGUAGE.SystemDefault));
+ return;
+ }
+ if (strcmp(name, "ThemePath") == 0) {
+ strcopy(LANGUAGE.ThemePath, val, sizeof(LANGUAGE.ThemePath));
+ return;
+ }
+ if (strcmp(name, "ThemepathChanged") == 0) {
+ strcopy(LANGUAGE.ThemepathChanged, val, sizeof(LANGUAGE.ThemepathChanged));
+ return;
+ }
+ if (strcmp(name, "Themepathchange") == 0) {
+ strcopy(LANGUAGE.Themepathchange, val, sizeof(LANGUAGE.Themepathchange));
+ return;
+ }
+ if (strcmp(name, "Try") == 0) {
+ strcopy(LANGUAGE.Try, val, sizeof(LANGUAGE.Try));
+ return;
+ }
+ if (strcmp(name, "Tooltips") == 0) {
+ strcopy(LANGUAGE.Tooltips, val, sizeof(LANGUAGE.Tooltips));
+ return;
+ }
+ if (strcmp(name, "Timeleft") == 0) {
+ strcopy(LANGUAGE.Timeleft, val, sizeof(LANGUAGE.Timeleft));
+ return;
+ }
+ if (strcmp(name, "Unlock") == 0) {
+ strcopy(LANGUAGE.Unlock, val, sizeof(LANGUAGE.Unlock));
+ return;
+ }
+ if (strcmp(name, "Uninstall") == 0) {
+ strcopy(LANGUAGE.Uninstall, val, sizeof(LANGUAGE.Uninstall));
+ return;
+ }
+ if (strcmp(name, "USBLoaderisprotected") == 0) {
+ strcopy(LANGUAGE.USBLoaderisprotected, val, sizeof(LANGUAGE.USBLoaderisprotected));
+ return;
+ }
+ if (strcmp(name, "USBDevicenotfound") == 0) {
+ strcopy(LANGUAGE.USBDevicenotfound, val, sizeof(LANGUAGE.USBDevicenotfound));
+ return;
+ }
+ if (strcmp(name, "VideoMode") == 0) {
+ strcopy(LANGUAGE.VideoMode, val, sizeof(LANGUAGE.VideoMode));
+ return;
+ }
+ if (strcmp(name, "VIDTVPatch") == 0) {
+ strcopy(LANGUAGE.VIDTVPatch, val, sizeof(LANGUAGE.VIDTVPatch));
+ return;
+ }
+ if (strcmp(name, "Volume") == 0) {
+ strcopy(LANGUAGE.Volume, val, sizeof(LANGUAGE.Volume));
+ return;
+ }
+ if (strcmp(name, "Waiting") == 0) {
+ strcopy(LANGUAGE.Waiting, val, sizeof(LANGUAGE.Waiting));
+ return;
+ }
+ if (strcmp(name, "WaitingforUSBDevice") == 0) {
+ strcopy(LANGUAGE.WaitingforUSBDevice, val, sizeof(LANGUAGE.WaitingforUSBDevice));
+ return;
+ }
+ if (strcmp(name, "WidescreenFix") == 0) {
+ strcopy(LANGUAGE.WidescreenFix, val, sizeof(LANGUAGE.WidescreenFix));
+ return;
+ }
+ if (strcmp(name, "WiiMenu") == 0) {
+ strcopy(LANGUAGE.WiiMenu, val, sizeof(LANGUAGE.WiiMenu));
+ return;
+ }
+ if (strcmp(name, "WrongPassword") == 0) {
+ strcopy(LANGUAGE.WrongPassword, val, sizeof(LANGUAGE.WrongPassword));
+ return;
+ }
+ if (strcmp(name, "Yes") == 0) {
+ strcopy(LANGUAGE.Yes, val, sizeof(LANGUAGE.Yes));
+ return;
+ }
+ if (strcmp(name, "YoudonthavecIOS") == 0) {
+ strcopy(LANGUAGE.YoudonthavecIOS, val, sizeof(LANGUAGE.YoudonthavecIOS));
+ return;
+ }
+ if (strcmp(name, "Japanese") == 0) {
+ strcopy(LANGUAGE.Japanese, val, sizeof(LANGUAGE.Japanese));
+ return;
+ }
+ if (strcmp(name, "German") == 0) {
+ strcopy(LANGUAGE.German, val, sizeof(LANGUAGE.German));
+ return;
+ }
+ if (strcmp(name, "English") == 0) {
+ strcopy(LANGUAGE.English, val, sizeof(LANGUAGE.English));
+ return;
+ }
+ if (strcmp(name, "French") == 0) {
+ strcopy(LANGUAGE.French, val, sizeof(LANGUAGE.French));
+ return;
+ }
+ if (strcmp(name, "Spanish") == 0) {
+ strcopy(LANGUAGE.Spanish, val, sizeof(LANGUAGE.Spanish));
+ return;
+ }
+ if (strcmp(name, "Italian") == 0) {
+ strcopy(LANGUAGE.Italian, val, sizeof(LANGUAGE.Italian));
+ return;
+ }
+ if (strcmp(name, "Dutch") == 0) {
+ strcopy(LANGUAGE.Dutch, val, sizeof(LANGUAGE.Dutch));
+ return;
+ }
+ if (strcmp(name, "SChinese") == 0) {
+ strcopy(LANGUAGE.SChinese, val, sizeof(LANGUAGE.SChinese));
+ return;
+ }
+ if (strcmp(name, "TChinese") == 0) {
+ strcopy(LANGUAGE.TChinese, val, sizeof(LANGUAGE.TChinese));
+ return;
+ }
+ if (strcmp(name, "Korean") == 0) {
+ strcopy(LANGUAGE.Korean, val, sizeof(LANGUAGE.Korean));
+ return;
+ }
+
+}
+
diff --git a/source/language.h b/source/language.h
new file mode 100644
index 00000000..69916d79
--- /dev/null
+++ b/source/language.h
@@ -0,0 +1,194 @@
+#include
+#include "disc.h"
+
+#ifndef _LANGUAGE_H_
+#define _LANGUAGE_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct LANGUAGE
+{
+
+ char t3Covers[10];
+ char AppLanguage[10];
+ char Areyousure[15];
+ char AutoPatch[15];
+ char Back[10];
+ char BacktoHBCorWiiMenu[25];
+ char BacktoLoader[20];
+ char BacktoWiiMenu[20];
+ char BootStandard[20];
+ char Both[8];
+ char Cantcreatedirectory[25];
+ char Cancel[10];
+ char Cantbeformated[30];
+ char Cantdelete[25];
+ char ClicktoDownloadCovers[30];
+ char Clock[10];
+ char Continueinstallgame[25];
+ char ConsoleDefault[25];
+ char Consoleshouldbeunlockedtomodifyit[50];
+ char ConsoleLocked[25];
+ char CorrectPassword[25];
+ char Couldnotinitializenetwork[30];
+ char CouldnotopenDisc[52];
+ char CouldnotinitializeDIPmodule[30];
+ char CoverDownload[25];
+ char CoverPath[20];
+ char CoverpathChanged[30];
+ char Coverpathchange[30];
+ char Credits[15];
+ char DiscImages[15];
+ char DiscimagePath[25];
+ char DiscpathChanged[25];
+ char Discpathchange[25];
+ char DiscDefault[25];
+ char Display[20];
+ char Doyouwanttoformat[30];
+ char Doyoureallywanttodelete[35];
+ char Doyouwanttoretryfor30secs[50];
+ char Downloadingfile[30];
+ char DownloadBoxartimage[30];
+ char Downloadfinished[30];
+ char Error[10];
+ char BOOTERROR[15];
+ char ErrorreadingDisc[25];
+ char ExitUSBISOLoader[25];
+ char InitializingNetwork[30];
+ char InsertDisk[25];
+ char InsertaWiiDisc[25];
+ char InsertaSDCardtodownloadimages[50];
+ char InsertaSDCardtosave[35];
+ char InstallRenameandDeleteareunlocked[50];
+ char Installerror[30];
+ char Installagame[30];
+ char Installinggame[30];
+ char Failedtoboot[30];
+ char FailedtomountfrontSDcard[50];
+ char FailedtosetUSB[30];
+ char Failedformating[30];
+ char filesnotfoundontheserver[50];
+ char filesleft[30];
+ char FlipX[30];
+ char Force[30];
+ char Youneedtoformatapartition[50];
+ char Format[30];
+ char Formattingpleasewait[50];
+ char formated[30];
+ char free[30];
+ char FreeSpace[30];
+ char FullShutdown[30];
+ char GameID[30];
+ char Games[30];
+ char Gameisalreadyinstalled[50];
+ char GameRegion[30];
+ char GameSize[30];
+ char GoBack[30];
+ char GotoPage[30];///////
+ char HowtoShutdown[30];
+ char Language[20];
+ char Langchange[20];
+ char Left[30];
+ char LikeSysMenu[30];
+ char LoadingincIOS[40];
+ char Lock[30];
+ char LockConsole[40];
+ char MP3Menu[30];
+ char Missingfiles[40];
+ char Networkiniterror[50];
+ char Neither[40];
+ char Next[40];
+ char No[40];
+ char Nofilemissing[50];
+ char NoHDDfound[40];
+ char NoSDcardinserted[50];
+ char Nopartitionsfound[50];
+ char NoUSBDevice[40];
+ char NoWBFSpartitionfound[50];
+ char NormalCovers[40];
+ char Normal[30];
+ char NotaWiiDisc[40];
+ char NoUSBDevicefound[50];
+ char Notenoughfreespace[50];
+ char notset[30];
+ char of[10];
+ char OFF[10];
+ char OfficialSite[30];
+ char ok[8];
+ char ON[10];
+ char Parentalcontrol[25];
+ char Partition[20];
+ char Password[20];
+ char PasswordChanged[30];
+ char Passwordhasbeenchanged[50];
+ char Passwordchange[30];
+ char PowerofftheWii[30];
+ char Prev[10];
+ char PromptsButtons[30];
+ char ReloadSD[20];
+ char RenameGameonWBFS[30];
+ char Restart[15];
+ char Return[15];
+ char ReturntoWiiMenu[30];
+ char Right[15];
+ char Rumble[15];
+ char QuickBoot[20];
+ char Save[15];
+ char SaveFailed[20];
+ char Specialthanksto[25];
+ char For[10];
+ char theUSBLoaderandreleasingthesourcecode[100];
+ char secondsleft[20];
+ char SelectthePartition[25];
+ char youwanttoformat[20];
+ char settings[15];
+ char ShutdowntoIdle[25];
+ char ShutdownSystem[25];
+ char Success[15];
+ char Successfullyinstalled[40];
+ char Successfullydeleted[40];
+ char SuccessfullySaved[40];
+ char SystemDefault[30];
+ char ThemePath[20];
+ char ThemepathChanged[30];
+ char Themepathchange[30];
+ char Try[10];
+ char Tooltips[15];
+ char Timeleft[15];
+ char Unlock[10];
+ char Uninstall[15];
+ char USBLoaderisprotected[40];
+ char USBDevicenotfound[40];
+ char VideoMode[15];
+ char VIDTVPatch[15];
+ char Volume[15];
+ char Waiting[15];
+ char WaitingforUSBDevice[40];
+ char WidescreenFix[40];
+ char WiiMenu[15];
+ char WrongPassword[30];
+ char Yes[10];
+ char YoudonthavecIOS[30];
+ char Japanese[20];
+ char German[20];
+ char English[20];
+ char French[20];
+ char Spanish[20];
+ char Italian[20];
+ char Dutch[20];
+ char SChinese[20];
+ char TChinese[20];
+ char Korean[20];
+};
+
+
+extern struct LANGUAGE LANGUAGE;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/source/main.cpp b/source/main.cpp
index 947ea495..ca17f7d7 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -31,6 +31,7 @@
#include "video2.h"
#include "wpad.h"
#include "cfg.h"
+#include "language.c"
/* Constants */
@@ -109,10 +110,11 @@ main(int argc, char *argv[])
s32 ret2;
SDCard_Init();
-
+ lang_default();
CFG_Load(argc, argv);
- DefaultSettings();
+ DefaultSettings();
+
SDCard_deInit();
diff --git a/source/menu.cpp b/source/menu.cpp
index 052aed60..f4940051 100644
--- a/source/menu.cpp
+++ b/source/menu.cpp
@@ -34,6 +34,7 @@
#include "patchcode.h"
#include "wpad.h"
#include "cfg.h"
+#include "language.h"
#include "libwiigui/gui_customoptionbrowser.h"
#include "libwiigui/gui_gamebrowser.h"
#include "mp3s.h"
@@ -201,10 +202,10 @@ static void WindowCredits(void * ptr)
starImg.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
starImg.SetPosition(500,335);
- int numEntries = 18;
+ int numEntries = 25;
GuiText * txt[numEntries];
- txt[i] = new GuiText("Credits", 26, (GXColor){255, 255, 255, 255});
+ txt[i] = new GuiText(LANGUAGE.Credits, 26, (GXColor){255, 255, 255, 255});
txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,12); i++;
txt[i] = new GuiText("V 1 .0", 18, (GXColor){255, 255, 255, 255});
@@ -213,8 +214,11 @@ static void WindowCredits(void * ptr)
txt[i] = new GuiText("USB Loader GX", 24, (GXColor){255, 255, 255, 255});
txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y); i++; y+=26;
- txt[i] = new GuiText("Official Site: http://code.google.com/p/usbloader-gui/", 20, (GXColor){255, 255, 255, 255});
- txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y); i++; y+=28;
+ txt[i] = new GuiText(": http://code.google.com/p/usbloader-gui/", 20, (GXColor){255, 255, 255, 255});
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(50,y); i++; //y+=28;
+
+ txt[i] = new GuiText(LANGUAGE.OfficialSite, 20, (GXColor){255, 255, 255, 255});
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(-180,y); i++; y+=28;
txt[i]->SetPresets(22, (GXColor){255, 255, 255, 255}, 0,
FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP, ALIGN_LEFT, ALIGN_TOP);
@@ -262,27 +266,44 @@ static void WindowCredits(void * ptr)
i++;
y+=28;
- txt[i] = new GuiText("Special thanks to:");
- txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y);
+ txt[i] = new GuiText(LANGUAGE.Specialthanksto);
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(-50,y);
+ i++;
+
+ txt[i] = new GuiText(":");
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(30,y+3);
i++;
y+=22;
- txt[i] = new GuiText("Fishears/Nuke for Ocarina & WiiPower for Vidpatch");
+ txt[i] = new GuiText("Fishears/Nuke Ocarina & WiiPower Vidpatch");
txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y);
i++;
+ txt[i] = new GuiText(LANGUAGE.For);
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(-80,y);
+ i++;
+ txt[i] = new GuiText(LANGUAGE.For);
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(130,y);
+ i++;
+
+ y+=22;
+
+ txt[i] = new GuiText("Tantric libwiigui");
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y);
+ i++;
+ txt[i] = new GuiText(LANGUAGE.For);
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(-3,y);
+ i++;
y+=22;
- txt[i] = new GuiText("Tantric for the libwiigui");
+ txt[i] = new GuiText("Waninkoko & Kwiirk USB Loader");
txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y);
i++;
+ txt[i] = new GuiText(LANGUAGE.For);
+ txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(30,y);
+ i++;
y+=22;
- txt[i] = new GuiText("Waninkoko & Kwiirk for the USB Loader");
- txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y);
- i++;
- y+=22;
-
- txt[i] = new GuiText("and releasing the source code ;)");
+ txt[i] = new GuiText(LANGUAGE.theUSBLoaderandreleasingthesourcecode);
txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,y);
i++;
y+=22;
@@ -649,7 +670,7 @@ int GameWindowPrompt()
GuiImageData dialogBox(imgPath, CFG.widescreen ? wdialogue_box_startgame_png : dialogue_box_startgame_png);
GuiImage dialogBoxImg(&dialogBox);
- GuiTooltip nameBtnTT("Rename Game on WBFS");
+ GuiTooltip nameBtnTT(LANGUAGE.RenameGameonWBFS);
if (Settings.wsprompt == yes)
nameBtnTT.SetWidescreen(CFG.widescreen);
GuiText msgTxt("", 22, (GXColor){50, 50, 50, 255});
@@ -712,7 +733,7 @@ int GameWindowPrompt()
btn2.SetTrigger(&trigA);
btn2.SetEffectGrow();
- GuiText btn3Txt("Settings", 22, (GXColor){0, 0, 0, 255});
+ GuiText btn3Txt(LANGUAGE.settings, 22, (GXColor){0, 0, 0, 255});
GuiImage btn3Img(&btnOutline);
if (Settings.wsprompt == yes){
btn3Img.SetWidescreen(CFG.widescreen);}///////////
@@ -1087,7 +1108,7 @@ DiscWait(const char *title, const char *msg, const char *btn1Label, const char *
if(IsDeviceWait) {
while(i >= 0)
{
- sprintf(timer, "%u secs left", i);
+ sprintf(timer, "%u%s", i,LANGUAGE.secondsleft);
timerTxt.SetText(timer);
VIDEO_WaitVSync();
if(Settings.cios == ios222) {
@@ -1199,7 +1220,7 @@ int NetworkInitPromp(int choice2)
if (Settings.wsprompt == yes){
dialogBoxImg.SetWidescreen(CFG.widescreen);}///////////
- GuiText titleTxt("Initializing Network", 26, (GXColor){0, 0, 0, 255});
+ GuiText titleTxt(LANGUAGE.InitializingNetwork, 26, (GXColor){0, 0, 0, 255});
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
titleTxt.SetPosition(0,60);
@@ -1208,7 +1229,7 @@ int NetworkInitPromp(int choice2)
msgTxt.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
msgTxt.SetPosition(0,-40);
- GuiText btn1Txt("Cancel", 22, (GXColor){0, 0, 0, 255});
+ GuiText btn1Txt(LANGUAGE.Cancel, 22, (GXColor){0, 0, 0, 255});
GuiImage btn1Img(&btnOutline);
if (Settings.wsprompt == yes){
btn1Img.SetWidescreen(CFG.widescreen);}///////////
@@ -1253,7 +1274,7 @@ int NetworkInitPromp(int choice2)
}
if (ret <= 0) {
- msgTxt.SetText("Could not initialize network!");
+ msgTxt.SetText(LANGUAGE.Couldnotinitializenetwork);
}
if (IP && ret > 0) {
@@ -1373,7 +1394,7 @@ ShowProgress (s32 done, s32 total)
if(last_d != d)
{
last_d = d;
- sprintf(timet,"Time left: %d:%02d:%02d",h,m,s);
+ sprintf(timet,"%s %d:%02d:%02d",LANGUAGE.Timeleft,h,m,s);
timeTxt.SetText(timet);
}
@@ -1551,7 +1572,7 @@ ProgressDownloadWindow(int choice2)
progressbarImg.SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE);
progressbarImg.SetPosition(25, 40);
- GuiText titleTxt("Downloading file:", 26, (GXColor){0, 0, 0, 255});
+ GuiText titleTxt(LANGUAGE.Downloadingfile, 26, (GXColor){0, 0, 0, 255});
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
titleTxt.SetPosition(0,60);
char msg[25] = " ";
@@ -1566,7 +1587,7 @@ ProgressDownloadWindow(int choice2)
prTxt.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
prTxt.SetPosition(0, 40);
- GuiText btn1Txt("Cancel", 22, (GXColor){0, 0, 0, 255});
+ GuiText btn1Txt(LANGUAGE.Cancel, 22, (GXColor){0, 0, 0, 255});
GuiImage btn1Img(&btnOutline);
if (Settings.wsprompt == yes){
btn1Img.SetWidescreen(CFG.widescreen);}
@@ -1612,7 +1633,7 @@ ProgressDownloadWindow(int choice2)
snprintf(dircovers,strlen(CFG.covers_path),"%s",CFG.covers_path);
if (mkdir(dircovers, 0777) == -1) {
if(subfoldercheck(dircovers) != 1) {
- WindowPrompt("Error:","Can't create directory","OK",0,0,0);
+ WindowPrompt(LANGUAGE.Error,LANGUAGE.Cantcreatedirectory,LANGUAGE.ok,0,0,0);
cntMissFiles = 0;
}
}
@@ -1622,7 +1643,7 @@ ProgressDownloadWindow(int choice2)
snprintf(dirdiscs,strlen(CFG.disc_path),"%s",CFG.disc_path);
if (mkdir(dirdiscs, 0777) == -1) {
if(subfoldercheck(dirdiscs) != 1) {
- WindowPrompt("Error:","Can't create directory","OK",0,0,0);
+ WindowPrompt(LANGUAGE.Error,LANGUAGE.Cantcreatedirectory,LANGUAGE.ok,0,0,0);
cntMissFiles = 0;
}
}
@@ -1643,7 +1664,7 @@ ProgressDownloadWindow(int choice2)
else{
progressbarImg.SetTile(100*i/cntMissFiles);}
- sprintf(msg, "%i file(s) left", cntMissFiles - i);
+ sprintf(msg, "%i %s", cntMissFiles - i, LANGUAGE.filesleft);
msgTxt.SetText(msg);
sprintf(msg2, "%s", missingFiles[i]);
msg2Txt.SetText(msg2);
@@ -1890,7 +1911,7 @@ static int OnScreenKeyboard(char * var, u32 maxlen, int min)
GuiTrigger trigB;
trigB.SetSimpleTrigger(-1, WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B, PAD_BUTTON_B);
- GuiText okBtnTxt("OK", 22, (GXColor){0, 0, 0, 255});
+ GuiText okBtnTxt(LANGUAGE.ok, 22, (GXColor){0, 0, 0, 255});
GuiImage okBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
okBtnImg.SetWidescreen(CFG.widescreen);}///////////
@@ -1899,14 +1920,14 @@ static int OnScreenKeyboard(char * var, u32 maxlen, int min)
okBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
okBtn.SetPosition(5, 15);//(25, -25);
- okBtn.SetLabel(&okBtnTxt);
+ okBtn.SetLabel(&okBtnTxt);//
okBtn.SetImage(&okBtnImg);
okBtn.SetSoundOver(&btnSoundOver);
okBtn.SetSoundClick(&btnClick);
okBtn.SetTrigger(&trigA);
okBtn.SetEffectGrow();
- GuiText cancelBtnTxt("Cancel", 22, (GXColor){0, 0, 0, 255});
+ GuiText cancelBtnTxt(LANGUAGE.Cancel, 22, (GXColor){0, 0, 0, 255});
GuiImage cancelBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
cancelBtnImg.SetWidescreen(CFG.widescreen);}///////////
@@ -2074,22 +2095,22 @@ static int MenuInstall()
}
#endif
- ret = DiscWait("Insert Disk","Waiting...","Cancel",0,0);
+ ret = DiscWait(LANGUAGE.InsertDisk,LANGUAGE.Waiting,LANGUAGE.Cancel,0,0);
if (ret < 0) {
- WindowPrompt ("Error reading Disc",0,"Back",0,0,0);
+ WindowPrompt (LANGUAGE.ErrorreadingDisc,0,LANGUAGE.Back,0,0,0);
menu = MENU_DISCLIST;
break;
}
ret = Disc_Open();
if (ret < 0) {
- WindowPrompt ("Could not open Disc",0,"Back",0,0,0);
+ WindowPrompt (LANGUAGE.CouldnotopenDisc,0,LANGUAGE.Back,0,0,0);
menu = MENU_DISCLIST;
break;
}
ret = Disc_IsWii();
if (ret < 0) {
- choice = WindowPrompt ("Not a Wii Disc","Insert a Wii Disc!","OK","Back",0,0);
+ choice = WindowPrompt (LANGUAGE.NotaWiiDisc,LANGUAGE.InsertaWiiDisc,LANGUAGE.ok,LANGUAGE.Back,0,0);
if (choice == 1) {
menu = MENU_INSTALL;
@@ -2112,13 +2133,13 @@ static int MenuInstall()
ret = WBFS_CheckGame(headerdisc.id);
if (ret) {
- WindowPrompt ("Game is already installed:",name,"Back",0,0,0);
+ WindowPrompt (LANGUAGE.Gameisalreadyinstalled,name,LANGUAGE.Back,0,0,0);
menu = MENU_DISCLIST;
break;
}
hdd = GetHddInfo();
if (!hdd) {
- WindowPrompt ("No HDD found!","Error!!","Back",0,0,0);
+ WindowPrompt (LANGUAGE.NoHDDfound,LANGUAGE.Error,LANGUAGE.Back,0,0,0);
menu = MENU_DISCLIST;
break;
}
@@ -2132,27 +2153,27 @@ static int MenuInstall()
sprintf(gametxt, "%s : %.2fGB", name, gamesize);
- choice = WindowPrompt("Continue install game?",gametxt,"OK","Cancel",0,0);
+ choice = WindowPrompt(LANGUAGE.Continueinstallgame,gametxt,LANGUAGE.ok,LANGUAGE.Cancel,0,0);
if(choice == 1) {
- sprintf(gametxt, "Installing game:");
+ sprintf(gametxt, LANGUAGE.Installinggame);
if (gamesize > freespace) {
char errortxt[50];
- sprintf(errortxt, "Game Size: %.2fGB, Free Space: %.2fGB", gamesize, freespace);
- choice = WindowPrompt("Not enough free space!",errortxt,"Go on", "Return",0,0);
+ sprintf(errortxt, "%s: %.2fGB, %s: %.2fGB",LANGUAGE.GameSize, gamesize, LANGUAGE.FreeSpace, freespace);
+ choice = WindowPrompt(LANGUAGE.Notenoughfreespace,errortxt,LANGUAGE.ok, LANGUAGE.Return,0,0);
if (choice == 1) {
ret = ProgressWindow(gametxt, name);
if (ret != 0) {
- WindowPrompt ("Install error!",0,"Back",0,0,0);
+ WindowPrompt (LANGUAGE.Installerror,0,LANGUAGE.Back,0,0,0);
menu = MENU_DISCLIST;
break;
}
else {
__Menu_GetEntries(); //get the entries again
wiilight(1);
- WindowPrompt ("Successfully installed:",name,"OK",0,0,0);
+ WindowPrompt (LANGUAGE.Successfullyinstalled,name,LANGUAGE.ok,0,0,0);
menu = MENU_DISCLIST;
wiilight(0);
break;
@@ -2166,13 +2187,13 @@ static int MenuInstall()
else {
ret = ProgressWindow(gametxt, name);
if (ret != 0) {
- WindowPrompt ("Install error!",0,"Back",0,0,0);
+ WindowPrompt (LANGUAGE.Installerror,0,LANGUAGE.Back,0,0,0);
menu = MENU_DISCLIST;
break;
} else {
__Menu_GetEntries(); //get the entries again
wiilight(1);
- WindowPrompt ("Successfully installed:",name,"OK",0,0,0);
+ WindowPrompt (LANGUAGE.Successfullyinstalled,name,LANGUAGE.ok,0,0,0);
menu = MENU_DISCLIST;
wiilight(0);
break;
@@ -2275,18 +2296,18 @@ static int MenuDiscList()
trigHome.SetButtonOnlyTrigger(-1, WPAD_BUTTON_HOME | WPAD_CLASSIC_BUTTON_HOME, 0);
char spaceinfo[30];
- sprintf(spaceinfo,"%.2fGB of %.2fGB free",freespace,(freespace+used));
+ sprintf(spaceinfo,"%.2fGB %s %.2fGB %s",freespace,LANGUAGE.of,(freespace+used),LANGUAGE.free);
GuiText usedSpaceTxt(spaceinfo, 18, (GXColor){THEME.info_r, THEME.info_g, THEME.info_b, 255});
usedSpaceTxt.SetAlignment(THEME.hddInfoAlign, ALIGN_TOP);
usedSpaceTxt.SetPosition(THEME.hddInfo_x, THEME.hddInfo_y);
char GamesCnt[15];
- sprintf(GamesCnt,"Games: %i",gameCnt);
+ sprintf(GamesCnt,"%s: %i",LANGUAGE.Games, gameCnt);
GuiText gamecntTxt(GamesCnt, 18, (GXColor){THEME.info_r, THEME.info_g, THEME.info_b, 255});
gamecntTxt.SetAlignment(THEME.gameCntAlign, ALIGN_TOP);
gamecntTxt.SetPosition(THEME.gameCnt_x,THEME.gameCnt_y);
- GuiTooltip installBtnTT("Install a game");
+ GuiTooltip installBtnTT(LANGUAGE.Installagame);
if (Settings.wsprompt == yes)
installBtnTT.SetWidescreen(CFG.widescreen);///////////
GuiImage installBtnImg(&btnInstall);
@@ -2304,7 +2325,7 @@ static int MenuDiscList()
installBtn.SetEffectGrow();
installBtn.SetToolTip(&installBtnTT,24,-30, ALIGN_LEFT);
- GuiTooltip settingsBtnTT("Settings");
+ GuiTooltip settingsBtnTT(LANGUAGE.settings);
if (Settings.wsprompt == yes)
settingsBtnTT.SetWidescreen(CFG.widescreen);///////////
@@ -2323,7 +2344,7 @@ static int MenuDiscList()
settingsBtn.SetEffectGrow();
settingsBtn.SetToolTip(&settingsBtnTT,65,-30);
- GuiTooltip homeBtnTT("Back to HBC or Wii Menu");
+ GuiTooltip homeBtnTT(LANGUAGE.BacktoHBCorWiiMenu);
if (Settings.wsprompt == yes)
homeBtnTT.SetWidescreen(CFG.widescreen);///////////
@@ -2343,7 +2364,7 @@ static int MenuDiscList()
homeBtn.SetEffectGrow();
homeBtn.SetToolTip(&homeBtnTT,15,-30);
- GuiTooltip poweroffBtnTT("Power off the Wii");
+ GuiTooltip poweroffBtnTT(LANGUAGE.PowerofftheWii);
if (Settings.wsprompt == yes)
poweroffBtnTT.SetWidescreen(CFG.widescreen);///////////
@@ -2364,7 +2385,7 @@ static int MenuDiscList()
poweroffBtn.SetToolTip(&poweroffBtnTT,-10,-30);
- GuiTooltip sdcardBtnTT("Reload SD");
+ GuiTooltip sdcardBtnTT(LANGUAGE.ReloadSD);
if (Settings.wsprompt == yes)
sdcardBtnTT.SetWidescreen(CFG.widescreen);///////////
@@ -2391,7 +2412,7 @@ static int MenuDiscList()
wiiBtn.SetTrigger(&trigA);
//Downloading Covers
- GuiTooltip DownloadBtnTT("Click to Download Covers");
+ GuiTooltip DownloadBtnTT(LANGUAGE.ClicktoDownloadCovers);
if (Settings.wsprompt == yes)
DownloadBtnTT.SetWidescreen(CFG.widescreen);///////////
@@ -2571,7 +2592,7 @@ static int MenuDiscList()
if(poweroffBtn.GetState() == STATE_CLICKED)
{
- choice = WindowPrompt("How to Shutdown?",0,"Full Shutdown", "Shutdown to Idle", "Cancel",0);
+ choice = WindowPrompt(LANGUAGE.HowtoShutdown,0,LANGUAGE.FullShutdown, LANGUAGE.ShutdowntoIdle, LANGUAGE.Cancel,0);
if(choice == 2)
{
WPAD_Flush(0);
@@ -2599,7 +2620,7 @@ static int MenuDiscList()
else if(homeBtn.GetState() == STATE_CLICKED)
{
- choice = WindowPrompt("Exit USB ISO Loader ?",0, "Back to Loader","Wii Menu","Back",0);
+ choice = WindowPrompt(LANGUAGE.ExitUSBISOLoader,0, LANGUAGE.BacktoLoader,LANGUAGE.WiiMenu,LANGUAGE.Back,0);
if(choice == 2)
{
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0); // Back to System Menu
@@ -2623,7 +2644,7 @@ static int MenuDiscList()
}
else if(installBtn.GetState() == STATE_CLICKED)
{
- choice = WindowPrompt("Install a game?",0,"Yes","No",0,0);
+ choice = WindowPrompt(LANGUAGE.Installagame,0,LANGUAGE.Yes,LANGUAGE.No,0,0);
if (choice == 1)
{
menu = MENU_INSTALL;
@@ -2648,7 +2669,7 @@ static int MenuDiscList()
else if(DownloadBtn.GetState() == STATE_CLICKED)
{
if(isSdInserted() == 1) {
- choice = WindowPrompt("Cover Download", 0, "Normal Covers", "3D Covers", "Disc Images", "Back"); // ask for download choice
+ choice = WindowPrompt(LANGUAGE.CoverDownload, 0, LANGUAGE.NormalCovers, LANGUAGE.t3Covers, LANGUAGE.DiscImages, LANGUAGE.Back); // ask for download choice
if (choice != 0)
{
@@ -2660,7 +2681,7 @@ static int MenuDiscList()
if(netset < 0)
{
- WindowPrompt("Network init error", 0, "OK",0,0,0);
+ WindowPrompt(LANGUAGE.Networkiniterror, 0, LANGUAGE.ok,0,0,0);
netcheck = false;
} else {
@@ -2676,28 +2697,28 @@ static int MenuDiscList()
char tempCnt[40];
i = 0;
- sprintf(tempCnt,"Missing %i files",cntMissFiles);
- choice = WindowPrompt("Download Boxart image?",tempCnt,"Yes","No",0,0);
+ sprintf(tempCnt,"%i %s",cntMissFiles,LANGUAGE.Missingfiles);
+ choice = WindowPrompt(LANGUAGE.DownloadBoxartimage,tempCnt,LANGUAGE.Yes,LANGUAGE.No,0,0);
//WindowPrompt("Downloading","Please Wait Downloading Covers",0,0);
if (choice == 1)
{
ret = ProgressDownloadWindow(choice2);
if (ret == 0) {
- WindowPrompt("Download finished",0,"OK",0,0,0);
+ WindowPrompt(LANGUAGE.Downloadfinished,0,LANGUAGE.ok,0,0,0);
} else {
- sprintf(tempCnt,"%i files not found on the server!",ret);
- WindowPrompt("Download finished",tempCnt,"OK",0,0,0);
+ sprintf(tempCnt,"%i %s",ret,LANGUAGE.filesnotfoundontheserver);
+ WindowPrompt(LANGUAGE.Downloadfinished,tempCnt,LANGUAGE.ok,0,0,0);
}
}
}
else
{
- WindowPrompt("No file missing!",0,"OK",0,0,0);
+ WindowPrompt(LANGUAGE.Nofilemissing,0,LANGUAGE.ok,0,0,0);
}
}
}
} else {
- WindowPrompt("No SD-Card inserted!", "Insert a SD-Card to download images.", "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtodownloadimages, LANGUAGE.ok, 0,0,0);
}
DownloadBtn.ResetState();
gameBrowser.SetFocus(1);
@@ -2886,7 +2907,7 @@ static int MenuDiscList()
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
- WindowPrompt("You don't have cIOS222!","Loading in cIOS249!","OK", 0,0,0);
+ WindowPrompt(LANGUAGE.YoudonthavecIOS,LANGUAGE.LoadingincIOS,LANGUAGE.ok, 0,0,0);
Sys_IosReload(249);
ios2 = 0;
@@ -2902,21 +2923,21 @@ static int MenuDiscList()
/* Set USB mode */
ret = Disc_SetUSB(header->id, ios2);
if (ret < 0) {
- sprintf(text, "Error: %i", ret);
+ sprintf(text, "%s %i", LANGUAGE.Error,ret);
WindowPrompt(
- "Failed to set USB:",
+ LANGUAGE.FailedtosetUSB,
text,
- "OK",0,0,0);
+ LANGUAGE.ok,0,0,0);
}
else {
/* Open disc */
ret = Disc_Open();
if (ret < 0) {
- sprintf(text, "Error: %i", ret);
+ sprintf(text, "%s %i",LANGUAGE.Error, ret);
WindowPrompt(
- "Failed to boot:",
+ LANGUAGE.Failedtoboot,
text,
- "OK",0,0,0);
+ LANGUAGE.ok,0,0,0);
}
else {
menu = MENU_EXIT;
@@ -2981,7 +3002,7 @@ static int MenuDiscList()
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
- WindowPrompt("You don't have cIOS222!","Loading in cIOS249!","OK", 0,0,0);
+ WindowPrompt(LANGUAGE.YoudonthavecIOS,LANGUAGE.LoadingincIOS,LANGUAGE.ok, 0,0,0);
Sys_IosReload(249);
ios2 = 0;
@@ -2999,21 +3020,21 @@ static int MenuDiscList()
/* Set USB mode */
ret = Disc_SetUSB(header->id, ios2);
if (ret < 0) {
- sprintf(text, "Error: %i", ret);
+ sprintf(text, "%s %i", LANGUAGE.Error, ret);
WindowPrompt(
- "Failed to set USB:",
+ LANGUAGE.FailedtosetUSB,
text,
- "OK",0,0,0);
+ LANGUAGE.ok,0,0,0);
}
else {
/* Open disc */
ret = Disc_Open();
if (ret < 0) {
- sprintf(text, "Error: %i", ret);
+ sprintf(text, "%s %i",LANGUAGE.Error, ret);
WindowPrompt(
- "Failed to boot:",
+ LANGUAGE.Failedtoboot,
text,
- "OK",0,0,0);
+ LANGUAGE.ok,0,0,0);
}
else {
menu = MENU_EXIT;
@@ -3096,11 +3117,11 @@ static int MenuFormat()
f32 size = entry->size * (sector_size / GB_SIZE);
if (size) {
- sprintf(options.name[cnt], "Partition %d:", cnt+1);
+ sprintf(options.name[cnt], "%s %d:",LANGUAGE.Partition, cnt+1);
sprintf (options.value[cnt],"%.2fGB", size);
} else {
- sprintf(options.name[cnt], "Partition %d:", cnt+1);
- sprintf (options.value[cnt],"(Can't be formated)");
+ sprintf(options.name[cnt], "%s %d:",LANGUAGE.Partition, cnt+1);
+ sprintf (options.value[cnt],LANGUAGE.Cantbeformated);
}
}
@@ -3255,22 +3276,22 @@ static int MenuFormat()
if (cnt == selected) {
partitionEntry *entry = &partitions[selected];
if (entry->size) {
- sprintf(text, "Partition %d : %.2fGB", selected+1, entry->size * (sector_size / GB_SIZE));
+ sprintf(text, "%s %d : %.2fGB",LANGUAGE.Partition, selected+1, entry->size * (sector_size / GB_SIZE));
choice = WindowPrompt(
- "Do you want to format:",
+ LANGUAGE.Doyouwanttoformat,
text,
- "Yes",
- "No",0,0);
+ LANGUAGE.Yes,
+ LANGUAGE.No,0,0);
if(choice == 1) {
- ret = FormatingPartition("Formatting, please wait...", entry);
+ ret = FormatingPartition(LANGUAGE.Formattingpleasewait, entry);
if (ret < 0) {
- WindowPrompt("Error:","Failed formating","Return",0,0,0);
+ WindowPrompt(LANGUAGE.Error,LANGUAGE.Failedformating,LANGUAGE.Return,0,0,0);
menu = MENU_SETTINGS;
} else {
WBFS_Open();
- sprintf(text, "%s formated!", text);
- WindowPrompt("Success:",text,"OK",0,0,0);
+ sprintf(text, "%s %s", text,LANGUAGE.formated);
+ WindowPrompt(LANGUAGE.Success,text,LANGUAGE.ok,0,0,0);
menu = MENU_DISCLIST;
}
}
@@ -3284,7 +3305,7 @@ static int MenuFormat()
if(poweroffBtn.GetState() == STATE_CLICKED)
{
- choice = WindowPrompt ("Shutdown System","Are you sure?","Yes","No",0,0);
+ choice = WindowPrompt (LANGUAGE.ShutdownSystem,LANGUAGE.Areyousure,LANGUAGE.Yes,LANGUAGE.No,0,0);
if(choice == 1)
{
WPAD_Flush(0);
@@ -3295,7 +3316,7 @@ static int MenuFormat()
} else if(exitBtn.GetState() == STATE_CLICKED)
{
- choice = WindowPrompt ("Return to Wii Menu","Are you sure?","Yes","No",0,0);
+ choice = WindowPrompt (LANGUAGE.ReturntoWiiMenu,LANGUAGE.Areyousure,LANGUAGE.Yes,LANGUAGE.No,0,0);
if(choice == 1)
{
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
@@ -3362,7 +3383,7 @@ static int MenuSettings()
GuiTrigger trigPlus;
trigPlus.SetButtonOnlyTrigger(-1, WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS, 0);
- GuiText titleTxt("Settings", 28, (GXColor){0, 0, 0, 255});
+ GuiText titleTxt(LANGUAGE.settings, 28, (GXColor){0, 0, 0, 255});
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
titleTxt.SetPosition(0,40);
@@ -3372,7 +3393,7 @@ static int MenuSettings()
settingsbackgroundbtn.SetPosition(0, 0);
settingsbackgroundbtn.SetImage(&settingsbackground);
- GuiText backBtnTxt("Go Back", 22, (GXColor){0, 0, 0, 255});
+ GuiText backBtnTxt(LANGUAGE.Back , 22, (GXColor){0, 0, 0, 255});
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage backBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
@@ -3436,18 +3457,18 @@ static int MenuSettings()
page3Btn.SetTrigger(1, &trigR);
page3Btn.SetTrigger(2, &trigPlus);
- GuiTooltip page2BtnTT("Go to Page 2");
- if (Settings.wsprompt == yes)
- page2BtnTT.SetWidescreen(CFG.widescreen);///////////
+// GuiTooltip page2BtnTT("%s 2",LANGUAGE.GotoPage);
+// if (Settings.wsprompt == yes)
+// page2BtnTT.SetWidescreen(CFG.widescreen);///////////
- page2Btn.SetToolTip(&page2BtnTT,105,0);
+// page2Btn.SetToolTip(&page2BtnTT,105,0);
////////////////////////////////
- const char * text = "Unlock";
+ const char * text = LANGUAGE.Unlock;
if (CFG.godmode == 1)
- text = "Lock";
+ text = LANGUAGE.Lock;
GuiText lockBtnTxt(text, 22, (GXColor){0, 0, 0, 255});
lockBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage lockBtnImg(&btnOutline);
@@ -3490,15 +3511,15 @@ static int MenuSettings()
menu = MENU_NONE;
if ( pageToDisplay == 1)
{
- sprintf(options2.name[0], "Video Mode");
- sprintf(options2.name[1], "VIDTV Patch");
- sprintf(options2.name[2], "Language");
+ sprintf(options2.name[0], LANGUAGE.VideoMode);
+ sprintf(options2.name[1], LANGUAGE.VIDTVPatch);
+ sprintf(options2.name[2], LANGUAGE.Language);
sprintf(options2.name[3], "Ocarina");
- sprintf(options2.name[4], "Display");
- sprintf(options2.name[5], "Clock"); //CLOCK
- sprintf(options2.name[6], "Rumble"); //RUMBLE
- sprintf(options2.name[7], "Volume");
- sprintf(options2.name[8], "Tooltips");
+ sprintf(options2.name[4], LANGUAGE.Display);
+ sprintf(options2.name[5], LANGUAGE.Clock); //CLOCK
+ sprintf(options2.name[6], LANGUAGE.Rumble); //RUMBLE
+ sprintf(options2.name[7], LANGUAGE.Volume);
+ sprintf(options2.name[8], LANGUAGE.Tooltips);
HaltGui();
w.Append(&settingsbackgroundbtn);
@@ -3546,15 +3567,15 @@ static int MenuSettings()
mainWindow->Append(&page1Btn);
mainWindow->Append(&page3Btn);
- sprintf(options2.name[0], "Password");
- sprintf(options2.name[1], "Boot/Standard");
- sprintf(options2.name[2], "Flip X");
- sprintf(options2.name[3], "Quick Boot");
- sprintf(options2.name[4], "Prompts & Buttons");
- sprintf(options2.name[5], "Parentalcontrol");
- sprintf(options2.name[6], "Cover Path");
- sprintf(options2.name[7], "Discimage Path");
- sprintf(options2.name[8], "Theme Path");
+ sprintf(options2.name[0], LANGUAGE.Password);
+ sprintf(options2.name[1], LANGUAGE.BootStandard);
+ sprintf(options2.name[2], LANGUAGE.FlipX);
+ sprintf(options2.name[3], LANGUAGE.QuickBoot);
+ sprintf(options2.name[4], LANGUAGE.PromptsButtons);
+ sprintf(options2.name[5], LANGUAGE.Parentalcontrol);
+ sprintf(options2.name[6], LANGUAGE.CoverPath);
+ sprintf(options2.name[7], LANGUAGE.DiscimagePath);
+ sprintf(options2.name[8], LANGUAGE.ThemePath);
}
else if ( pageToDisplay == 3 )
@@ -3575,8 +3596,8 @@ static int MenuSettings()
mainWindow->Append(&page1Btn);
mainWindow->Append(&page3Btn);
- sprintf(options2.name[0], "MP3 Menu");
- sprintf(options2.name[1], " ");
+ sprintf(options2.name[0], LANGUAGE.MP3Menu);
+ sprintf(options2.name[1], LANGUAGE.AppLanguage);
sprintf(options2.name[2], " ");
sprintf(options2.name[3], "Under");
sprintf(options2.name[4], "Construction");
@@ -3613,41 +3634,41 @@ static int MenuSettings()
if (Settings.tooltips > 1 )
Settings.tooltips = 0;
- if (Settings.video == discdefault) sprintf (options2.value[0],"Disc Default");
- else if (Settings.video == systemdefault) sprintf (options2.value[0],"System Default");
- else if (Settings.video == patch) sprintf (options2.value[0],"Auto Patch");
- else if (Settings.video == pal50) sprintf (options2.value[0],"Force PAL50");
- else if (Settings.video == pal60) sprintf (options2.value[0],"Force PAL60");
- else if (Settings.video == ntsc) sprintf (options2.value[0],"Force NTSC");
+ if (Settings.video == discdefault) sprintf (options2.value[0],LANGUAGE.DiscDefault);
+ else if (Settings.video == systemdefault) sprintf (options2.value[0],LANGUAGE.SystemDefault);
+ else if (Settings.video == patch) sprintf (options2.value[0],LANGUAGE.AutoPatch);
+ else if (Settings.video == pal50) sprintf (options2.value[0],"%s PAL50",LANGUAGE.Force);
+ else if (Settings.video == pal60) sprintf (options2.value[0],"%s PAL60",LANGUAGE.Force);
+ else if (Settings.video == ntsc) sprintf (options2.value[0],"%s NTSC",LANGUAGE.Force);
- if (Settings.vpatch == on) sprintf (options2.value[1],"On");
- else if (Settings.vpatch == off) sprintf (options2.value[1],"Off");
+ if (Settings.vpatch == on) sprintf (options2.value[1],LANGUAGE.ON);
+ else if (Settings.vpatch == off) sprintf (options2.value[1],LANGUAGE.OFF);
- if (Settings.language == ConsoleLangDefault) sprintf (options2.value[2],"Console Default");
- else if (Settings.language == jap) sprintf (options2.value[2],"Japanese");
- else if (Settings.language == ger) sprintf (options2.value[2],"German");
- else if (Settings.language == eng) sprintf (options2.value[2],"English");
- else if (Settings.language == fren) sprintf (options2.value[2],"French");
- else if (Settings.language == esp) sprintf (options2.value[2],"Spanish");
- else if (Settings.language == it) sprintf (options2.value[2],"Italian");
- else if (Settings.language == dut) sprintf (options2.value[2],"Dutch");
- else if (Settings.language == schin) sprintf (options2.value[2],"S. Chinese");
- else if (Settings.language == tchin) sprintf (options2.value[2],"T. Chinese");
- else if (Settings.language == kor) sprintf (options2.value[2],"Korean");
+ if (Settings.language == ConsoleLangDefault) sprintf (options2.value[2],LANGUAGE.ConsoleDefault);
+ else if (Settings.language == jap) sprintf (options2.value[2],LANGUAGE.Japanese);
+ else if (Settings.language == ger) sprintf (options2.value[2],LANGUAGE.German);
+ else if (Settings.language == eng) sprintf (options2.value[2],LANGUAGE.English);
+ else if (Settings.language == fren) sprintf (options2.value[2],LANGUAGE.French);
+ else if (Settings.language == esp) sprintf (options2.value[2],LANGUAGE.Spanish);
+ else if (Settings.language == it) sprintf (options2.value[2],LANGUAGE.Italian);
+ else if (Settings.language == dut) sprintf (options2.value[2],LANGUAGE.Dutch);
+ else if (Settings.language == schin) sprintf (options2.value[2],LANGUAGE.SChinese);
+ else if (Settings.language == tchin) sprintf (options2.value[2],LANGUAGE.TChinese);
+ else if (Settings.language == kor) sprintf (options2.value[2],LANGUAGE.Korean);
- if (Settings.ocarina == on) sprintf (options2.value[3],"On");
- else if (Settings.ocarina == off) sprintf (options2.value[3],"Off");
+ if (Settings.ocarina == on) sprintf (options2.value[3],LANGUAGE.ON);
+ else if (Settings.ocarina == off) sprintf (options2.value[3],LANGUAGE.OFF);
- if (Settings.sinfo == GameID) sprintf (options2.value[4],"Game ID");
- else if (Settings.sinfo == GameRegion) sprintf (options2.value[4],"Game Region");
- else if (Settings.sinfo == Both) sprintf (options2.value[4],"Both");
- else if (Settings.sinfo == Neither) sprintf (options2.value[4],"Neither");
+ if (Settings.sinfo == GameID) sprintf (options2.value[4],LANGUAGE.GameID);
+ else if (Settings.sinfo == GameRegion) sprintf (options2.value[4],LANGUAGE.GameRegion);
+ else if (Settings.sinfo == Both) sprintf (options2.value[4],LANGUAGE.Both);
+ else if (Settings.sinfo == Neither) sprintf (options2.value[4],LANGUAGE.Neither);
- if (Settings.hddinfo == HDDInfo) sprintf (options2.value[5],"Off");
- else if (Settings.hddinfo == Clock) sprintf (options2.value[5],"On");
+ if (Settings.hddinfo == HDDInfo) sprintf (options2.value[5],LANGUAGE.OFF);
+ else if (Settings.hddinfo == Clock) sprintf (options2.value[5],LANGUAGE.ON);
- if (Settings.rumble == RumbleOn) sprintf (options2.value[6],"On");
- else if (Settings.rumble == RumbleOff) sprintf (options2.value[6],"Off");
+ if (Settings.rumble == RumbleOn) sprintf (options2.value[6],LANGUAGE.ON);
+ else if (Settings.rumble == RumbleOff) sprintf (options2.value[6],LANGUAGE.OFF);
if (Settings.volume == v10) sprintf (options2.value[7],"10");
else if (Settings.volume == v20) sprintf (options2.value[7],"20");
@@ -3659,11 +3680,11 @@ static int MenuSettings()
else if (Settings.volume == v80) sprintf (options2.value[7],"80");
else if (Settings.volume == v90) sprintf (options2.value[7],"90");
else if (Settings.volume == v100) sprintf (options2.value[7],"100");
- else if (Settings.volume == v0) sprintf (options2.value[7],"Off");
+ else if (Settings.volume == v0) sprintf (options2.value[7],LANGUAGE.OFF);
- if (Settings.tooltips == TooltipsOn) sprintf (options2.value[8],"On");
- else if (Settings.tooltips == TooltipsOff) sprintf (options2.value[8],"Off");
+ if (Settings.tooltips == TooltipsOn) sprintf (options2.value[8],LANGUAGE.ON);
+ else if (Settings.tooltips == TooltipsOff) sprintf (options2.value[8],LANGUAGE.OFF);
ret = optionBrowser2.GetClickedOption();
@@ -3714,23 +3735,23 @@ static int MenuSettings()
if ( CFG.godmode != 1) sprintf(options2.value[0], "********");
- else if (!strcmp("", Settings.unlockCode)) sprintf(options2.value[0], "");
+ else if (!strcmp("", Settings.unlockCode)) sprintf(options2.value[0], LANGUAGE.notset);
else sprintf(options2.value[0], Settings.unlockCode);
if (CFG.godmode != 1) sprintf(options2.value[1], "********");
else if (Settings.cios == ios249) sprintf (options2.value[1],"cIOS 249");
else if (Settings.cios == ios222) sprintf (options2.value[1],"cIOS 222");
- if (Settings.xflip == no) sprintf (options2.value[2],"Right/Next");
- else if (Settings.xflip == yes) sprintf (options2.value[2],"Left/Prev");
+ if (Settings.xflip == no) sprintf (options2.value[2],"%s/%s",LANGUAGE.Right,LANGUAGE.Next);
+ else if (Settings.xflip == yes) sprintf (options2.value[2],"%s/%s",LANGUAGE.Left,LANGUAGE.Prev);
else if (Settings.xflip == sysmenu) sprintf (options2.value[2],"Like SysMenu");
- else if (Settings.xflip == wtf) sprintf (options2.value[2],"Right/Prev");
+ else if (Settings.xflip == wtf) sprintf (options2.value[2],"%s/%s",LANGUAGE.Right,LANGUAGE.Prev);
- if (Settings.qboot == no) sprintf (options2.value[3],"No");
- else if (Settings.qboot == yes) sprintf (options2.value[3],"Yes");
+ if (Settings.qboot == no) sprintf (options2.value[3],LANGUAGE.No);
+ else if (Settings.qboot == yes) sprintf (options2.value[3],LANGUAGE.Yes);
- if (Settings.wsprompt == no) sprintf (options2.value[4],"Normal");
- else if (Settings.wsprompt == yes) sprintf (options2.value[4],"Widescreen Fix");
+ if (Settings.wsprompt == no) sprintf (options2.value[4],LANGUAGE.Normal);
+ else if (Settings.wsprompt == yes) sprintf (options2.value[4],LANGUAGE.WidescreenFix);
if (CFG.godmode != 1) sprintf(options2.value[5], "********");
else if(CFG.parentalcontrol == 0) sprintf(options2.value[5], "0");
@@ -3794,13 +3815,13 @@ static int MenuSettings()
if ( result == 1 )
{
strncpy(Settings.unlockCode, entered, sizeof(Settings.unlockCode));
- WindowPrompt("Password Changed","Password has been changed","OK",0,0,0);
+ WindowPrompt(LANGUAGE.PasswordChanged,LANGUAGE.Passwordhasbeenchanged,LANGUAGE.ok,0,0,0);
cfg_save_global();
}
}
else
{
- WindowPrompt("Password change","Console should be unlocked to modify it.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.Passwordchange,LANGUAGE.Consoleshouldbeunlockedtomodifyit,LANGUAGE.ok,0,0,0);
}
break;
case 1:
@@ -3842,17 +3863,17 @@ static int MenuSettings()
w.Append(&lockBtn);
if ( result == 1 )
{ strncpy(CFG.covers_path, entered, sizeof(CFG.covers_path));
- WindowPrompt("Coverpath Changed",0,"OK",0,0,0);
+ WindowPrompt(LANGUAGE.CoverpathChanged,0,LANGUAGE.ok,0,0,0);
if(isSdInserted() == 1) {
cfg_save_global();
} else {
- WindowPrompt("No SD-Card inserted!", "Insert a SD-Card to save.", "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
}
}
}
else
{
- WindowPrompt("Coverpath change","Console should be unlocked to modify it.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.Coverpathchange,LANGUAGE.Consoleshouldbeunlockedtomodifyit,LANGUAGE.ok,0,0,0);
}
break;
case 7:
@@ -3878,17 +3899,17 @@ static int MenuSettings()
if ( result == 1 )
{
strncpy(CFG.disc_path, entered, sizeof(CFG.disc_path));
- WindowPrompt("Discpath Changed",0,"OK",0,0,0);
+ WindowPrompt(LANGUAGE.DiscpathChanged,0,LANGUAGE.ok,0,0,0);
if(isSdInserted() == 1) {
cfg_save_global();
} else {
- WindowPrompt("No SD-Card inserted!", "Insert a SD-Card to save.", "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
}
}
}
else
{
- WindowPrompt("Discpath change","Console should be unlocked to modify it.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.Discpathchange,LANGUAGE.Consoleshouldbeunlockedtomodifyit,LANGUAGE.ok,0,0,0);
}
break;
case 8:
@@ -3914,15 +3935,15 @@ static int MenuSettings()
if ( result == 1 )
{
strncpy(CFG.theme_path, entered, sizeof(CFG.theme_path));
- WindowPrompt("Themepath Changed",0,"OK",0,0,0);
+ WindowPrompt(LANGUAGE.ThemepathChanged,0,LANGUAGE.ok,0,0,0);
if(isSdInserted() == 1) {
cfg_save_global();
} else {
- WindowPrompt("No SD-Card inserted!", "Insert a SD-Card to save.", "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
}
/////load new theme//////////////
mainWindow->Remove(bgImg);
- CFG_Load1();
+ CFG_ReLoad();
CFG_LoadGlobal();
menu = MENU_SETTINGS;
#ifdef HW_RVL
@@ -3964,14 +3985,23 @@ static int MenuSettings()
}
else
{
- WindowPrompt("Themepath change","Console should be unlocked to modify it.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.Themepathchange,LANGUAGE.Consoleshouldbeunlockedtomodifyit,LANGUAGE.ok,0,0,0);
}
break;
}
}
if (pageToDisplay == 3){
sprintf(options2.value[0], " ");
- sprintf(options2.value[1], " ");
+
+ if (strlen(CFG.language_path) < (9 + 3)) {
+ sprintf(cfgtext, "%s", CFG.language_path);
+ } else {
+ strncpy(cfgtext, CFG.language_path, 9);
+ cfgtext[9] = '\0';
+ strncat(cfgtext, "...", 3);
+ }
+ sprintf(options2.value[1], "%s", cfgtext);
+
sprintf(options2.value[2], " ");
sprintf(options2.value[3], " ");
sprintf(options2.value[4], " ");
@@ -3988,6 +4018,47 @@ static int MenuSettings()
menu = MENU_MP3;
pageToDisplay = 0;
break;
+ /////
+
+ case 1: // language file path
+ if ( CFG.godmode == 1)
+ {
+ mainWindow->Remove(&optionBrowser2);
+ mainWindow->Remove(&page1Btn);
+ mainWindow->Remove(&page2Btn);
+ mainWindow->Remove(&tabBtn);
+ mainWindow->Remove(&page3Btn);
+ w.Remove(&backBtn);
+ w.Remove(&lockBtn);
+ char entered[40] = "";
+ strncpy(entered, CFG.language_path, sizeof(entered));
+ int result = OnScreenKeyboard(entered, 40,0);
+ mainWindow->Append(&optionBrowser2);
+ mainWindow->Append(&tabBtn);
+ mainWindow->Append(&page1Btn);
+ mainWindow->Append(&page2Btn);
+ mainWindow->Append(&page3Btn);
+ w.Append(&backBtn);
+ w.Append(&lockBtn);
+ if ( result == 1 )
+ { strncpy(CFG.language_path, entered, sizeof(CFG.language_path));
+ if(isSdInserted() == 1) {
+ cfg_save_global();
+ //CFG_ReLoad();
+ //CFG_LoadGlobal();
+ CFG_ReLoad();
+ } else {
+ WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
+ }
+
+ }
+ }
+ else
+ {
+ WindowPrompt(LANGUAGE.Langchange,LANGUAGE.Consoleshouldbeunlockedtomodifyit,LANGUAGE.ok,0,0,0);
+ }
+ break;
+
}
@@ -4074,7 +4145,7 @@ static int MenuSettings()
{
if (CFG.godmode == 0)
{
- WindowPrompt("Correct Password","Install, Rename, and Delete are unlocked.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.CorrectPassword,LANGUAGE.InstallRenameandDeleteareunlocked,LANGUAGE.ok,0,0,0);
CFG.godmode = 1;
__Menu_GetEntries();
menu = MENU_DISCLIST;
@@ -4082,16 +4153,16 @@ static int MenuSettings()
}
else
{
- WindowPrompt("Wrong Password","USB Loader is protected.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.WrongPassword,LANGUAGE.USBLoaderisprotected,LANGUAGE.ok,0,0,0);
}
}
}
else
{
- int choice = WindowPrompt ("Lock Console","Are you sure?","Yes","No",0,0);
+ int choice = WindowPrompt (LANGUAGE.LockConsole,LANGUAGE.Areyousure,LANGUAGE.Yes,LANGUAGE.No,0,0);
if(choice == 1)
{
- WindowPrompt("Console Locked","USB Loader is now protected.","OK",0,0,0);
+ WindowPrompt(LANGUAGE.ConsoleLocked,LANGUAGE.USBLoaderisprotected,LANGUAGE.ok,0,0,0);
CFG.godmode = 0;
__Menu_GetEntries();
menu = MENU_DISCLIST;
@@ -4099,11 +4170,11 @@ static int MenuSettings()
}
if ( CFG.godmode == 1)
{
- lockBtnTxt.SetText("Lock");
+ lockBtnTxt.SetText(LANGUAGE.Lock);
}
else
{
- lockBtnTxt.SetText("Unlock");
+ lockBtnTxt.SetText(LANGUAGE.Unlock);
}
lockBtn.ResetState();
}
@@ -4146,9 +4217,9 @@ int GameSettings(struct discHdr * header)
}
customOptionList options3(5);
- sprintf(options3.name[0], "Video Mode");
- sprintf(options3.name[1], "VIDTV Patch");
- sprintf(options3.name[2], "Language");
+ sprintf(options3.name[0], LANGUAGE.VideoMode);
+ sprintf(options3.name[1], LANGUAGE.VIDTVPatch);
+ sprintf(options3.name[2], LANGUAGE.Language);
sprintf(options3.name[3], "Ocarina");
sprintf(options3.name[4], "IOS");
@@ -4177,7 +4248,7 @@ int GameSettings(struct discHdr * header)
settingsbackgroundbtn.SetPosition(0, 0);
settingsbackgroundbtn.SetImage(&settingsbackground);
- GuiText saveBtnTxt("Save", 22, (GXColor){0, 0, 0, 255});
+ GuiText saveBtnTxt(LANGUAGE.Save, 22, (GXColor){0, 0, 0, 255});
saveBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage saveBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
@@ -4192,7 +4263,7 @@ int GameSettings(struct discHdr * header)
saveBtn.SetTrigger(&trigA);
saveBtn.SetEffectGrow();
- GuiText cancelBtnTxt("Back", 22, (GXColor){0, 0, 0, 255});
+ GuiText cancelBtnTxt(LANGUAGE.Back, 22, (GXColor){0, 0, 0, 255});
cancelBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage cancelBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
@@ -4208,7 +4279,7 @@ int GameSettings(struct discHdr * header)
cancelBtn.SetTrigger(&trigB);
cancelBtn.SetEffectGrow();
- GuiText deleteBtnTxt("Uninstall", 22, (GXColor){0, 0, 0, 255});
+ GuiText deleteBtnTxt(LANGUAGE.Uninstall, 22, (GXColor){0, 0, 0, 255});
deleteBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage deleteBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
@@ -4269,30 +4340,30 @@ int GameSettings(struct discHdr * header)
VIDEO_WaitVSync ();
- if (videoChoice == discdefault) sprintf (options3.value[0],"Disc Default");
- else if (videoChoice == systemdefault) sprintf (options3.value[0],"System Default");
- else if (videoChoice == patch) sprintf (options3.value[0],"Auto Patch");
- else if (videoChoice == pal50) sprintf (options3.value[0],"Force PAL50");
- else if (videoChoice == pal60) sprintf (options3.value[0],"Force PAL60");
- else if (videoChoice == ntsc) sprintf (options3.value[0],"Force NTSC");
+ if (videoChoice == discdefault) sprintf (options3.value[0],LANGUAGE.DiscDefault);
+ else if (videoChoice == systemdefault) sprintf (options3.value[0],LANGUAGE.SystemDefault);
+ else if (videoChoice == patch) sprintf (options3.value[0],LANGUAGE.AutoPatch);
+ else if (videoChoice == pal50) sprintf (options3.value[0],"%s PAL50",LANGUAGE.Force);
+ else if (videoChoice == pal60) sprintf (options3.value[0],"%s PAL60",LANGUAGE.Force);
+ else if (videoChoice == ntsc) sprintf (options3.value[0],"%s NTSC",LANGUAGE.Force);
- if (viChoice == on) sprintf (options3.value[1],"ON");
- else if (viChoice == off) sprintf (options3.value[1],"OFF");
+ if (viChoice == on) sprintf (options3.value[1],LANGUAGE.ON);
+ else if (viChoice == off) sprintf (options3.value[1],LANGUAGE.OFF);
- if (languageChoice == ConsoleLangDefault) sprintf (options3.value[2],"Console Default");
- else if (languageChoice == jap) sprintf (options3.value[2],"Japanese");
- else if (languageChoice == ger) sprintf (options3.value[2],"German");
- else if (languageChoice == eng) sprintf (options3.value[2],"English");
- else if (languageChoice == fren) sprintf (options3.value[2],"French");
- else if (languageChoice == esp) sprintf (options3.value[2],"Spanish");
- else if (languageChoice == it) sprintf (options3.value[2],"Italian");
- else if (languageChoice == dut) sprintf (options3.value[2],"Dutch");
- else if (languageChoice == schin) sprintf (options3.value[2],"S. Chinese");
- else if (languageChoice == tchin) sprintf (options3.value[2],"T. Chinese");
- else if (languageChoice == kor) sprintf (options3.value[2],"Korean");
+ if (languageChoice == ConsoleLangDefault) sprintf (options3.value[2],LANGUAGE.ConsoleDefault);
+ else if (languageChoice == jap) sprintf (options3.value[2],LANGUAGE.Japanese);
+ else if (languageChoice == ger) sprintf (options3.value[2],LANGUAGE.German);
+ else if (languageChoice == eng) sprintf (options3.value[2],LANGUAGE.English);
+ else if (languageChoice == fren) sprintf (options3.value[2],LANGUAGE.French);
+ else if (languageChoice == esp) sprintf (options3.value[2],LANGUAGE.Spanish);
+ else if (languageChoice == it) sprintf (options3.value[2],LANGUAGE.Italian);
+ else if (languageChoice == dut) sprintf (options3.value[2],LANGUAGE.Dutch);
+ else if (languageChoice == schin) sprintf (options3.value[2],LANGUAGE.SChinese);
+ else if (languageChoice == tchin) sprintf (options3.value[2],LANGUAGE.TChinese);
+ else if (languageChoice == kor) sprintf (options3.value[2],LANGUAGE.Korean);
- if (ocarinaChoice == on) sprintf (options3.value[3],"ON");
- else if (ocarinaChoice == off) sprintf (options3.value[3],"OFF");
+ if (ocarinaChoice == on) sprintf (options3.value[3],LANGUAGE.ON);
+ else if (ocarinaChoice == off) sprintf (options3.value[3],LANGUAGE.OFF);
if (iosChoice == i249) sprintf (options3.value[4],"249");
else if (iosChoice == i222) sprintf (options3.value[4],"222");
@@ -4328,14 +4399,14 @@ int GameSettings(struct discHdr * header)
if(isSdInserted() == 1) {
if (CFG_save_game_opt(header->id))
{
- WindowPrompt("Successfully Saved", 0, "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.SuccessfullySaved, 0, LANGUAGE.ok, 0,0,0);
}
else
{
- WindowPrompt("Save Failed", 0, "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.SaveFailed, 0, LANGUAGE.ok, 0,0,0);
}
} else {
- WindowPrompt("No SD-Card inserted!", "Insert a SD-Card to save.", "OK", 0,0,0);
+ WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
}
saveBtn.ResetState();
@@ -4351,9 +4422,9 @@ int GameSettings(struct discHdr * header)
if (deleteBtn.GetState() == STATE_CLICKED)
{
int choice = WindowPrompt(
- "Do you really want to delete:",
+ LANGUAGE.Doyoureallywanttodelete,
gameName,
- "Yes","Cancel",0,0);
+ LANGUAGE.Yes,LANGUAGE.Cancel,0,0);
if (choice == 1)
{
@@ -4361,16 +4432,16 @@ int GameSettings(struct discHdr * header)
if (ret < 0)
{
WindowPrompt(
- "Can't delete:",
+ LANGUAGE.Cantdelete,
gameName,
- "OK",0,0,0);
+ LANGUAGE.ok,0,0,0);
}
else {
__Menu_GetEntries();
WindowPrompt(
- "Successfully deleted:",
+ LANGUAGE.Successfullydeleted,
gameName,
- "OK",0,0,0);
+ LANGUAGE.ok,0,0,0);
retVal = 1;
}
break;
@@ -4418,10 +4489,10 @@ static int MenuCheck()
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
- ret2 = WindowPrompt("No USB Device found.",
- "Do you want to retry for 30secs?",
- "Try cIOS249", "Try cIOS222",
- "Back to WiiMenu", 0);
+ ret2 = WindowPrompt(LANGUAGE.NoUSBDevicefound,
+ LANGUAGE.Doyouwanttoretryfor30secs,
+ "cIOS249", "cIOS222",
+ LANGUAGE.BacktoWiiMenu, 0);
if(ret2 == 1) {
Settings.cios = ios249;
@@ -4435,7 +4506,7 @@ static int MenuCheck()
WPAD_Disconnect(0);
WPAD_Shutdown();
- ret2 = DiscWait("No USB Device:", "Waiting for USB Device", 0, 0, 1);
+ ret2 = DiscWait(LANGUAGE.NoUSBDevice, LANGUAGE.WaitingforUSBDevice, 0, 0, 1);
PAD_Init();
Wpad_Init();
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
@@ -4443,7 +4514,7 @@ static int MenuCheck()
SDCard_Init();
}
if (ret2 < 0) {
- WindowPrompt ("ERROR:","USB-Device not found!", "ok", 0,0,0);
+ WindowPrompt (LANGUAGE.Error,LANGUAGE.USBDevicenotfound, LANGUAGE.ok, 0,0,0);
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
} else {
PAD_Init();
@@ -4455,17 +4526,17 @@ static int MenuCheck()
ret2 = Disc_Init();
if (ret2 < 0) {
- WindowPrompt ("Error","Could not initialize DIP module!", "ok", 0,0,0);
+ WindowPrompt (LANGUAGE.Error,LANGUAGE.CouldnotinitializeDIPmodule,LANGUAGE.ok, 0,0,0);
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
}
ret2 = WBFS_Open();
if (ret2 < 0) {
- choice = WindowPrompt("No WBFS partition found!",
- "You need to format a partition.",
- "Format",
- "Return",0,0);
+ choice = WindowPrompt(LANGUAGE.NoWBFSpartitionfound,
+ LANGUAGE.Youneedtoformatapartition,
+ LANGUAGE.Format,
+ LANGUAGE.Return,0,0);
if(choice == 0)
{
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
@@ -4476,7 +4547,7 @@ static int MenuCheck()
ret2 = Partition_GetEntries(partitions, §or_size);
if (ret2 < 0) {
- WindowPrompt ("No partitions found!",0, "Restart", 0,0,0);
+ WindowPrompt (LANGUAGE.Nopartitionsfound,0, LANGUAGE.Restart, 0,0,0);
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
}
@@ -4533,7 +4604,7 @@ int MenuMp3()
optionBrowser4.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
optionBrowser4.SetCol2Position(65);
- GuiText cancelBtnTxt("Back", 22, (GXColor){0, 0, 0, 255});
+ GuiText cancelBtnTxt(LANGUAGE.Back, 22, (GXColor){0, 0, 0, 255});
cancelBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage cancelBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
@@ -4984,7 +5055,7 @@ int MainMenu(int menu)
int ret = 0;
ret = Disc_WiiBoot(videoselected, cheat, vipatch);
if (ret < 0) {
- printf(" ERROR: BOOT ERROR! (ret = %d)\n", ret);
+ printf("%s (ret = %d)\n",LANGUAGE.Error, ret);
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
}