Commit 0edc4ddf authored by Florian Schäfer's avatar Florian Schäfer

Fix some i18n strings

parent 2e7b1756
Pipeline #27070897 passed with stages
in 10 minutes and 16 seconds
......@@ -115,7 +115,8 @@ public final class ApiQueryClient {
private static IOException wrapReadDecodeJsonExceptions(final IOException exception, final String apiName) {
final IOException wrapper;
if (exception instanceof JsonParseException || exception instanceof JsonMappingException) {
wrapper = new IOException(I18n.tr("The JSON response from the Wikidata Action API can''t be decoded!"), exception);
// I18n: {0} is the API name
wrapper = new IOException(I18n.tr("The JSON response from the {0} can''t be decoded!", apiName), exception);
} else {
wrapper = new IOException(I18n.tr(
// i18n: {0} is the name of the API, {1} is the name of the Exception, {2} is the message that exception provides
......
......@@ -145,7 +145,7 @@ public class WikidataInfoToggleDialog extends ToggleDialog {
*/
@Override
public void setTitle(final String qID) {
super.setTitle(qID == null ? I18n.tr("Wikidata info") : I18n.tr("Wikidata info: {0}", qID));
super.setTitle(qID == null ? I18n.tr("Wikidata Info") : I18n.tr("Wikidata Info: {0}", qID));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment