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