Better localization tools. Use update_strings.sh to update the english strings.

Use load_localization.sh to update from a localization in the Localizations directory.
CQTexperiment
vspader 2007-02-17 20:14:15 +00:00
parent 2884273ff7
commit d828043340
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,23 @@
"FeedbackFailedMessageText" = "Failed";
"FeedbackFailedInformativeText" = "Feedback failed to send.";
"FeedbackSuccessMessageText" = "Success";
"FeedbackSuccessInformativeText" = "Feedback successfully sent!";
"CheckingForUpdate" = "Checking for update…";
"UpdateAvailable" = "Update available!";
"UpdateNotFound" = "No updates available.";
"UpdateError" = "Error connecting to update server.";
"PlayButtonTooltip" = "Play";
"StopButtonTooltip" = "Stop";
"PrevButtonTooltip" = "Previous";
"NextButtonTooltip" = "Next";
"TimeElapsed" = "%i:%02i";
"TimeRemaining" = "-%i:%02i";
"AddButtonTooltip" = "Add files";
"RemoveButtonTooltip" = "Remove selected files";
"InfoButtonTooltip" = "Information on the selected file";
"ShuffleButtonTooltip" = "Shuffle mode";
"RepeatButtonTooltip" = "Repeat mode";

Binary file not shown.

14
load_localization.sh Executable file
View File

@ -0,0 +1,14 @@
language=$1
if ! [ -d $language.lproj ]; then
mkdir $language.lproj
fi
if ! [ -d Prferences/General/$language.lproj ]; then
mkdir Preferences/General/$language.lproj
fi
nibtool -d Localizations/$language/MainUI.strings English.lproj/MainMenu.nib -W $language.lproj/MainMenu.nib
nibtool -d Localizations/$language/PreferencesUI.strings Preferences/General/English.lproj/Preferences.nib -W Preferences/General/$language.lproj/Preferences.nib
cp Localizations/$language/MainProgram.strings $language.lproj/Localizable.strings

10
update_strings.sh Executable file
View File

@ -0,0 +1,10 @@
if ! [ -d Localizations/English ]; then
mkdir Localizations/English
fi
nibtool -L English.lproj/MainMenu.nib > Localizations/English/MainUI.strings
nibtool -L Preferences/General/English.lproj/Preferences.nib > Localizations/English/PreferencesUI.strings
cp English.lproj/Localizable.strings Localizations/English/MainProgram.strings