1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 package org.eclipse.jgit.pgm.internal;
46
47 import java.text.MessageFormat;
48 import java.util.Locale;
49
50 import org.eclipse.jgit.nls.NLS;
51 import org.eclipse.jgit.nls.TranslationBundle;
52 import org.kohsuke.args4j.Localizable;
53
54
55
56
57 public class CLIText extends TranslationBundle {
58
59
60
61
62 public static class Format implements Localizable {
63 final String text;
64
65 Format(String text) {
66 this.text = text;
67 }
68
69 @Override
70 public String formatWithLocale(Locale locale, Object... args) {
71
72 return format(args);
73 }
74
75 @Override
76 public String format(Object... args) {
77 return MessageFormat.format(text, args);
78 }
79 }
80
81
82
83
84
85
86
87
88 public static Format format(String text) {
89 return new Format(text);
90 }
91
92
93
94
95
96
97 public static CLIText get() {
98 return NLS.getBundleFor(CLIText.class);
99 }
100
101
102
103
104
105
106
107
108
109 public static String formatLine(String line) {
110 return MessageFormat.format(get().lineFormat, line);
111 }
112
113
114
115
116
117
118
119
120
121 public static String fatalError(String message) {
122 return MessageFormat.format(get().fatalError, message);
123 }
124
125
126 public String alreadyOnBranch;
127 public String alreadyUpToDate;
128 public String answerNo;
129 public String answerYes;
130 public String authorInfo;
131 public String averageMSPerRead;
132 public String branchAlreadyExists;
133 public String branchCreatedFrom;
134 public String branchDetachedHEAD;
135 public String branchIsNotAnAncestorOfYourCurrentHEAD;
136 public String branchNameRequired;
137 public String branchNotFound;
138 public String cacheTreePathInfo;
139 public String configFileNotFound;
140 public String cannotBeRenamed;
141 public String cannotCombineSquashWithNoff;
142 public String cannotCreateCommand;
143 public String cannotCreateOutputStream;
144 public String cannotDeatchHEAD;
145 public String cannotDeleteFile;
146 public String cannotDeleteTheBranchWhichYouAreCurrentlyOn;
147 public String cannotGuessLocalNameFrom;
148 public String cannotLock;
149 public String cannotReadBecause;
150 public String cannotReadPackageInformation;
151 public String cannotRenameDetachedHEAD;
152 public String cannotResolve;
153 public String cannotSetupConsole;
154 public String cannotUseObjectsWithGlog;
155 public String cantFindGitDirectory;
156 public String cantWrite;
157 public String changesNotStagedForCommit;
158 public String changesToBeCommitted;
159 public String checkingOut;
160 public String checkoutConflict;
161 public String checkoutConflictPathLine;
162 public String cleanRequireForce;
163 public String clonedEmptyRepository;
164 public String cloningInto;
165 public String commitLabel;
166 public String configOnlyListOptionSupported;
167 public String conflictingUsageOf_git_dir_andArguments;
168 public String couldNotCreateBranch;
169 public String dateInfo;
170 public String deletedBranch;
171 public String deletedRemoteBranch;
172 public String doesNotExist;
173 public String dontOverwriteLocalChanges;
174 public String everythingUpToDate;
175 public String expectedNumberOfbytes;
176 public String exporting;
177 public String failedToCommitIndex;
178 public String failedToLockIndex;
179 public String fatalError;
180 public String fatalThisProgramWillDestroyTheRepository;
181 public String fetchingSubmodule;
182 public String fileIsRequired;
183 public String ffNotPossibleAborting;
184 public String forcedUpdate;
185 public String fromURI;
186 public String initializedEmptyGitRepositoryIn;
187 public String invalidHttpProxyOnlyHttpSupported;
188 public String invalidRecurseSubmodulesMode;
189 public String invalidUntrackedFilesMode;
190 public String jgitVersion;
191 public String lfsNoAccessKey;
192 public String lfsNoSecretKey;
193 public String lfsProtocolUrl;
194 public String lfsStoreDirectory;
195 public String lfsStoreUrl;
196 public String lfsUnknownStoreType;
197 public String lineFormat;
198 public String listeningOn;
199 public String mergeCheckoutConflict;
200 public String mergeConflict;
201 public String mergeFailed;
202 public String mergeCheckoutFailed;
203 public String mergeMadeBy;
204 public String mergedSquashed;
205 public String mergeWentWellStoppedBeforeCommitting;
206 public String metaVar_KEY;
207 public String metaVar_archiveFormat;
208 public String metaVar_archivePrefix;
209 public String metaVar_arg;
210 public String metaVar_author;
211 public String metaVar_bucket;
212 public String metaVar_command;
213 public String metaVar_commandDetail;
214 public String metaVar_commitOrTag;
215 public String metaVar_commitPaths;
216 public String metaVar_commitish;
217 public String metaVar_configFile;
218 public String metaVar_connProp;
219 public String metaVar_diffAlg;
220 public String metaVar_directory;
221 public String metaVar_file;
222 public String metaVar_filepattern;
223 public String metaVar_gitDir;
224 public String metaVar_hostName;
225 public String metaVar_lfsStorage;
226 public String metaVar_linesOfContext;
227 public String metaVar_message;
228 public String metaVar_n;
229 public String metaVar_name;
230 public String metaVar_object;
231 public String metaVar_op;
232 public String metaVar_pass;
233 public String metaVar_path;
234 public String metaVar_paths;
235 public String metaVar_pattern;
236 public String metaVar_port;
237 public String metaVar_ref;
238 public String metaVar_refs;
239 public String metaVar_refspec;
240 public String metaVar_remoteName;
241 public String metaVar_s3Bucket;
242 public String metaVar_s3Region;
243 public String metaVar_s3StorageClass;
244 public String metaVar_seconds;
245 public String metaVar_service;
246 public String metaVar_treeish;
247 public String metaVar_uriish;
248 public String metaVar_url;
249 public String metaVar_user;
250 public String metaVar_values;
251 public String metaVar_version;
252 public String mostCommonlyUsedCommandsAre;
253 public String needApprovalToDestroyCurrentRepository;
254 public String needSingleRevision;
255 public String noGitRepositoryConfigured;
256 public String noNamesFound;
257 public String noSuchFile;
258 public String noTREESectionInIndex;
259 public String nonFastForward;
260 public String noSystemConsoleAvailable;
261 public String notABranch;
262 public String notACommit;
263 public String notAGitRepository;
264 public String notAJgitCommand;
265 public String notARevision;
266 public String notATree;
267 public String notAValidRefName;
268 public String notAValidCommitName;
269 public String notAnIndexFile;
270 public String notAnObject;
271 public String notFound;
272 public String notOnAnyBranch;
273 public String noteObjectTooLargeToPrint;
274 public String nothingToSquash;
275 public String onBranchToBeBorn;
276 public String onBranch;
277 public String onlyOneMetaVarExpectedIn;
278 public String onlyOneCommitOptionAllowed;
279 public String password;
280 public String pathspecDidNotMatch;
281 public String pushTo;
282 public String pathsRequired;
283 public String refDoesNotExistOrNoCommit;
284 public String remoteMessage;
285 public String remoteRefObjectChangedIsNotExpectedOne;
286 public String remoteSideDoesNotSupportDeletingRefs;
287 public String removing;
288 public String repaint;
289 public String resetNoMode;
290 public String s3InvalidBucket;
291 public String serviceNotSupported;
292 public String skippingObject;
293 public String statusFileListFormat;
294 public String statusFileListFormatWithPrefix;
295 public String statusFileListFormatUnmerged;
296 public String statusModified;
297 public String statusNewFile;
298 public String statusRemoved;
299 public String statusBothDeleted;
300 public String statusAddedByUs;
301 public String statusDeletedByThem;
302 public String statusAddedByThem;
303 public String statusDeletedByUs;
304 public String statusBothAdded;
305 public String statusBothModified;
306 public String submoduleRegistered;
307 public String switchedToNewBranch;
308 public String switchedToBranch;
309 public String tagAlreadyExists;
310 public String tagLabel;
311 public String tagNotFound;
312 public String taggerInfo;
313 public String timeInMilliSeconds;
314 public String tooManyRefsGiven;
315 public String treeIsRequired;
316 public char[] unknownIoErrorStdout;
317 public String unknownMergeStrategy;
318 public String unknownSubcommand;
319 public String unmergedPaths;
320 public String unsupportedOperation;
321 public String untrackedFiles;
322 public String updating;
323 public String usernameFor;
324 }