View Javadoc
1   /*
2    * Copyright (C) 2010, 2013 Sasa Zivkov <sasa.zivkov@sap.com>
3    * Copyright (C) 2013, Obeo
4    * and other copyright owners as documented in the project's IP log.
5    *
6    * This program and the accompanying materials are made available
7    * under the terms of the Eclipse Distribution License v1.0 which
8    * accompanies this distribution, is reproduced below, and is
9    * available at http://www.eclipse.org/org/documents/edl-v10.php
10   *
11   * All rights reserved.
12   *
13   * Redistribution and use in source and binary forms, with or
14   * without modification, are permitted provided that the following
15   * conditions are met:
16   *
17   * - Redistributions of source code must retain the above copyright
18   *   notice, this list of conditions and the following disclaimer.
19   *
20   * - Redistributions in binary form must reproduce the above
21   *   copyright notice, this list of conditions and the following
22   *   disclaimer in the documentation and/or other materials provided
23   *   with the distribution.
24   *
25   * - Neither the name of the Eclipse Foundation, Inc. nor the
26   *   names of its contributors may be used to endorse or promote
27   *   products derived from this software without specific prior
28   *   written permission.
29   *
30   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
31   * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
32   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
33   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
35   * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
37   * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38   * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
42   * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43   */
44  
45  package org.eclipse.jgit.pgm.internal;
46  
47  import java.text.MessageFormat;
48  
49  import org.eclipse.jgit.nls.NLS;
50  import org.eclipse.jgit.nls.TranslationBundle;
51  
52  /**
53   * Translation bundle for JGit command line interface
54   */
55  public class CLIText extends TranslationBundle {
56  
57  	/**
58  	 * @return an instance of this translation bundle
59  	 */
60  	public static CLIText get() {
61  		return NLS.getBundleFor(CLIText.class);
62  	}
63  
64  	/**
65  	 * Format the given line for using the format defined by {@link #lineFormat}
66  	 * ("# " by default).
67  	 *
68  	 * @param line
69  	 *            the line to format
70  	 * @return the formatted line
71  	 * @since 2.2
72  	 */
73  	public static String formatLine(String line) {
74  		return MessageFormat.format(get().lineFormat, line);
75  	}
76  
77  	/**
78  	 * Format the given argument as fatal error using the format defined by
79  	 * {@link #fatalError} ("fatal: " by default).
80  	 *
81  	 * @param message
82  	 *            the message to format
83  	 * @return the formatted line
84  	 * @since 4.2
85  	 */
86  	public static String fatalError(String message) {
87  		return MessageFormat.format(get().fatalError, message);
88  	}
89  
90  	// @formatter:off
91  	/***/ public String alreadyOnBranch;
92  	/***/ public String alreadyUpToDate;
93  	/***/ public String answerNo;
94  	/***/ public String answerYes;
95  	/***/ public String authorInfo;
96  	/***/ public String averageMSPerRead;
97  	/***/ public String branchAlreadyExists;
98  	/***/ public String branchCreatedFrom;
99  	/***/ public String branchDetachedHEAD;
100 	/***/ public String branchIsNotAnAncestorOfYourCurrentHEAD;
101 	/***/ public String branchNameRequired;
102 	/***/ public String branchNotFound;
103 	/***/ public String cacheTreePathInfo;
104 	/***/ public String configFileNotFound;
105 	/***/ public String cannotBeRenamed;
106 	/***/ public String cannotChekoutNoHeadsAdvertisedByRemote;
107 	/***/ public String cannotCombineSquashWithNoff;
108 	/***/ public String cannotCreateCommand;
109 	/***/ public String cannotCreateOutputStream;
110 	/***/ public String cannotDeatchHEAD;
111 	/***/ public String cannotDeleteFile;
112 	/***/ public String cannotDeleteTheBranchWhichYouAreCurrentlyOn;
113 	/***/ public String cannotGuessLocalNameFrom;
114 	/***/ public String cannotLock;
115 	/***/ public String cannotMergeDetachedHead;
116 	/***/ public String cannotReadBecause;
117 	/***/ public String cannotReadPackageInformation;
118 	/***/ public String cannotRenameDetachedHEAD;
119 	/***/ public String cannotResolve;
120 	/***/ public String cannotSetupConsole;
121 	/***/ public String cannotUseObjectsWithGlog;
122 	/***/ public String cantFindGitDirectory;
123 	/***/ public String cantWrite;
124 	/***/ public String changesNotStagedForCommit;
125 	/***/ public String changesToBeCommitted;
126 	/***/ public String checkoutConflict;
127 	/***/ public String checkoutConflictPathLine;
128 	/***/ public String clonedEmptyRepository;
129 	/***/ public String cloningInto;
130 	/***/ public String commitLabel;
131 	/***/ public String conflictingUsageOf_git_dir_andArguments;
132 	/***/ public String couldNotCreateBranch;
133 	/***/ public String dateInfo;
134 	/***/ public String deletedBranch;
135 	/***/ public String deletedRemoteBranch;
136 	/***/ public String doesNotExist;
137 	/***/ public String dontOverwriteLocalChanges;
138 	/***/ public String everythingUpToDate;
139 	/***/ public String expectedNumberOfbytes;
140 	/***/ public String exporting;
141 	/***/ public String failedToCommitIndex;
142 	/***/ public String failedToLockIndex;
143 	/***/ public String failedToLockTag;
144 	/***/ public String fatalError;
145 	/***/ public String fatalThisProgramWillDestroyTheRepository;
146 	/***/ public String fileIsRequired;
147 	/***/ public String ffNotPossibleAborting;
148 	/***/ public String forcedUpdate;
149 	/***/ public String fromURI;
150 	/***/ public String initializedEmptyGitRepositoryIn;
151 	/***/ public String invalidHttpProxyOnlyHttpSupported;
152 	/***/ public String jgitVersion;
153 	/***/ public String lineFormat;
154 	/***/ public String listeningOn;
155 	/***/ public String mergeCheckoutConflict;
156 	/***/ public String mergeConflict;
157 	/***/ public String mergeFailed;
158 	/***/ public String mergeCheckoutFailed;
159 	/***/ public String mergeMadeBy;
160 	/***/ public String mergedSquashed;
161 	/***/ public String mergeWentWellStoppedBeforeCommitting;
162 	/***/ public String metaVar_KEY;
163 	/***/ public String metaVar_archiveFormat;
164 	/***/ public String metaVar_archivePrefix;
165 	/***/ public String metaVar_arg;
166 	/***/ public String metaVar_author;
167 	/***/ public String metaVar_bucket;
168 	/***/ public String metaVar_command;
169 	/***/ public String metaVar_commandDetail;
170 	/***/ public String metaVar_commitOrTag;
171 	/***/ public String metaVar_commitPaths;
172 	/***/ public String metaVar_commitish;
173 	/***/ public String metaVar_configFile;
174 	/***/ public String metaVar_connProp;
175 	/***/ public String metaVar_diffAlg;
176 	/***/ public String metaVar_directory;
177 	/***/ public String metaVar_file;
178 	/***/ public String metaVar_filepattern;
179 	/***/ public String metaVar_gitDir;
180 	/***/ public String metaVar_hostName;
181 	/***/ public String metaVar_linesOfContext;
182 	/***/ public String metaVar_message;
183 	/***/ public String metaVar_n;
184 	/***/ public String metaVar_name;
185 	/***/ public String metaVar_object;
186 	/***/ public String metaVar_op;
187 	/***/ public String metaVar_pass;
188 	/***/ public String metaVar_path;
189 	/***/ public String metaVar_paths;
190 	/***/ public String metaVar_port;
191 	/***/ public String metaVar_ref;
192 	/***/ public String metaVar_refs;
193 	/***/ public String metaVar_refspec;
194 	/***/ public String metaVar_remoteName;
195 	/***/ public String metaVar_seconds;
196 	/***/ public String metaVar_service;
197 	/***/ public String metaVar_treeish;
198 	/***/ public String metaVar_uriish;
199 	/***/ public String metaVar_url;
200 	/***/ public String metaVar_user;
201 	/***/ public String metaVar_values;
202 	/***/ public String metaVar_version;
203 	/***/ public String mostCommonlyUsedCommandsAre;
204 	/***/ public String needApprovalToDestroyCurrentRepository;
205 	/***/ public String needSingleRevision;
206 	/***/ public String noGitRepositoryConfigured;
207 	/***/ public String noNamesFound;
208 	/***/ public String noSuchFile;
209 	/***/ public String noSuchRemoteRef;
210 	/***/ public String noTREESectionInIndex;
211 	/***/ public String nonFastForward;
212 	/***/ public String noSystemConsoleAvailable;
213 	/***/ public String notABranch;
214 	/***/ public String notACommit;
215 	/***/ public String notAGitRepository;
216 	/***/ public String notAJgitCommand;
217 	/***/ public String notARevision;
218 	/***/ public String notATree;
219 	/***/ public String notAValidRefName;
220 	/***/ public String notAValidCommitName;
221 	/***/ public String notAnIndexFile;
222 	/***/ public String notAnObject;
223 	/***/ public String notFound;
224 	/***/ public String notOnAnyBranch;
225 	/***/ public String noteObjectTooLargeToPrint;
226 	/***/ public String nothingToSquash;
227 	/***/ public String onBranchToBeBorn;
228 	/***/ public String onBranch;
229 	/***/ public String onlyOneMetaVarExpectedIn;
230 	/***/ public String onlyOneOfIncludeOnlyAllInteractiveCanBeUsed;
231 	/***/ public String password;
232 	/***/ public String pathspecDidNotMatch;
233 	/***/ public String pushTo;
234 	/***/ public String pathsRequired;
235 	/***/ public String refDoesNotExistOrNoCommit;
236 	/***/ public String remoteMessage;
237 	/***/ public String remoteRefObjectChangedIsNotExpectedOne;
238 	/***/ public String remoteSideDoesNotSupportDeletingRefs;
239 	/***/ public String repaint;
240 	/***/ public String serviceNotSupported;
241 	/***/ public String skippingObject;
242 	/***/ public String statusFileListFormat;
243 	/***/ public String statusFileListFormatWithPrefix;
244 	/***/ public String statusFileListFormatUnmerged;
245 	/***/ public String statusModified;
246 	/***/ public String statusNewFile;
247 	/***/ public String statusRemoved;
248 	/***/ public String statusBothDeleted;
249 	/***/ public String statusAddedByUs;
250 	/***/ public String statusDeletedByThem;
251 	/***/ public String statusAddedByThem;
252 	/***/ public String statusDeletedByUs;
253 	/***/ public String statusBothAdded;
254 	/***/ public String statusBothModified;
255 	/***/ public String switchedToNewBranch;
256 	/***/ public String switchedToBranch;
257 	/***/ public String tagAlreadyExists;
258 	/***/ public String tagLabel;
259 	/***/ public String taggerInfo;
260 	/***/ public String timeInMilliSeconds;
261 	/***/ public String tooManyRefsGiven;
262 	/***/ public String treeIsRequired;
263 	/***/ public char[] unknownIoErrorStdout;
264 	/***/ public String unknownMergeStrategy;
265 	/***/ public String unknownSubcommand;
266 	/***/ public String unmergedPaths;
267 	/***/ public String unsupportedOperation;
268 	/***/ public String untrackedFiles;
269 	/***/ public String updating;
270 	/***/ public String usernameFor;
271 }