From e44996878f3fe5a9f26b147a40adce978782c44d Mon Sep 17 00:00:00 2001
From: Roman Ivanov
+ * Note: If your project uses preprocessed translation files and the original files do not have the + * {@code properties} extension, you can specify additional file extensions + * via the {@code fileExtensions} property. + *
+ ** Attention: the check will perform the validation of ISO codes if the option * is used. So, if you specify, for example, "mm" for language code, * TranslationCheck will rise violation that the language code is incorrect. @@ -113,10 +118,7 @@ * Default value is {@code "^messages.*$"}. * *
.properties
name | -description | -type | -default value | -since | -
---|---|---|---|---|
fileExtensions | -Specify file type extension of the files to check. | -String[] | -.properties |
- 8.22 | -
name | -description | -type | -default value | -since | -
---|---|---|---|---|
format | -Specify pattern to match comments against. | -Pattern | -"TODO:" |
- 3.0 | -
null
name | -description | -type | -default value | -since | -
---|---|---|---|---|
format | -Specify pattern for strings allowed before the comment. | -Pattern | -"^[\s});]*$" |
- 3.4 | -
legalComment | -Define pattern for text allowed in trailing comments. This - pattern will not be applied to multiline comments. | -Pattern | -null |
- 4.2 | -
+ Note: If your project uses preprocessed translation files and the original files
+ do not have the properties
extension,
+ you can specify additional file extensions
+ via the fileExtensions
property.
+
Attention: the check will perform the validation of ISO codes if the option is used. So, if you specify, for example, "mm" for language code, TranslationCheck @@ -79,32 +85,22 @@ messages.properties: Key 'ok' missing.
"^messages.*$"
.properties
- .properties
{}
+ Note: If your project uses preprocessed translation files and the original files
+ do not have the properties
extension,
+ you can specify additional file extensions
+ via the fileExtensions
property.
+
Attention: the check will perform the validation of ISO codes if the option
is used. So, if you specify, for example, "mm" for language code, TranslationCheck
@@ -69,47 +75,10 @@ messages.properties: Key 'ok' missing.
-
+
-
- name
- description
- type
- default value
- since
-
-
- baseName
- Specify
-
- Base name of resource bundles which contain message resources. It helps
- the check to distinguish config and localization resources.
-
- Pattern
-
- "^messages.*$"
6.17
-
-
- fileExtensions
-
- Specify file type extension to identify translation files. Setting
- this property is typically only required if your
- translation files are preprocessed and the original files
- do not have the extension
- .properties
- String[]
-
- .properties
3.0
-
-
- requiredTranslations
-
- Specify language codes of required translations which must exist in project.
-
- String[]
-
- {}
6.11
-
main
method.main
method."^$"
name | -description | -type | -default value | -since | -
---|---|---|---|---|
excludedClasses | -Specify pattern for qualified names of classes which are allowed
- to have a main method. |
- Pattern | -"^$" |
- 3.2 | -
.properties
name | -description | -type | -default value | -since | -
---|---|---|---|---|
fileExtensions | -Specify file type extension of the files to check. | -String[] | -.properties |
- 5.7 | -