Commit | Line | Data |
---|---|---|
f06c8100 NR |
1 | package be.nikiroo.jvcard.resources; |
2 | ||
3 | import be.nikiroo.utils.resources.Meta; | |
4 | ||
f06c8100 NR |
5 | /** |
6 | * The enum representing textual information to be translated to the user as a | |
7 | * key. | |
8 | * | |
9 | * Note that each key that should be translated MUST be annotated with a | |
10 | * {@link Meta} annotation. | |
11 | * | |
12 | * @author niki | |
13 | * | |
14 | */ | |
15 | public enum StringId { | |
16 | DUMMY, // <-- TODO : remove | |
17 | NULL, // Special usage, no annotations so it is not visible in | |
18 | // .properties files | |
d5260eeb | 19 | @Meta(info = "MUST BE 3 chars long", description = "Tab key") |
f06c8100 | 20 | KEY_TAB, // keys |
d5260eeb | 21 | @Meta(info = "MUST BE 3 chars long", description = "Enter key") |
f06c8100 | 22 | KEY_ENTER, // |
d5260eeb | 23 | @Meta(description = "Go back to previous screen") |
f06c8100 | 24 | KEY_ACTION_BACK, // |
d5260eeb | 25 | @Meta(description = "Get help text") |
f06c8100 | 26 | KEY_ACTION_HELP, // |
d5260eeb | 27 | @Meta(description = "View the selected card") |
f06c8100 | 28 | KEY_ACTION_VIEW_CARD, // |
d5260eeb | 29 | @Meta(description = "View the selected contact") |
f06c8100 | 30 | KEY_ACTION_VIEW_CONTACT, // |
d5260eeb | 31 | @Meta(description = "Edit the contact") |
f06c8100 | 32 | KEY_ACTION_EDIT_CONTACT, // |
d5260eeb | 33 | @Meta(description = "Edit the contact in RAW mode") |
f06c8100 | 34 | KEY_ACTION_EDIT_CONTACT_RAW, // |
d5260eeb | 35 | @Meta(description = "Edit the RAW field") |
f06c8100 | 36 | KEY_ACTION_EDIT_FIELD, // |
d5260eeb | 37 | @Meta(description = "Save the whole card") |
f06c8100 | 38 | KEY_ACTION_SAVE_CARD, // |
d5260eeb | 39 | @Meta(description = "Delete the selected element") |
f06c8100 | 40 | KEY_ACTION_DELETE, // |
d5260eeb | 41 | @Meta(description = "Filter the displayed contacts") |
f06c8100 | 42 | KEY_ACTION_SEARCH, // |
d5260eeb | 43 | @Meta(info = "we could use: ' ', ┃, │...", description = "Field separator") |
f06c8100 | 44 | DEAULT_FIELD_SEPARATOR, // MainContentList |
d5260eeb | 45 | @Meta(description = "Invert the photo's colours") |
f06c8100 | 46 | KEY_ACTION_INVERT, // |
d5260eeb | 47 | @Meta(description = "Show the photo in 'fullscreen'") |
f06c8100 | 48 | KEY_ACTION_FULLSCREEN, // |
d5260eeb | 49 | @Meta(description = "Switch between the available display formats") |
f06c8100 | 50 | KEY_ACTION_SWITCH_FORMAT, // multi-usage |
d5260eeb | 51 | @Meta(description = "Add a new contact/field") |
f06c8100 | 52 | KEY_ACTION_ADD, // |
d5260eeb | 53 | @Meta(description = "New contact") |
f06c8100 | 54 | ASK_USER_CONTACT_NAME, // |
d5260eeb | 55 | @Meta(info = "%s = contact name", description = "Delete contact") |
f06c8100 | 56 | CONFIRM_USER_DELETE_CONTACT, // |
d5260eeb | 57 | @Meta(info = "%s = contact name", description = "cannot delete a contact") |
f06c8100 | 58 | ERR_CANNOT_DELETE_CONTACT, // |
d5260eeb | 59 | @Meta(description = "The Help message header line") |
f06c8100 | 60 | CLI_HELP, // |
d5260eeb | 61 | @Meta(description = "The Help message line before explaining the different modes") |
f06c8100 | 62 | CLI_HELP_MODES, // |
d5260eeb | 63 | @Meta(description = "The Help message line for help usage") |
f06c8100 | 64 | CLI_HELP_MODE_HELP, // |
d5260eeb | 65 | @Meta(description = "The Help message line for contact manager usage") |
f06c8100 | 66 | CLI_HELP_MODE_CONTACT_MANAGER, // |
d5260eeb | 67 | @Meta(description = "The Help message line for contact manager usage") |
f06c8100 | 68 | CLI_HELP_MODE_I18N, // |
d5260eeb | 69 | @Meta(description = "The Help message line for jVCard server usage") |
f06c8100 | 70 | CLI_HELP_MODE_SERVER, // |
d5260eeb | 71 | @Meta(description = "The Help message line for --load-photo usage") |
f06c8100 | 72 | CLI_HELP_MODE_LOAD_PHOTO, // |
d5260eeb | 73 | @Meta(description = "The Help message line for --save-photo usage") |
f06c8100 | 74 | CLI_HELP_MODE_SAVE_PHOTO, // |
812124d1 NR |
75 | @Meta(description = "The Help message line for --save-to usage") |
76 | CLI_HELP_MODE_SAVE_TO, // | |
d5260eeb | 77 | @Meta(description = "The Help message line for config save usage") |
f06c8100 | 78 | CLI_HELP_MODE_SAVE_CONFIG, // |
d5260eeb | 79 | @Meta(description = "The Help message line before the list of options") |
f06c8100 | 80 | CLI_HELP_OPTIONS, // |
d5260eeb | 81 | @Meta(description = "The Help message line for: --") |
f06c8100 | 82 | CLI_HELP_DD, // |
d5260eeb | 83 | @Meta(description = "The Help message line for: --") |
f06c8100 | 84 | CLI_HELP_LANG, // |
d5260eeb | 85 | @Meta(description = "The Help message line for: --") |
f06c8100 | 86 | CLI_HELP_GUI, // |
d5260eeb | 87 | @Meta(description = "The Help message line for: --") |
f06c8100 | 88 | CLI_HELP_TUI, // |
d5260eeb | 89 | @Meta(description = "The Help message line for: --") |
f06c8100 | 90 | CLI_HELP_NOUTF_OPTION, // |
d5260eeb | 91 | @Meta(description = "The Help message line for: --") |
f06c8100 | 92 | CLI_HELP_CONFIG, // |
d5260eeb | 93 | @Meta(description = "The Help message footer about files and jvcard:// links") |
f06c8100 | 94 | CLI_HELP_FOOTER, // |
d5260eeb | 95 | @Meta(info = "%s = the error", description = "Syntax error: SOME TEXT") |
f06c8100 | 96 | CLI_SERR, // |
d5260eeb | 97 | @Meta(description = "More than one mode given") |
f06c8100 | 98 | CLI_SERR_MODES, // |
d5260eeb | 99 | @Meta(description = "--lang is required") |
f06c8100 | 100 | CLI_SERR_NOLANG, // |
d5260eeb | 101 | @Meta(description = "The dir is required") |
f06c8100 | 102 | CLI_SERR_NODIR, // |
d5260eeb | 103 | @Meta(description = "The port is required") |
f06c8100 | 104 | CLI_SERR_NOPORT, // |
d5260eeb | 105 | @Meta(description = "The format is required") |
f06c8100 | 106 | CLI_SERR_NOFORMAT, // |
d5260eeb | 107 | @Meta(info = "%s = bad port", description = "The port is not valid") |
f06c8100 | 108 | CLI_SERR_BADPORT, // |
d5260eeb | 109 | @Meta(info = "%s = mode", description = "Card files are not supported in mode %s") |
f06c8100 | 110 | CLI_SERR_CANNOT_CARDS, // |
d5260eeb | 111 | @Meta(info = "%s = the error", description = "Error: SOME TEXT") |
f06c8100 | 112 | CLI_ERR, // |
d5260eeb | 113 | @Meta(description = "No files given") |
f06c8100 | 114 | CLI_ERR_NOFILES, // |
d5260eeb | 115 | @Meta(info = "%s = dir", description = "Cannot create conf dir %s") |
f06c8100 | 116 | CLI_ERR_CANNOT_CREATE_CONFDIR, // |
d5260eeb | 117 | @Meta(description = "Remoting not available") |
f06c8100 | 118 | CLI_ERR_NO_REMOTING, // |
d5260eeb | 119 | @Meta(description = "TUI not available") |
f06c8100 | 120 | CLI_ERR_NO_TUI, // |
d5260eeb | 121 | @Meta(info = "%s = dir", description = "Cannot create/update language in dir %s") |
f06c8100 | 122 | CLI_ERR_CANNOT_CREATE_LANG, // |
d5260eeb | 123 | @Meta(info = "%s = card", description = "Cannot open card %s") |
f06c8100 NR |
124 | CLI_ERR_CANNOT_OPEN, // |
125 | @Meta(info = "%s = contact FN", description = "Cannot save photo of contact %s") | |
126 | CLI_ERR_CANNOT_SAVE_PHOTO, // | |
d5260eeb | 127 | @Meta(description = "Cannot start the program with the given cards") |
f06c8100 | 128 | CLI_ERR_CANNOT_START, // |
d5260eeb | 129 | } |