You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CLIText.java 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. package org.eclipse.jgit.pgm.internal;
  45. import java.text.MessageFormat;
  46. import org.eclipse.jgit.nls.NLS;
  47. import org.eclipse.jgit.nls.TranslationBundle;
  48. /**
  49. * Translation bundle for JGit command line interface
  50. */
  51. public class CLIText extends TranslationBundle {
  52. /**
  53. * @return an instance of this translation bundle
  54. */
  55. public static CLIText get() {
  56. return NLS.getBundleFor(CLIText.class);
  57. }
  58. /**
  59. * Format the given line for using the format defined by {@link #lineFormat}
  60. * ("# " by default).
  61. *
  62. * @param line
  63. * the line to format
  64. * @return the formatted line
  65. * @since 2.2
  66. */
  67. public static String formatLine(String line) {
  68. return MessageFormat.format(get().lineFormat, line);
  69. }
  70. // @formatter:off
  71. /***/ public String alreadyOnBranch;
  72. /***/ public String alreadyUpToDate;
  73. /***/ public String answerNo;
  74. /***/ public String answerYes;
  75. /***/ public String authorInfo;
  76. /***/ public String averageMSPerRead;
  77. /***/ public String branchAlreadyExists;
  78. /***/ public String branchCreatedFrom;
  79. /***/ public String branchDetachedHEAD;
  80. /***/ public String branchIsNotAnAncestorOfYourCurrentHEAD;
  81. /***/ public String branchNotFound;
  82. /***/ public String cacheTreePathInfo;
  83. /***/ public String configFileNotFound;
  84. /***/ public String cannotBeRenamed;
  85. /***/ public String cannotChekoutNoHeadsAdvertisedByRemote;
  86. /***/ public String cannotCombineSquashWithNoff;
  87. /***/ public String cannotCreateCommand;
  88. /***/ public String cannotCreateOutputStream;
  89. /***/ public String cannotDeatchHEAD;
  90. /***/ public String cannotDeleteFile;
  91. /***/ public String cannotDeleteTheBranchWhichYouAreCurrentlyOn;
  92. /***/ public String cannotGuessLocalNameFrom;
  93. /***/ public String cannotLock;
  94. /***/ public String cannotMergeDetachedHead;
  95. /***/ public String cannotReadBecause;
  96. /***/ public String cannotReadPackageInformation;
  97. /***/ public String cannotRenameDetachedHEAD;
  98. /***/ public String cannotResolve;
  99. /***/ public String cannotSetupConsole;
  100. /***/ public String cannotUseObjectsWithGlog;
  101. /***/ public String cantFindGitDirectory;
  102. /***/ public String cantWrite;
  103. /***/ public String changesNotStagedForCommit;
  104. /***/ public String changesToBeCommitted;
  105. /***/ public String checkoutConflict;
  106. /***/ public String checkoutConflictPathLine;
  107. /***/ public String clonedEmptyRepository;
  108. /***/ public String cloningInto;
  109. /***/ public String commitLabel;
  110. /***/ public String conflictingUsageOf_git_dir_andArguments;
  111. /***/ public String couldNotCreateBranch;
  112. /***/ public String dateInfo;
  113. /***/ public String deletedBranch;
  114. /***/ public String deletedRemoteBranch;
  115. /***/ public String doesNotExist;
  116. /***/ public String dontOverwriteLocalChanges;
  117. /***/ public String everythingUpToDate;
  118. /***/ public String expectedNumberOfbytes;
  119. /***/ public String exporting;
  120. /***/ public String failedToCommitIndex;
  121. /***/ public String failedToLockIndex;
  122. /***/ public String failedToLockTag;
  123. /***/ public String fatalError;
  124. /***/ public String fatalThisProgramWillDestroyTheRepository;
  125. /***/ public String fileIsRequired;
  126. /***/ public String ffNotPossibleAborting;
  127. /***/ public String forcedUpdate;
  128. /***/ public String fromURI;
  129. /***/ public String initializedEmptyGitRepositoryIn;
  130. /***/ public String invalidHttpProxyOnlyHttpSupported;
  131. /***/ public String jgitVersion;
  132. /***/ public String lineFormat;
  133. /***/ public String listeningOn;
  134. /***/ public String mergeCheckoutConflict;
  135. /***/ public String mergeConflict;
  136. /***/ public String mergeFailed;
  137. /***/ public String mergeCheckoutFailed;
  138. /***/ public String mergeMadeBy;
  139. /***/ public String mergedSquashed;
  140. /***/ public String mergeWentWellStoppedBeforeCommitting;
  141. /***/ public String metaVar_KEY;
  142. /***/ public String metaVar_archiveFormat;
  143. /***/ public String metaVar_archivePrefix;
  144. /***/ public String metaVar_arg;
  145. /***/ public String metaVar_author;
  146. /***/ public String metaVar_bucket;
  147. /***/ public String metaVar_command;
  148. /***/ public String metaVar_commandDetail;
  149. /***/ public String metaVar_commitOrTag;
  150. /***/ public String metaVar_commitPaths;
  151. /***/ public String metaVar_commitish;
  152. /***/ public String metaVar_configFile;
  153. /***/ public String metaVar_connProp;
  154. /***/ public String metaVar_diffAlg;
  155. /***/ public String metaVar_directory;
  156. /***/ public String metaVar_file;
  157. /***/ public String metaVar_filepattern;
  158. /***/ public String metaVar_gitDir;
  159. /***/ public String metaVar_hostName;
  160. /***/ public String metaVar_linesOfContext;
  161. /***/ public String metaVar_message;
  162. /***/ public String metaVar_n;
  163. /***/ public String metaVar_name;
  164. /***/ public String metaVar_object;
  165. /***/ public String metaVar_op;
  166. /***/ public String metaVar_pass;
  167. /***/ public String metaVar_path;
  168. /***/ public String metaVar_paths;
  169. /***/ public String metaVar_port;
  170. /***/ public String metaVar_ref;
  171. /***/ public String metaVar_refs;
  172. /***/ public String metaVar_refspec;
  173. /***/ public String metaVar_remoteName;
  174. /***/ public String metaVar_seconds;
  175. /***/ public String metaVar_service;
  176. /***/ public String metaVar_treeish;
  177. /***/ public String metaVar_uriish;
  178. /***/ public String metaVar_url;
  179. /***/ public String metaVar_user;
  180. /***/ public String metaVar_version;
  181. /***/ public String mostCommonlyUsedCommandsAre;
  182. /***/ public String needApprovalToDestroyCurrentRepository;
  183. /***/ public String noGitRepositoryConfigured;
  184. /***/ public String noNamesFound;
  185. /***/ public String noSuchFile;
  186. /***/ public String noSuchRemoteRef;
  187. /***/ public String noTREESectionInIndex;
  188. /***/ public String nonFastForward;
  189. /***/ public String noSystemConsoleAvailable;
  190. /***/ public String notABranch;
  191. /***/ public String notACommit;
  192. /***/ public String notAGitRepository;
  193. /***/ public String notAJgitCommand;
  194. /***/ public String notARevision;
  195. /***/ public String notATree;
  196. /***/ public String notAValidRefName;
  197. /***/ public String notAnIndexFile;
  198. /***/ public String notAnObject;
  199. /***/ public String notFound;
  200. /***/ public String notOnAnyBranch;
  201. /***/ public String noteObjectTooLargeToPrint;
  202. /***/ public String nothingToSquash;
  203. /***/ public String onBranchToBeBorn;
  204. /***/ public String onBranch;
  205. /***/ public String onlyOneMetaVarExpectedIn;
  206. /***/ public String onlyOneOfIncludeOnlyAllInteractiveCanBeUsed;
  207. /***/ public String password;
  208. /***/ public String pathspecDidNotMatch;
  209. /***/ public String pushTo;
  210. /***/ public String pathsRequired;
  211. /***/ public String refDoesNotExistOrNoCommit;
  212. /***/ public String remoteMessage;
  213. /***/ public String remoteRefObjectChangedIsNotExpectedOne;
  214. /***/ public String remoteSideDoesNotSupportDeletingRefs;
  215. /***/ public String repaint;
  216. /***/ public String serviceNotSupported;
  217. /***/ public String skippingObject;
  218. /***/ public String statusFileListFormat;
  219. /***/ public String statusFileListFormatWithPrefix;
  220. /***/ public String statusFileListFormatUnmerged;
  221. /***/ public String statusModified;
  222. /***/ public String statusNewFile;
  223. /***/ public String statusRemoved;
  224. /***/ public String statusBothDeleted;
  225. /***/ public String statusAddedByUs;
  226. /***/ public String statusDeletedByThem;
  227. /***/ public String statusAddedByThem;
  228. /***/ public String statusDeletedByUs;
  229. /***/ public String statusBothAdded;
  230. /***/ public String statusBothModified;
  231. /***/ public String switchedToNewBranch;
  232. /***/ public String switchedToBranch;
  233. /***/ public String tagAlreadyExists;
  234. /***/ public String tagLabel;
  235. /***/ public String taggerInfo;
  236. /***/ public String timeInMilliSeconds;
  237. /***/ public String tooManyRefsGiven;
  238. /***/ public String treeIsRequired;
  239. /***/ public char[] unknownIoErrorStdout;
  240. /***/ public String unknownMergeStrategy;
  241. /***/ public String unmergedPaths;
  242. /***/ public String unsupportedOperation;
  243. /***/ public String untrackedFiles;
  244. /***/ public String updating;
  245. /***/ public String usernameFor;
  246. }