Tag som non-localizable strings with NON-NLS
Change-Id: I6882c98c2785f38241a81ba5b93892aab79690a5
This commit is contained in:
parent
25fe20b2db
commit
4ceb25b602
|
@ -70,11 +70,11 @@ private static final void register(String name, ArchiveCommand.Format<?> fmt) {
|
||||||
* Not thread-safe.
|
* Not thread-safe.
|
||||||
*/
|
*/
|
||||||
public static void registerAll() {
|
public static void registerAll() {
|
||||||
register("tar", new TarFormat());
|
register("tar", new TarFormat()); //$NON-NLS-1$
|
||||||
register("tgz", new TgzFormat());
|
register("tgz", new TgzFormat()); //$NON-NLS-1$
|
||||||
register("tbz2", new Tbz2Format());
|
register("tbz2", new Tbz2Format()); //$NON-NLS-1$
|
||||||
register("txz", new TxzFormat());
|
register("txz", new TxzFormat()); //$NON-NLS-1$
|
||||||
register("zip", new ZipFormat());
|
register("zip", new ZipFormat()); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -62,8 +62,8 @@
|
||||||
* Unix TAR format (ustar + some PAX extensions).
|
* Unix TAR format (ustar + some PAX extensions).
|
||||||
*/
|
*/
|
||||||
public class TarFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
public class TarFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
||||||
private static final List<String> SUFFIXES =
|
private static final List<String> SUFFIXES = Collections
|
||||||
Collections.unmodifiableList(Arrays.asList(".tar"));
|
.unmodifiableList(Arrays.asList(".tar")); //$NON-NLS-1$
|
||||||
|
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
|
||||||
TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$
|
TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$
|
||||||
|
|
|
@ -58,9 +58,8 @@
|
||||||
* bzip2-compressed tarball (tar.bz2) format.
|
* bzip2-compressed tarball (tar.bz2) format.
|
||||||
*/
|
*/
|
||||||
public class Tbz2Format implements ArchiveCommand.Format<ArchiveOutputStream> {
|
public class Tbz2Format implements ArchiveCommand.Format<ArchiveOutputStream> {
|
||||||
private static final List<String> SUFFIXES =
|
private static final List<String> SUFFIXES = Collections
|
||||||
Collections.unmodifiableList(Arrays.asList(
|
.unmodifiableList(Arrays.asList(".tar.bz2", ".tbz", ".tbz2")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
".tar.bz2", ".tbz", ".tbz2"));
|
|
||||||
|
|
||||||
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
||||||
|
|
||||||
|
|
|
@ -58,9 +58,8 @@
|
||||||
* gzip-compressed tarball (tar.gz) format.
|
* gzip-compressed tarball (tar.gz) format.
|
||||||
*/
|
*/
|
||||||
public class TgzFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
public class TgzFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
||||||
private static final List<String> SUFFIXES =
|
private static final List<String> SUFFIXES = Collections
|
||||||
Collections.unmodifiableList(Arrays.asList(
|
.unmodifiableList(Arrays.asList(".tar.gz", ".tgz")); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
".tar.gz", ".tgz"));
|
|
||||||
|
|
||||||
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
||||||
|
|
||||||
|
|
|
@ -58,9 +58,8 @@
|
||||||
* Xz-compressed tar (tar.xz) format.
|
* Xz-compressed tar (tar.xz) format.
|
||||||
*/
|
*/
|
||||||
public class TxzFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
public class TxzFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
||||||
private static final List<String> SUFFIXES =
|
private static final List<String> SUFFIXES = Collections
|
||||||
Collections.unmodifiableList(Arrays.asList(
|
.unmodifiableList(Arrays.asList(".tar.xz", ".txz")); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
".tar.xz", ".txz"));
|
|
||||||
|
|
||||||
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,8 @@
|
||||||
* PKWARE's ZIP format.
|
* PKWARE's ZIP format.
|
||||||
*/
|
*/
|
||||||
public class ZipFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
public class ZipFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
|
||||||
private static final List<String> SUFFIXES =
|
private static final List<String> SUFFIXES = Collections
|
||||||
Collections.unmodifiableList(Arrays.asList(".zip"));
|
.unmodifiableList(Arrays.asList(".zip")); //$NON-NLS-1$
|
||||||
|
|
||||||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
|
||||||
return new ZipArchiveOutputStream(s);
|
return new ZipArchiveOutputStream(s);
|
||||||
|
|
|
@ -191,7 +191,7 @@ public MyOptionDef(OptionDef o) {
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (metaVar() == null)
|
if (metaVar() == null)
|
||||||
return "ARG";
|
return "ARG"; //$NON-NLS-1$
|
||||||
try {
|
try {
|
||||||
Field field = CLIText.class.getField(metaVar());
|
Field field = CLIText.class.getField(metaVar());
|
||||||
String ret = field.get(CLIText.get()).toString();
|
String ret = field.get(CLIText.get()).toString();
|
||||||
|
|
|
@ -267,7 +267,7 @@ public ArchiveCommand(Repository repo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private <T extends Closeable> OutputStream writeArchive(Format<T> fmt) {
|
private <T extends Closeable> OutputStream writeArchive(Format<T> fmt) {
|
||||||
final String pfx = prefix == null ? "" : prefix;
|
final String pfx = prefix == null ? "" : prefix; //$NON-NLS-1$
|
||||||
final TreeWalk walk = new TreeWalk(repo);
|
final TreeWalk walk = new TreeWalk(repo);
|
||||||
try {
|
try {
|
||||||
final T outa = fmt.createArchiveOutputStream(out);
|
final T outa = fmt.createArchiveOutputStream(out);
|
||||||
|
|
|
@ -134,7 +134,7 @@ public GitDateFormatter(Format format) {
|
||||||
Locale.US);
|
Locale.US);
|
||||||
break;
|
break;
|
||||||
case LOCAL:
|
case LOCAL:
|
||||||
dateTimeInstance = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy",
|
dateTimeInstance = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", //$NON-NLS-1$
|
||||||
Locale.US);
|
Locale.US);
|
||||||
break;
|
break;
|
||||||
case RFC:
|
case RFC:
|
||||||
|
|
|
@ -123,7 +123,7 @@ enum ParseableSimpleDateFormat {
|
||||||
SHORT_WITH_DOTS("yyyy.MM.dd"), // //$NON-NLS-1$
|
SHORT_WITH_DOTS("yyyy.MM.dd"), // //$NON-NLS-1$
|
||||||
SHORT_WITH_SLASH("MM/dd/yyyy"), // //$NON-NLS-1$
|
SHORT_WITH_SLASH("MM/dd/yyyy"), // //$NON-NLS-1$
|
||||||
DEFAULT("EEE MMM dd HH:mm:ss yyyy Z"), // //$NON-NLS-1$
|
DEFAULT("EEE MMM dd HH:mm:ss yyyy Z"), // //$NON-NLS-1$
|
||||||
LOCAL("EEE MMM dd HH:mm:ss yyyy");
|
LOCAL("EEE MMM dd HH:mm:ss yyyy"); //$NON-NLS-1$
|
||||||
|
|
||||||
String formatStr;
|
String formatStr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue