Package com.google.zxing.client.j2se
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 CharSequence
Deprecated.static void
Deprecated.Deprecated.private static void
translate
(Path englishFile, Path translatedFile, Collection<String> forceRetranslation) Deprecated.(package private) static String
translateString
(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
Deprecated.- See Also:
-
LANGUAGE_CODE_MASSAGINGS
Deprecated.
-
-
Constructor Details
-
StringsResourceTranslator
private StringsResourceTranslator()Deprecated.
-
-
Method Details
-
main
Deprecated.- Throws:
IOException
-
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
-