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.3KB

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