{"id":21997667,"url":"https://github.com/osfunapps/os_android_strings_extractor-py","last_synced_at":"2025-04-30T21:06:02.819Z","repository":{"id":62577806,"uuid":"196725750","full_name":"osfunapps/os_android_strings_extractor-py","owner":"osfunapps","description":"This module will extract an Android strings.xml file to a nice excel (xlsx) file, in order to prepare it for translation","archived":false,"fork":false,"pushed_at":"2021-02-28T14:27:48.000Z","size":386,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-30T16:45:15.720Z","etag":null,"topics":["android","automation","excel","osfunapps","python","strings","tools","translation","utils","xls","xlsx","xml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osfunapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-13T13:37:41.000Z","updated_at":"2024-03-27T12:40:07.000Z","dependencies_parsed_at":"2022-11-03T19:30:37.259Z","dependency_job_id":null,"html_url":"https://github.com/osfunapps/os_android_strings_extractor-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_android_strings_extractor-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_android_strings_extractor-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_android_strings_extractor-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_android_strings_extractor-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osfunapps","download_url":"https://codeload.github.com/osfunapps/os_android_strings_extractor-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227223679,"owners_count":17750386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","automation","excel","osfunapps","python","strings","tools","translation","utils","xls","xlsx","xml"],"created_at":"2024-11-29T22:17:37.450Z","updated_at":"2024-11-29T22:17:38.106Z","avatar_url":"https://github.com/osfunapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\nThis project's aim is to help with the translation of an Android app.  \nIt will extract the strings.xml file of an app to a nice readable xlsx file, which can be sent to translators to work on.  \n\nIf, after the translators will finish translating the file, you also interested in converting the translated file back to a strings.xml file,\nuse the complementary library ([os_android_strings_importer-py](https://github.com/osfunapps/os_android_strings_importer-py)) \n\n\n## Installation\nInstall via pip:\n\n    pip install os_android_strings_extractor\n\n## Usage       \n    \nSay you have this *strings.xml* file:\n```xml\n\u003cresources\u003e\n    \u003cstring name=\"app_name\"\u003eMemorizer\u003c/string\u003e\n    \u003cstring name=\"capital\"\u003eCapital\u003c/string\u003e\n    \u003cstring name=\"country\"\u003eCountry\u003c/string\u003e\n    \u003cstring name=\"add_tab\"\u003eAdd List\u003c/string\u003e\n    \u003cstring name=\"action_settings\"\u003eSettings\u003c/string\u003e\n    \u003cstring name=\"settings\"\u003eLists Settings\u003c/string\u003e\n    \u003cstring name=\"save\"\u003eSave\u003c/string\u003e\n    \u003cstring name=\"delete\"\u003eDELETE\u003c/string\u003e\n    \u003cstring name=\"entries\"\u003e%1$s Entries\u003c/string\u003e\n    \u003cstring name=\"entry\"\u003e%1$s Entry\u003c/string\u003e\n    \u003cstring name=\"from_definition_hint\"\u003eLike: Date In History \u003c/string\u003e\n    \u003cstring name=\"to_definition_hint\"\u003eTo: Event\u003c/string\u003e\n    \u003cstring name=\"from_translation_hint\"\u003eLike: Spanish\u003c/string\u003e\n    \u003cstring name=\"to_translation_hint\"\u003eTo: Hebrew\u003c/string\u003e\n    \u003cstring name=\"go\"\u003eGo\u003c/string\u003e\n    \u003cstring name=\"entries_count\"\u003etotal entries: %1$s\u003c/string\u003e\n    \u003cstring name=\"entries_hard_count\"\u003ehard entries: %1$s\u003c/string\u003e\n    \u003cstring name=\"tabs_list_title\" translatable=\"false\"\u003eLists\u003c/string\u003e\n\u003c/resources\u003e\n```\nConvert it to a readable excel file:\n\n```python\nfrom os_android_strings_extractor import strings_extractor\n\nstrings_extractor.extract_to_xlsx(strings_file_path='/path/to/strings.xml',\n                                  output_path='/your/output/file.xlsx',\n                                  src_language='English',\n                                  languages_list=['French', 'German', 'Hindi'])\n```\n  \nAnd you will get the output:\n![Alt text](os_android_strings_extractor/example_img.png?raw=true \"Title\")\n(notice the worksheets at the bottom -\u003e 'French', 'German', 'Hindi')\n\n    \n## Links\n[os_android_strings_importer-py](https://github.com/osfunapps/os_android_strings_importer-py) -\u003e Will import an xlsx file (made by os_android_strings_extractor) and convert it to an Android strings.xml file, after translation.\n\n\n## Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_android_strings_extractor-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosfunapps%2Fos_android_strings_extractor-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_android_strings_extractor-py/lists"}