android-localisation 1.0.2__tar.gz → 1.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {android_localisation-1.0.2/android_localisation.egg-info → android_localisation-1.0.3}/PKG-INFO +1 -1
  2. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation/__init__.py +1 -1
  3. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation/translate.py +8 -1
  4. {android_localisation-1.0.2 → android_localisation-1.0.3/android_localisation.egg-info}/PKG-INFO +1 -1
  5. {android_localisation-1.0.2 → android_localisation-1.0.3}/pyproject.toml +1 -1
  6. {android_localisation-1.0.2 → android_localisation-1.0.3}/LICENSE +0 -0
  7. {android_localisation-1.0.2 → android_localisation-1.0.3}/MANIFEST.in +0 -0
  8. {android_localisation-1.0.2 → android_localisation-1.0.3}/README.md +0 -0
  9. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation/cli.py +0 -0
  10. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation/fix.py +0 -0
  11. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation/java/VerifyStrings.java +0 -0
  12. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation/verify.py +0 -0
  13. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation.egg-info/SOURCES.txt +0 -0
  14. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation.egg-info/dependency_links.txt +0 -0
  15. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation.egg-info/entry_points.txt +0 -0
  16. {android_localisation-1.0.2 → android_localisation-1.0.3}/android_localisation.egg-info/top_level.txt +0 -0
  17. {android_localisation-1.0.2 → android_localisation-1.0.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-localisation
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Zero-dependency Android strings.xml translation and verification using LLMs (Gemini, OpenAI, Anthropic, Ollama).
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/BharathKmalviya/android-llm-localization
@@ -2,4 +2,4 @@
2
2
  android-localisation: Zero-dependency Android strings.xml translation using LLMs.
3
3
  """
4
4
 
5
- __version__ = "1.0.2"
5
+ __version__ = "1.0.3"
@@ -331,7 +331,14 @@ def main(args=None):
331
331
  action = "Created" if is_new_file else "Updated"
332
332
  print(f"✅ {action} {folder}/strings.xml{suffix}")
333
333
  else:
334
- print(f"⚠️ Failed or got invalid XML for {folder}. Skipping.")
334
+ if translated_xml is None:
335
+ print(f"⚠️ [{folder}] API call failed — see error above. Skipping.")
336
+ elif "<resources>" not in translated_xml:
337
+ preview = translated_xml[:200].replace("\n", " ") if translated_xml else "(empty response)"
338
+ print(f"⚠️ [{folder}] Response missing <resources> tag. Skipping.")
339
+ print(f" Response preview: {preview}")
340
+ else:
341
+ print(f"⚠️ [{folder}] Response missing </resources> closing tag. Skipping.")
335
342
 
336
343
  if args.sleep > 0:
337
344
  time.sleep(args.sleep)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-localisation
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Zero-dependency Android strings.xml translation and verification using LLMs (Gemini, OpenAI, Anthropic, Ollama).
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/BharathKmalviya/android-llm-localization
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "android-localisation"
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "Zero-dependency Android strings.xml translation and verification using LLMs (Gemini, OpenAI, Anthropic, Ollama)."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }