Ra-Na / GTranslate-strings-xml

Creats a strings.xml file by Google auto-translating an input strings.xml file
GNU General Public License v3.0
333 stars 130 forks source link

Improvements in GTranslate #38

Closed firefinchdev closed 3 years ago

firefinchdev commented 3 years ago
  1. Resolved Bug: https://github.com/Ra-Na/GTranslate-strings-xml/issues/36 (Check https://github.com/Ra-Na/GTranslate-strings-xml/issues/36#issuecomment-849490088)
  2. Add: Take source file, input language, output languages as command line input (translate to all languages if output languages not specified)
    python3 ./gtranslate.py string.xml en hi ru fr
  3. Fixed incorrectly formatted strings, see serialize_text and deserialize_text
  4. Add async translation generation for faster output. (Also, retry when request fails)
  5. Add: Sample string amp_quotes_and_next_line, next_line.
  6. Add .gitignore

Testing: I have a strings.xml with 112 lines. I translated it to 108 languages using these changes. Total translations: 12096 Time taken: About 2 mins

Ra-Na commented 3 years ago

Thanks!