incorrectLONG_OBJECT_ID_LENGTH=Incorrect LONG_OBJECT_ID_LENGTH.
invalidLongId=Invalid id: {0}
invalidLongIdLength=Invalid id length {0}; should be {1}
-requiredHashFunctionNotAvailable=Required hash function {0} not available.
\ No newline at end of file
+requiredHashFunctionNotAvailable=Required hash function {0} not available.
+repositoryNotFound=Repository {0} not found
+repositoryReadOnly=Repository {0} is read-only
\ No newline at end of file
package org.eclipse.jgit.lfs.errors;
+import java.text.MessageFormat;
+
+import org.eclipse.jgit.lfs.internal.LfsText;
+
/**
* Thrown when the repository does not exist for the user.
*
*
*/
public LfsRepositoryNotFound(String name) {
- super("repository " + name + " not found"); //$NON-NLS-1$ //$NON-NLS-2$
+ super(MessageFormat.format(LfsText.get().repositoryNotFound, name));
}
}
package org.eclipse.jgit.lfs.errors;
+import java.text.MessageFormat;
+
+import org.eclipse.jgit.lfs.internal.LfsText;
+
/**
* Thrown when the user has read, but not write access. Only applicable when the
* operation in the request is "upload".
* @param name
*/
public LfsRepositoryReadOnly(String name) {
- super("repository " + name + "is read-only"); //$NON-NLS-1$ //$NON-NLS-2$
+ super(MessageFormat.format(LfsText.get().repositoryReadOnly, name));
}
}
/***/ public String invalidLongId;
/***/ public String invalidLongIdLength;
/***/ public String requiredHashFunctionNotAvailable;
+ /***/ public String repositoryNotFound;
+ /***/ public String repositoryReadOnly;
}