mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
...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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user