...more localisation...

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@120 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-18 23:45:15 +00:00
parent 4720fbc188
commit 99e8f516be
5 changed files with 143 additions and 70 deletions
+4 -4
View File
@@ -71,16 +71,16 @@ bool ActionStack::canRedo() const {
String ActionStack::undoName() const {
if (canUndo()) {
return _("Undo ") + capitalize(undo_actions.back()->getName(true));
return _(" ") + capitalize(undo_actions.back()->getName(true));
} else {
return _("Undo");
return wxEmptyString;
}
}
String ActionStack::redoName() const {
if (canRedo()) {
return _("Redo ") + capitalize(redo_actions.back()->getName(false));
return _(" ") + capitalize(redo_actions.back()->getName(false));
} else {
return _("Redo");
return wxEmptyString;
}
}
+6
View File
@@ -56,6 +56,12 @@ String tr(LocaleCategory cat, const String& key);
/// A localized string for error messages
#define _ERROR_(s) tr(LOCALE_CAT_ERROR, _(s))
/// A localized string for menus/toolbar buttons, with 1 argument (printf style)
#define _MENU_1_(s,a) String::Format(tr(LOCALE_CAT_MENU, _(s)), a)
/// A localized string for tooltip text, with 1 argument (printf style)
#define _TOOL_1_(s,a) String::Format(tr(LOCALE_CAT_TOOL, _(s)), a)
/// A localized string for error messages, with 1 argument (printf style)
#define _ERROR_1_(s,a) String::Format(tr(LOCALE_CAT_ERROR, _(s)), a)
/// A localized string for error messages, with 2 argument (printf style)