Class StringsResourceTranslator
java.lang.Object
com.google.zxing.client.j2se.StringsResourceTranslator
Deprecated.
without replacement since 3.4.2
A utility which auto-translates English strings in Android string resources using Google Translate.
Pass the Android client res/ directory as first argument, and optionally message keys
who should be forced to retranslate.
Usage: StringsResourceTranslator android/res/ [key_1 ...]
You must set your Google Translate API key into the environment with -DtranslateAPI.key=...
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static CharSequenceDeprecated.static voidDeprecated.Deprecated.private static voidtranslate(Path englishFile, Path translatedFile, Collection<String> forceRetranslation) Deprecated.(package private) static StringtranslateString(String english, String language) Deprecated.
-
Field Details
-
API_KEY
Deprecated. -
ENTRY_PATTERN
Deprecated. -
STRINGS_FILE_NAME_PATTERN
Deprecated. -
TRANSLATE_RESPONSE_PATTERN
Deprecated. -
VALUES_DIR_PATTERN
Deprecated. -
APACHE_2_LICENSE
-
LANGUAGE_CODE_MASSAGINGS
-
-
Constructor Details
-
StringsResourceTranslator
private StringsResourceTranslator()Deprecated.
-
-
Method Details
-
main
-
translate
private static void translate(Path englishFile, Path translatedFile, Collection<String> forceRetranslation) throws IOException Deprecated.- Throws:
IOException
-
translateString
Deprecated.- Throws:
IOException
-
fetch
Deprecated.- Throws:
IOException
-
readLines
Deprecated.- Throws:
IOException
-