diff options
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation')
35 files changed, 133 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels.translations b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels.translations new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels.translations @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_de.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_de.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_de.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_de.translations b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_de.translations new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_de.translations @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_es.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_es.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_es.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_es.translations b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_es.translations new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_es.translations @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_fr_CA_UNIX.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_fr_CA_UNIX.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_fr_CA_UNIX.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_fr_CA_UNIX.translations b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_fr_CA_UNIX.translations new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_fr_CA_UNIX.translations @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_ja.translations b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_ja.translations new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/ButtonLabels_ja.translations @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslationCheckFireErrors.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslationCheckFireErrors.properties new file mode 100644 index 000000000..074b0afab --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslationCheckFireErrors.properties @@ -0,0 +1,2 @@ +someKey=Some key +anotherKey=one more diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslationCheckFireErrors_de.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslationCheckFireErrors_de.properties new file mode 100644 index 000000000..9bc87ab8d --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslationCheckFireErrors_de.properties @@ -0,0 +1 @@ +someKey=einige Schlüssel diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslation_de.txt b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslation_de.txt new file mode 100644 index 000000000..9a7ae0711 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/InputTranslation_de.txt @@ -0,0 +1,12 @@ +# input file for TranslationCheck + +# a key that is available in all translations +hello=Hallo + +# whitespace at end of key should be trimmed before comparing. +# the german translation does not contain whitespace, no error should +# be reported here +cancel=Abbrechen + +# a key that is missing in german translation +#only.english=only english diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18_de.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18_de.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18_de.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18_es.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18_es.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/MyLabelsI18_es.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckLinux.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckLinux.xml new file mode 100644 index 000000000..34a16cbbe --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckLinux.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<checkstyle version="8.3-SNAPSHOT"> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +</file> +<file name="path_to_file"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +</checkstyle> diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckMacOS.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckMacOS.xml new file mode 100644 index 000000000..865791fde --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckMacOS.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<checkstyle version="8.3-SNAPSHOT"> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +</file> +<file name="path_to_file"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors_de.properties"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file/InputTranslationCheckFireErrors.properties"> +</file> +</checkstyle> diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckWindows.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckWindows.xml new file mode 100644 index 000000000..443bba39b --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/OutputTranslationCheckWindows.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<checkstyle version="8.3-SNAPSHOT"> +<file name="path_to_file\InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file\InputTranslationCheckFireErrors_de.properties"> +</file> +<file name="path_to_file"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +<file name="path_to_file\InputTranslationCheckFireErrors.properties"> +</file> +<file name="path_to_file\InputTranslationCheckFireErrors_de.properties"> +<error line="0" severity="error" message="%s" source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> +</file> +</checkstyle> diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles.translation b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles.translation new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles.translation @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_de.translation b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_de.translation new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_de.translation @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_es.translation b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_es.translation new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_es.translation @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_fr.translation b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_fr.translation new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_fr.translation @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_ja.translation b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_ja.translation new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/PageTitles_ja.translation @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/app-dev.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/app-dev.properties new file mode 100644 index 000000000..9a7ae0711 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/app-dev.properties @@ -0,0 +1,12 @@ +# input file for TranslationCheck + +# a key that is available in all translations +hello=Hallo + +# whitespace at end of key should be trimmed before comparing. +# the german translation does not contain whitespace, no error should +# be reported here +cancel=Abbrechen + +# a key that is missing in german translation +#only.english=only english diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/app-stage.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/app-stage.properties new file mode 100644 index 000000000..a82290c28 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/app-stage.properties @@ -0,0 +1,12 @@ +# input file for TranslationCheck + +# a key that is available in all translations +hello=Hello + +# whitespace at end of key should be trimmed before comparing. +# the german translation does not contain whitespace, no error should +# be reported here +cancel = Cancel + +# a key that is missing in german translation +only.english=only english diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages-translation.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages-translation.properties new file mode 100644 index 000000000..c2499856b --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages-translation.properties @@ -0,0 +1 @@ +someKey=Some key diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages-translation_fr.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages-translation_fr.properties new file mode 100644 index 000000000..bb6e9fb38 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages-translation_fr.properties @@ -0,0 +1 @@ +someKey=certains clé diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home_es_US.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home_es_US.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home_es_US.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home_fr_CA_UNIX.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home_fr_CA_UNIX.properties new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_home_fr_CA_UNIX.properties @@ -0,0 +1 @@ + diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_test.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_test.properties new file mode 100644 index 000000000..a82290c28 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_test.properties @@ -0,0 +1,12 @@ +# input file for TranslationCheck + +# a key that is available in all translations +hello=Hello + +# whitespace at end of key should be trimmed before comparing. +# the german translation does not contain whitespace, no error should +# be reported here +cancel = Cancel + +# a key that is missing in german translation +only.english=only english diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_test_de.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_test_de.properties new file mode 100644 index 000000000..9a7ae0711 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_test_de.properties @@ -0,0 +1,12 @@ +# input file for TranslationCheck + +# a key that is available in all translations +hello=Hallo + +# whitespace at end of key should be trimmed before comparing. +# the german translation does not contain whitespace, no error should +# be reported here +cancel=Abbrechen + +# a key that is missing in german translation +#only.english=only english diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation.properties new file mode 100644 index 000000000..c2499856b --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation.properties @@ -0,0 +1 @@ +someKey=Some key diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation_de.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation_de.properties new file mode 100644 index 000000000..9bc87ab8d --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation_de.properties @@ -0,0 +1 @@ +someKey=einige Schlüssel diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation_ja.properties b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation_ja.properties new file mode 100644 index 000000000..dd01ae7df --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/translation/messages_translation_ja.properties @@ -0,0 +1 @@ +someKey=いくつかのキー |