mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Added 'insert symbol' menu for SymbolFonts;
Added scriptable 'enabled' to symbols in symbol font, used instead of scripted filenames. This means changing the tap symbol style now works; Added localisation for games, stylesheets and symbolfonts; Warnings from Reader are now shown onIdle; git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@198 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
#include <util/prec.hpp>
|
||||
#include <util/string.hpp>
|
||||
|
||||
class Game;
|
||||
class StyleSheet;
|
||||
class SymbolFont;
|
||||
|
||||
// ----------------------------------------------------------------------------- : Localisation macros
|
||||
|
||||
enum LocaleCategory
|
||||
@@ -37,6 +41,24 @@ enum LocaleCategory
|
||||
/// Translate 'key' in the category 'cat' using the current locale
|
||||
String tr(LocaleCategory cat, const String& key);
|
||||
|
||||
/// Translate 'key' in the for a Game using the current locale
|
||||
String tr(const Game&, const String& key);
|
||||
/// Translate 'key' in the for a StyleSheet using the current locale
|
||||
String tr(const StyleSheet&, const String& key);
|
||||
/// Translate 'key' in the for a SymbolFont using the current locale
|
||||
String tr(const SymbolFont&, const String& key);
|
||||
|
||||
/// Translate 'key' in the for a Game using the current locale
|
||||
/** If the key is not found, use the default value */
|
||||
String tr(const Game&, const String& key, const String& def);
|
||||
/// Translate 'key' in the for a StyleSheet using the current locale
|
||||
/** If the key is not found, use the default value */
|
||||
String tr(const StyleSheet&, const String& key, const String& def);
|
||||
/// Translate 'key' in the for a SymbolFont using the current locale
|
||||
/** If the key is not found, use the default value */
|
||||
String tr(const SymbolFont&, const String& key, const String& def);
|
||||
|
||||
|
||||
/// A localized string for menus/toolbar buttons
|
||||
#define _MENU_(s) tr(LOCALE_CAT_MENU, _(s))
|
||||
/// A localized string for help/statusbar text
|
||||
|
||||
Reference in New Issue
Block a user