Jump to content


Photo

Lite: Localize "reboot" And "power Off"


  • Please log in to reply
1 reply to this topic

#1 LiketHc

LiketHc

    X-S Enthusiast

  • Members
  • 28 posts
  • Xbox Version:none
  • 360 version:none

Posted 13 July 2004 - 07:21 PM

How to localize "Power Off" and "Reboot" in the settings menu:

Edit settings3.xap from default.xip

How to localize "Power Off" and "Reboot" in settings menu

Edit settings3.xap from default.xip


Search for "Translate("Reboot");"
Replace "Reboot" with the string of your own language (e.g. German: "Neustart").
Two lines further replace "Power Off" with the string of your own language (e.g. German: "Ausschalten").

The changed code looks like this (I kept the original lines as comments):
CODE

// sSettingsMenu[index] = theTranslator.Translate("Reboot");
sSettingsMenu[index] = theTranslator.Translate("Neustart");
index = index + 1;
// sSettingsMenu[index] = theTranslator.Translate("Power Off");
sSettingsMenu[index] = theTranslator.Translate("Ausschalten");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("SYSTEM INFO");
index = index + 1;

Further Down - Search for "if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Reboot"))".
Replace "Reboot" with the string of your own language (e.g. German: "Neustart").
Two lines further search for "metaString = theTranslator.Translate("REBOOT");
Replace "REBOOT" with the string of your own language (e.g. German: "NEUSTART").

Search for "else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Power Off"))"
Replace "Power Off" with the string of your own language (e.g. German: "Ausschalten").
Two lines further search for "metaString = theTranslator.Translate("POWER OFF");"
Replace "POWER OFF" with the string of your own language (e.g. German: "AUSSCHALTEN").

The changed code looks like this (I kept the original lines as comments):
CODE

// else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Reboot"))
     else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Neustart"))
{
 // metaString = theTranslator.Translate("REBOOT");
 metaString = theTranslator.Translate("NEUSTART");
}
// else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Power Off"))
    else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Ausschalten"))
{
 // metaString = theTranslator.Translate("POWER OFF");
 metaString = theTranslator.Translate("AUSSCHALTEN");
}
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SYSTEM INFO"))
{
 metaString = "Xbox";


To make sure this will work, note the case sensitivity of the localization strings.

Works fine and looks good biggrin.gif

Happy modding, LiketHc

Edited by LiketHc, 13 July 2004 - 08:05 PM.


#2 LiketHc

LiketHc

    X-S Enthusiast

  • Members
  • 28 posts
  • Xbox Version:none
  • 360 version:none

Posted 14 July 2004 - 04:47 PM

This one is outdated!!

Please look here.

LiketHc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users