Package org.faktorips.util.localization
Class LocalizeHelper
java.lang.Object
org.faktorips.util.localization.LocalizeHelper
THIS IS A UTIL CLASS TO COPY LOCALIZE-PROPERTY FILES. DO NOT USE ANY OF THESE METHODS IN
PRODUCTIVE CODE
Simple class to support developers in internationalisation-process.
All files named "messages.properties" in the source dir (recursively scanned) are compared to all
files named "message_ll_RR.properties" (ll means language, e.g. de for german; RR means region,
eg. AT for austria; the String ll_RR is given as parameter). If the target file does not exist,
it is created with the same content as the source file. If the target exists, the properties
contained in the source, but not in the target, are copied to the target and marked with the text
<TRANSLATE_ME> as value-Prefix.
Note: No translation is done by this class!
- Author:
- Thorsten Guenther
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizeHelper(String sourceName, String targetName, String targetLang) Creates a new LocalizeHelper working on the given directories and with the given language. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidFirst argument:
Path to the base directory, where the source-language files are stored.
Second argument:
Path to the base directory, where the target-language files are stored.
Third argument:
The target language (and, optional, the region) as de_RR (e.g. de_AT for german language with austrian region or only de for german with no special region information.
-
Constructor Details
-
LocalizeHelper
Creates a new LocalizeHelper working on the given directories and with the given language.
-
-
Method Details
-
main
First argument:
Path to the base directory, where the source-language files are stored.
Second argument:
Path to the base directory, where the target-language files are stored.
Third argument:
The target language (and, optional, the region) as de_RR (e.g. de_AT for german language with austrian region or only de for german with no special region information.
-