Skip to content

Commit 4dd7ff6

Browse files
Praveen7294romani
authored andcommitted
Issue #3110: Remaining hardcoded english in Checker.java is translated in message files
1 parent 17c6e37 commit 4dd7ff6

File tree

12 files changed

+41
-2
lines changed

12 files changed

+41
-2
lines changed

src/main/java/com/puppycrawl/tools/checkstyle/Checker.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ public void destroy() {
185185
cacheFile.persist();
186186
}
187187
catch (IOException exc) {
188-
throw new IllegalStateException("Unable to persist cache file.", exc);
188+
throw new IllegalStateException(
189+
getLocalizedMessage("Checker.cacheFilesException"), exc);
189190
}
190191
}
191192
}
@@ -317,7 +318,7 @@ private void processFiles(List<File> files) throws CheckstyleException {
317318
}
318319

319320
// We need to catch all errors to put a reason failure (file name) in error
320-
throw new Error("Error was thrown while processing " + filePath, error);
321+
throw new Error(getLocalizedMessage("Checker.error", filePath), error);
321322
}
322323
}
323324
}

src/main/resources/com/puppycrawl/tools/checkstyle/messages.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=Unable to persist cache file.
2+
Checker.error=Error was thrown while processing {0}
13
Checker.finishLocalSetup=if no custom moduleFactory is set, moduleClassLoader must be specified
24
Checker.processFilesException=Exception was thrown while processing {0}
35
Checker.setCharset=unsupported charset: ''{0}''

src/main/resources/com/puppycrawl/tools/checkstyle/messages_de.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=Cache-Datei konnte nicht persistiert werden.
2+
Checker.error=Fehler wurde während der Verarbeitung ausgelöst {0}
13
Checker.finishLocalSetup=wenn kein Brauch moduleFactory eingestellt ist, moduleClassLoader \
24
muss angegeben werden
35
Checker.processFilesException=Während der Verarbeitung wurde eine Ausnahme ausgelöst {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_es.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=No se pudo persistir el archivo de caché.
2+
Checker.error=Se produjo un error durante el procesamiento {0}
13
Checker.finishLocalSetup=si no hay costumbre moduleFactory Está establecido, \
24
moduleClassLoader debe ser especificado
35
Checker.processFilesException=Se lanzó una excepción durante el procesamiento {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_fi.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=V�limuistitiedostoa ei voitu tallentaa pysyv�sti.
2+
Checker.error=Virhe tapahtui k�sittelyn aikana {0}
13
Checker.finishLocalSetup=jos ei ole tapaa moduleFactory on asetettu, moduleClassLoader \
24
on täsmennettävä
35
Checker.processFilesException=Poikkeus tehtiin käsittelyn aikana {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_fr.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=Impossible de persister le fichier de cache.
2+
Checker.error=Une erreur a été levée lors du traitement {0}
13
Checker.finishLocalSetup=si pas de coutume moduleFactory est réglé, \
24
moduleClassLoader il faut préciser
35
Checker.processFilesException=Une exception a été levée lors du traitement {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_ja.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=キャッシュファイルを永続化できませんでした。
2+
Checker.error=処理中にエラーが発生しました {0}
13
Checker.finishLocalSetup=習慣がなければ moduleFactory 設定されています, \
24
moduleClassLoader 指定する必要があります
35
Checker.processFilesException=処理中に例外がスローされました {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_pt.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=Não foi possível persistir o arquivo de cache.
2+
Checker.error=Ocorreu um erro durante o processamento {0}
13
Checker.finishLocalSetup=se não houver costume moduleFactory está definido, \
24
moduleClassLoader deve ser especificado
35
Checker.processFilesException=Exceção foi lançada durante o processamento {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_ru.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=Не удалось сохранить файл кэша.
2+
Checker.error=Произошла ошибка во время обработки {0}
13
Checker.finishLocalSetup=если нет обычая moduleFactory установлен, \
24
moduleClassLoader должно быть указано
35
Checker.processFilesException=Исключение возникло при обработке {0}

src/main/resources/com/puppycrawl/tools/checkstyle/messages_tr.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Checker.cacheFilesException=Önbellek dosyasi kalici hale getirilemedi.
2+
Checker.error=Isleme sirasinda bir hata olustu {0}
13
Checker.finishLocalSetup=özel değilse moduleFactory ayarlandı, moduleClassLoader belirtilmeli
24
Checker.processFilesException=İşlenirken istisna atıldı {0}
35
Checker.setCharset=desteklenmeyen karakter kümesi: ''{0}''

0 commit comments

Comments
 (0)