android-localisation 1.0.6__tar.gz → 1.0.7__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.
- {android_localisation-1.0.6/android_localisation.egg-info → android_localisation-1.0.7}/PKG-INFO +1 -1
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation/__init__.py +1 -1
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation/cli.py +2 -2
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation/translate.py +1 -1
- {android_localisation-1.0.6 → android_localisation-1.0.7/android_localisation.egg-info}/PKG-INFO +1 -1
- {android_localisation-1.0.6 → android_localisation-1.0.7}/pyproject.toml +1 -1
- {android_localisation-1.0.6 → android_localisation-1.0.7}/LICENSE +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/MANIFEST.in +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/README.md +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation/fix.py +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation/java/VerifyStrings.java +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation/verify.py +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation.egg-info/SOURCES.txt +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation.egg-info/dependency_links.txt +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation.egg-info/entry_points.txt +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation.egg-info/top_level.txt +0 -0
- {android_localisation-1.0.6 → android_localisation-1.0.7}/setup.cfg +0 -0
{android_localisation-1.0.6/android_localisation.egg-info → android_localisation-1.0.7}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: android-localisation
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
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
|
|
@@ -31,10 +31,10 @@ def main():
|
|
|
31
31
|
translate_parser.add_argument("--base-url", help="Custom OpenAI-compatible endpoint URL (required for 'custom' provider)")
|
|
32
32
|
translate_parser.add_argument("--app-context", help="Short description of your app for better translations")
|
|
33
33
|
translate_parser.add_argument("--sleep", type=float, default=5.0, help="Seconds between API requests (default: 5.0)")
|
|
34
|
-
from android_localisation.translate import DEFAULT_API_TIMEOUT
|
|
34
|
+
from android_localisation.translate import DEFAULT_API_TIMEOUT, MAX_TIMEOUT_RETRIES
|
|
35
35
|
translate_parser.add_argument(
|
|
36
36
|
"--timeout", type=float, default=DEFAULT_API_TIMEOUT,
|
|
37
|
-
help=f"Seconds to wait for each API response, up to
|
|
37
|
+
help=f"Seconds to wait for each API response, up to {MAX_TIMEOUT_RETRIES + 1} attempts on timeout (default: {DEFAULT_API_TIMEOUT})",
|
|
38
38
|
)
|
|
39
39
|
translate_parser.add_argument("--languages", help="Comma-separated language codes, e.g. hi,es,fr,de — creates folders and strings.xml automatically")
|
|
40
40
|
|
|
@@ -113,7 +113,7 @@ def clean_xml_response(result):
|
|
|
113
113
|
|
|
114
114
|
# Strip xmlns namespace declarations from <resources> (leave other attributes intact)
|
|
115
115
|
def _strip_xmlns(m):
|
|
116
|
-
attrs = re.sub(r
|
|
116
|
+
attrs = re.sub(r"""\s+xmlns(?::\w+)?\s*=\s*(['"]).*?\1""", "", m.group(2))
|
|
117
117
|
return m.group(1) + attrs + m.group(3)
|
|
118
118
|
|
|
119
119
|
result = re.sub(r"(<resources)([^>]*)(>)", _strip_xmlns, result, count=1)
|
{android_localisation-1.0.6 → android_localisation-1.0.7/android_localisation.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: android-localisation
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
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.
|
|
7
|
+
version = "1.0.7"
|
|
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" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{android_localisation-1.0.6 → android_localisation-1.0.7}/android_localisation.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|