Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package application.l10n;
import java.text.MessageFormat;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
* Provides messages available for localization.
* @author Joel Håkansson
*/
@SuppressWarnings("javadoc")
public enum Messages {
ABOUT_WINDOW_TITLE("about-window-title"),
FIND_WINDOW_TITLE("find-window-title"),
APPLICATION_TITLE("application-title"),
APPLICATION_DESCRIPTION("application-description"),
APPLICATION_VERSION("application-version"),
APPLICATION_ABOUT_PEF("application-about-pef"),
APPLICATION_ENVIRONMENT("application-environment"),
BUTTON_OK("button-ok"),
BUTTON_SELECT("button-select"),
BUTTON_DELETE("button-delete"),
EMBOSS_WINDOW_TITLE("emboss-window-title"),
/**
* The file is invalid and cannot be embossed.
*/
ERROR_CANNOT_EMBOSS_INVALID_FILE("error-cannot-emboss-invalid-file"),
/**
* The page range could not be parsed.
*
*
{0} = the input
*
*/
ERROR_FAILED_TO_PARSE_PAGE_RANGE("error-failed-to-parse-page-range"),
/**
* The volume number could not be parsed.
*
*
{0} = the input
*
*/
ERROR_FAILED_TO_PARSE_VOLUME_NUMBER("error-failed-to-parse-volume-number"),
/**
* The page range field is empty.
*/
ERROR_EMPTY_PAGE_RANGE("error-empty-page-range"),
/**
* The volume number field is empty.
*/
ERROR_EMPTY_VOLUME_NUMBER("error-empty-volume-number"),
/**
* The volume number field is less than one.
*/
ERROR_VOLUME_NUMBER_LESS_THAN_ONE("error-volume-number-less-than-one"),
/**
* The volume number is greater than the number of volumes.
*
*
{0} = the input
*
{1} = the number of volumes
*
*/
ERROR_VOLUME_NUMBER_OUT_OF_RANGE("error-volume-number-out-of-range"),
/**
* No device specified in preferences.
*/
ERROR_NO_DEVICE_SPECIFIED("error-no-device-specified"),
/**
* The embosser settings are invalid.
*/
ERROR_INVALID_EMBOSSER_SETTINGS("error-invalid-embosser-settings"),
/**
* No alignment specified in preferences.
*/
ERROR_NO_ALIGNMENT_SPECIFIED("error-no-alignment-specified"),
ERROR_FAILED_TO_LOAD_HELP("error-failed-to-load-help"),
ERROR_UNSUPPORTED_XML_ENCODING("error-unsupported-xml-encoding"),
ERROR_FAILED_TO_WRITE_TO_FILE("error-failed-to-write-to-file"),
ERROR_INVALID_ARGUMENTS("error-invalid-arguments"),
TITLE_SET_SEARCH_FOLDER("title-set-search-folder"),
TITLE_OPEN_DIALOG("title-open-dialog"),
TITLE_IMPORT_SOURCE_DOCUMENT_DIALOG("title-import-source-document-dialog"),
TITLE_IMPORT_BRAILLE_OPTIONS_DIALOG("title-import-braille-options-dialog"),
TITLE_IMPORT_BRAILLE_TEXT_DIALOG("title-import-braille-text-dialog"),
TITLE_IMPORT_BRAILLE_MERGE_DIALOG("title-import-braille-merge-dialog"),
TITLE_EXPORT_DIALOG("title-export-dialog"),
TITLE_SAVE_AS_DIALOG("title-save-as-dialog"),
TITLE_TEMPLATES_DIALOG("title-templates-dialog"),
TITLE_SAVE_TEMPLATES_DIALOG("title-save-template-dialog"),
LABEL_TARGET_LOCALE("label-target-locale"),
LABEL_BRAILLE_FONT("label-braille-font"),
LABEL_TEXT_FONT("label-text-font"),
LABEL_TRANSLATION("label-translation"),
LABEL_DEVICE("label-device"),
LABEL_EMBOSSER("label-embosser"),
LABEL_PRINT_MODE("label-print-mode"),
LABEL_TABLE("label-table"),
LABEL_PAPER("label-paper"),
LABEL_CUT_LENGTH("label-cut-length"),
LABEL_ORIENTATION("label-orientation"),
LABEL_Z_FOLDING("label-z-folding"),
LABEL_ALIGNMENT("label-alignment"),
LABEL_EDIT_ABOVE("label-edit-above"),
LABEL_SETUP_VALID("label-setup-valid"),
LABEL_SETUP_INVALID("label-setup-invalid"),
LABEL_CREATE_TEST_DOCUMENT("label-create-test-document"),
LABEL_PAPER_DIMENSIONS("label-paper-dimensions"),
LABEL_EMPTY("label-empty"),
LABEL_HEIGHT("label-height"),
LABEL_WIDTH("label-width"),
LABEL_ROLL_SIZE("label-roll-size"),
LABEL_SHEET_PAPER("label-sheet-paper"),
LABEL_TRACTOR_PAPER("label-tractor-paper"),
LABEL_ROLL_PAPER("label-roll-paper"),
LABEL_SOURCE("label-source"),
LABEL_RESULT("label-result"),
LABEL_MAKE("label-make"),
LABEL_GENERAL("label-general"),
MESSAGE_SIX_DOT_ONLY("message-six-dot-only"),
MESSAGE_SEARCH_RESULT("message-search-result"),
MESSAGE_UNKNOWN_AUTHOR("message-unknown-author"),
MESSAGE_UNKNOWN_TITLE("message-unknown-title"),
MESSAGE_PAPER_DETAILS("message-paper-details"),
MESSAGE_BOOK_DIMENSIONS("message-book-dimensions"),
/**
* The file has been sent to the embosser
*/
MESSAGE_FILE_SENT_TO_EMBOSSER("message-file-sent-to-embosser"),
/**
* Confirm delete a custom paper
*/
MESSAGE_CONFIRM_DELETE("message-confirm-delete"),
MESSAGE_FILE_MODIFIED_BY_ANOTHER_APPLICATION("message-file-modified-by-another-application"),
MESSAGE_FILE_MODIFIED_BY_ANOTHER_APPLICATION_NO_OVERWRITE("message-file-modified-by-another-application-no-overwrite"),
MESSAGE_CONFIRM_SAVE_MALFORMED_XML("message-confirm-save-malformed-xml"),
MESSAGE_CONFIRM_QUIT_UNSAVED_CHANGES("message-confirm-quit-unsaved-changes"),
MESSAGE_CONFIRM_CLOSE_UNSAVED_CHANGES("message-confirm-close-unsaved-changes"),
MESSAGE_WARNING_OPENING_LARGE_FILE_IN_EDITOR("message-warning-opening-large-file-in-editor"),
PREFERENCES_MENU_ITEM("menu-item-preferences"),
PREFERENCES_WINDOW_TITLE("preferences-window-title"),
TAB_EMBOSS("tab-emboss"),
TAB_PREVIEW("tab-preview"),
TAB_LIBRARY("tab-library"),
TAB_CHARACTER_TOOL("tab-character-tool"),
TAB_HELP_CONTENTS("tab-help-contents"),
TOOLTIP_8_DOT_SUPPORT("tooltip-8-dot-support"),
TOOLTIP_6_DOT_ONLY("tooltip-6-dot-only"),
TOOLTIP_VOLUME_SUPPORT("tooltip-volume-support"),
TOOLTIP_NO_VOLUME_SUPPORT("tooltip-no-volume-support"),
TOOLTIP_ACCURATE_LINE_SPACING("tooltip-accurate-line-spacing"),
TOOLTIP_SIMPLE_LINE_SPACING("tooltip-simple-line-spacing"),
TOOLTIP_SHOW_CONVERTER("tooltip-show-converter"),
TOOLTIP_HIDE_CONVERTER("tooltip-hide-converter"),
VALUE_USE_DEFAULT("value-use-default"),
EXTENSION_FILTER_SUPPORTED_FILES("extension-filter-supported-files"),
EXTENSION_FILTER_ALL_FILES("extension-filter-all-files"),
EXTENSION_FILTER_FILE("extension-filter-file"),
OPTION_VALUE_LANDSCAPE("option-value-landscape"),
OPTION_VALUE_PORTRAIT("option-value-portrait"),
OPTION_VALUE_SQUARE("option-value-square"),
OPTION_VALUE_DEFAULT_ORIENTATION("option-value-default-orientation"),
OPTION_VALUE_REVERSED_ORIENTATION("option-value-reversed-orientation"),
OPTION_VALUE_PAGE_ALIGNMENT_LEFT("option-value-page-alignment-left"),
OPTION_VALUE_PAGE_ALIGNMENT_CENTER("option-value-page-alignment-center"),
OPTION_VALUE_PAGE_ALIGNMENT_RIGHT("option-value-page-alignment-right"),
OPTION_VALUE_PAGE_ALIGNMENT_INNER("option-value-page-alignment-inner"),
OPTION_VALUE_PAGE_ALIGNMENT_OUTER("option-value-page-alignment-outer"),
OPTION_VALUE_REGULAR_PRINT_MODE("option-value-regular-print-mode"),
OPTION_VALUE_MAGAZINE_PRINT_MODE("option-value-magazine-print-mode"),
ABOUT_THE_BOOK("Worker.heading-about-book"),
UNKNOWN_TITLE("Worker.unknown-title"),
UNKNOWN_AUTHOR("Worker.unknown-author"),
SIZE("Worker.size"),
SIZE_PAGES("Worker.size-format"),
SIZE_SHEETS("Worker.size-sheets"),
SIZE_VOLUMES("Worker.size-volumes"),
DIMENSIONS("Worker.dimensions"),
EIGHT_DOT("Worker.eight-dot"),
DUPLEX("Worker.duplex"),
DUPLEX_NO("Worker.duplex-no"),
DUPLEX_YES("Worker.duplex-yes"),
DUPLEX_MIXED("Worker.duplex-mixed"),
YES("Worker.yes"),
NO("Worker.no"),
FILE_DIMENSIONS("Worker.file-dimensions"),
MENU_ABOUT_BOOK("Worker.menu-about-book"),
PREVIEW_VIEW("Worker.preview-view"),
XSLT_TOGGLE_VIEW("xslt.toggle-view-label"),
XSLT_SHOWING_PAGES("xslt.showing-pages"),
XSLT_ABOUT_LABEL("xslt.about-label"),
XSLT_VIEW_SOURCE("xslt.view-source"),
XSLT_VOLUME_LABEL("xslt.volume-label"),
XSLT_SECTION_LABEL("xslt.section-label"),
XSLT_PAGE_LABEL("xslt.page-label"),
XSLT_SHEETS_LABEL("xslt.sheets-label"),
XSLT_GO_TO_PAGE_LABEL("xslt.go-to-page-label"),
VALIDATION_ISSUES("validation-issues")
;
private static final String BUNDLE_NAME = Messages.class.getPackage().getName() + ".messages"; //$NON-NLS-1$
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault());
private final String key;
private Messages(String key) {
this.key = key;
}
/**
* Gets the resource bundle for this class.
* @return returns the resource bundle
*/
public static ResourceBundle getBundle() {
return RESOURCE_BUNDLE;
}
public static String getString(String key) {
try {
return RESOURCE_BUNDLE.getString(key);
} catch (MissingResourceException e) {
return '!' + key + '!';
}
}
/**
* Localizes the message without any variables.
* @return returns the localized message
*/
public String localize() {
return getString(key);
}
/**
* Localizes the message with the specified variables.
* @param variables the variables to insert into the localized message
* @return returns the localized message
*/
public String localize(Object ... variables) {
return MessageFormat.format(localize(), variables);
}
}