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