Class L10N
java.lang.Object
net.mcreator.ui.init.L10N
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JButtonstatic JCheckBoxstatic StringCollects all translations for keys starting with "blockly.".static intgetHelpTipsSupport(Locale locale) static Localestatic Stringstatic Localestatic intgetUITextsLocaleSupport(Locale locale) static voidstatic JLabelstatic JMenustatic JRadioButtonradiobutton(String key, Object... parameter) static Stringstatic Stringstatic TechnicalButtontechnicalbutton(String key, Object... parameter) static JToggleButtontogglebutton(String key, Object... parameter)
-
Field Details
-
DEFAULT_LOCALE
-
-
Constructor Details
-
L10N
public L10N()
-
-
Method Details
-
initTranslations
public static void initTranslations() -
getSupportedLocales
-
getUITextsLocaleSupport
-
getHelpTipsSupport
-
getLocale
-
getOSLocale
-
getLocaleString
-
getBlocklyLangName
-
t
-
getBlocklyTranslations
Collects all translations for keys starting with "blockly.". Keys not translated in the current locale fall back to the English translation through the resource bundle parent chain.- Returns:
- map of blockly.* translation keys to their translations in the current locale
-
t_en
-
label
-
checkbox
-
button
-
technicalbutton
-
radiobutton
-
togglebutton
-