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  	// @formatter:off
78  	/***/ public String alreadyOnBranch;
79  	/***/ public String alreadyUpToDate;
80  	/***/ public String answerNo;
81  	/***/ public String answerYes;
82  	/***/ public String authorInfo;
83  	/***/ public String averageMSPerRead;
84  	/***/ public String branchAlreadyExists;
85  	/***/ public String branchCreatedFrom;
86  	/***/ public String branchDetachedHEAD;
87  	/***/ public String branchIsNotAnAncestorOfYourCurrentHEAD;
88  	/***/ public String branchNotFound;
89  	/***/ public String cacheTreePathInfo;
90  	/***/ public String configFileNotFound;
91  	/***/ public String cannotBeRenamed;
92  	/***/ public String cannotChekoutNoHeadsAdvertisedByRemote;
93  	/***/ public String cannotCombineSquashWithNoff;
94  	/***/ public String cannotCreateCommand;
95  	/***/ public String cannotCreateOutputStream;
96  	/***/ public String cannotDeatchHEAD;
97  	/***/ public String cannotDeleteFile;
98  	/***/ public String cannotDeleteTheBranchWhichYouAreCurrentlyOn;
99  	/***/ public String cannotGuessLocalNameFrom;
100 	/***/ public String cannotLock;
101 	/***/ public String cannotMergeDetachedHead;
102 	/***/ public String cannotReadBecause;
103 	/***/ public String cannotReadPackageInformation;
104 	/***/ public String cannotRenameDetachedHEAD;
105 	/***/ public String cannotResolve;
106 	/***/ public String cannotSetupConsole;
107 	/***/ public String cannotUseObjectsWithGlog;
108 	/***/ public String cantFindGitDirectory;
109 	/***/ public String cantWrite;
110 	/***/ public String changesNotStagedForCommit;
111 	/***/ public String changesToBeCommitted;
112 	/***/ public String checkoutConflict;
113 	/***/ public String checkoutConflictPathLine;
114 	/***/ public String clonedEmptyRepository;
115 	/***/ public String cloningInto;
116 	/***/ public String commitLabel;
117 	/***/ public String conflictingUsageOf_git_dir_andArguments;
118 	/***/ public String couldNotCreateBranch;
119 	/***/ public String dateInfo;
120 	/***/ public String deletedBranch;
121 	/***/ public String deletedRemoteBranch;
122 	/***/ public String doesNotExist;
123 	/***/ public String dontOverwriteLocalChanges;
124 	/***/ public String everythingUpToDate;
125 	/***/ public String expectedNumberOfbytes;
126 	/***/ public String exporting;
127 	/***/ public String failedToCommitIndex;
128 	/***/ public String failedToLockIndex;
129 	/***/ public String failedToLockTag;
130 	/***/ public String fatalError;
131 	/***/ public String fatalThisProgramWillDestroyTheRepository;
132 	/***/ public String fileIsRequired;
133 	/***/ public String ffNotPossibleAborting;
134 	/***/ public String forcedUpdate;
135 	/***/ public String fromURI;
136 	/***/ public String initializedEmptyGitRepositoryIn;
137 	/***/ public String invalidHttpProxyOnlyHttpSupported;
138 	/***/ public String jgitVersion;
139 	/***/ public String lineFormat;
140 	/***/ public String listeningOn;
141 	/***/ public String mergeCheckoutConflict;
142 	/***/ public String mergeConflict;
143 	/***/ public String mergeFailed;
144 	/***/ public String mergeCheckoutFailed;
145 	/***/ public String mergeMadeBy;
146 	/***/ public String mergedSquashed;
147 	/***/ public String mergeWentWellStoppedBeforeCommitting;
148 	/***/ public String metaVar_KEY;
149 	/***/ public String metaVar_archiveFormat;
150 	/***/ public String metaVar_archivePrefix;
151 	/***/ public String metaVar_arg;
152 	/***/ public String metaVar_author;
153 	/***/ public String metaVar_bucket;
154 	/***/ public String metaVar_command;
155 	/***/ public String metaVar_commandDetail;
156 	/***/ public String metaVar_commitOrTag;
157 	/***/ public String metaVar_commitPaths;
158 	/***/ public String metaVar_commitish;
159 	/***/ public String metaVar_configFile;
160 	/***/ public String metaVar_connProp;
161 	/***/ public String metaVar_diffAlg;
162 	/***/ public String metaVar_directory;
163 	/***/ public String metaVar_file;
164 	/***/ public String metaVar_filepattern;
165 	/***/ public String metaVar_gitDir;
166 	/***/ public String metaVar_hostName;
167 	/***/ public String metaVar_linesOfContext;
168 	/***/ public String metaVar_message;
169 	/***/ public String metaVar_n;
170 	/***/ public String metaVar_name;
171 	/***/ public String metaVar_object;
172 	/***/ public String metaVar_op;
173 	/***/ public String metaVar_pass;
174 	/***/ public String metaVar_path;
175 	/***/ public String metaVar_paths;
176 	/***/ public String metaVar_port;
177 	/***/ public String metaVar_ref;
178 	/***/ public String metaVar_refs;
179 	/***/ public String metaVar_refspec;
180 	/***/ public String metaVar_remoteName;
181 	/***/ public String metaVar_seconds;
182 	/***/ public String metaVar_service;
183 	/***/ public String metaVar_treeish;
184 	/***/ public String metaVar_uriish;
185 	/***/ public String metaVar_url;
186 	/***/ public String metaVar_user;
187 	/***/ public String metaVar_version;
188 	/***/ public String mostCommonlyUsedCommandsAre;
189 	/***/ public String needApprovalToDestroyCurrentRepository;
190 	/***/ public String noGitRepositoryConfigured;
191 	/***/ public String noNamesFound;
192 	/***/ public String noSuchFile;
193 	/***/ public String noSuchRemoteRef;
194 	/***/ public String noTREESectionInIndex;
195 	/***/ public String nonFastForward;
196 	/***/ public String noSystemConsoleAvailable;
197 	/***/ public String notABranch;
198 	/***/ public String notACommit;
199 	/***/ public String notAGitRepository;
200 	/***/ public String notAJgitCommand;
201 	/***/ public String notARevision;
202 	/***/ public String notATree;
203 	/***/ public String notAValidRefName;
204 	/***/ public String notAnIndexFile;
205 	/***/ public String notAnObject;
206 	/***/ public String notFound;
207 	/***/ public String notOnAnyBranch;
208 	/***/ public String noteObjectTooLargeToPrint;
209 	/***/ public String nothingToSquash;
210 	/***/ public String onBranchToBeBorn;
211 	/***/ public String onBranch;
212 	/***/ public String onlyOneMetaVarExpectedIn;
213 	/***/ public String onlyOneOfIncludeOnlyAllInteractiveCanBeUsed;
214 	/***/ public String password;
215 	/***/ public String pathspecDidNotMatch;
216 	/***/ public String pushTo;
217 	/***/ public String pathsRequired;
218 	/***/ public String refDoesNotExistOrNoCommit;
219 	/***/ public String remoteMessage;
220 	/***/ public String remoteRefObjectChangedIsNotExpectedOne;
221 	/***/ public String remoteSideDoesNotSupportDeletingRefs;
222 	/***/ public String repaint;
223 	/***/ public String serviceNotSupported;
224 	/***/ public String skippingObject;
225 	/***/ public String statusFileListFormat;
226 	/***/ public String statusFileListFormatWithPrefix;
227 	/***/ public String statusFileListFormatUnmerged;
228 	/***/ public String statusModified;
229 	/***/ public String statusNewFile;
230 	/***/ public String statusRemoved;
231 	/***/ public String statusBothDeleted;
232 	/***/ public String statusAddedByUs;
233 	/***/ public String statusDeletedByThem;
234 	/***/ public String statusAddedByThem;
235 	/***/ public String statusDeletedByUs;
236 	/***/ public String statusBothAdded;
237 	/***/ public String statusBothModified;
238 	/***/ public String switchedToNewBranch;
239 	/***/ public String switchedToBranch;
240 	/***/ public String tagAlreadyExists;
241 	/***/ public String tagLabel;
242 	/***/ public String taggerInfo;
243 	/***/ public String timeInMilliSeconds;
244 	/***/ public String tooManyRefsGiven;
245 	/***/ public String treeIsRequired;
246 	/***/ public char[] unknownIoErrorStdout;
247 	/***/ public String unknownMergeStrategy;
248 	/***/ public String unmergedPaths;
249 	/***/ public String unsupportedOperation;
250 	/***/ public String untrackedFiles;
251 	/***/ public String updating;
252 	/***/ public String usernameFor;
253 }