{"id":18784530,"url":"https://github.com/pwittchen/android-resource-converter","last_synced_at":"2025-04-13T12:33:11.177Z","repository":{"id":25917073,"uuid":"29358010","full_name":"pwittchen/android-resource-converter","owner":"pwittchen","description":"Scripts converting Android *.xml resources with translations to *.csv file and backwards","archived":false,"fork":false,"pushed_at":"2016-04-02T21:13:50.000Z","size":18,"stargazers_count":10,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T03:41:28.049Z","etag":null,"topics":["android","converter","csv","python","resource","xml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwittchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-16T16:53:45.000Z","updated_at":"2025-02-24T11:29:13.000Z","dependencies_parsed_at":"2022-08-24T07:40:19.510Z","dependency_job_id":null,"html_url":"https://github.com/pwittchen/android-resource-converter","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/pwittchen%2Fandroid-resource-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwittchen%2Fandroid-resource-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwittchen%2Fandroid-resource-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwittchen%2Fandroid-resource-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwittchen","download_url":"https://codeload.github.com/pwittchen/android-resource-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714730,"owners_count":21149956,"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","converter","csv","python","resource","xml"],"created_at":"2024-11-07T20:43:17.745Z","updated_at":"2025-04-13T12:33:10.672Z","avatar_url":"https://github.com/pwittchen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Resource Converter\nSimple Python scripts converting Android xml resources with translations to csv file and backwards\n\nMotivation\n----------\nIn international projects sometimes there's a need to send resource files to the client in order to have translated strings. Client doesn't have to understand XML notation and editing two or more files at the same time is inconvenient. It's easier to send file which can be edited in MS Excel or Libre Office Calc.\n\nScripts in this repository are able to convert Android xml resources to a single *.csv file ready to open in software for common users. In addition, there's another script, which can generate xml resource files from *.csv file. Scripts were tested on Linux (Ubuntu 14.04 LTS)\n\nRequirements\n------------\n\nTo satisfy requirements, run the following command:\n\n`$ pip install -r requirements.txt`\n\nUsage\n-----\n\n### Generating *.csv file\n\n```txt\n$ ./xml2csv.py \u003cdirectory_with_xml_files\u003e\n```\n**Example**\n```txt\n$ ./xml2csv.py resources\n```\n\n**Sample output**\n\n`translations.csv`\n\n```txt\nkey strings_english.xml strings_polish.xml\nhello_world Hello World!    Witaj Świecie!\napp_name    My application  Moja aplikacja\n```\n\n**Note**: These \"space\" delimiters are fine and can be modified in the script. Nevertheless, Libre Office Calc reads it properly.\n\n### Generating *.xml files\n\n```txt\n$ ./csv2xml.py \u003cfile_with_translations\u003e.csv\n```\n**Example**\n```txt\n$ ./csv2xml.py translations.csv\n```\n\n**Sample output**\n\n`strings_english.xml`\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?\u003e\n\u003cresources\u003e\n  \u003cstring name=\"hello_world\"\u003eHello World!\u003c/string\u003e\n  \u003cstring name=\"app_name\"\u003eMy application\u003c/string\u003e\n\u003c/resources\u003e\n```\n\n`strings_polish.xml`\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?\u003e\n\u003cresources\u003e\n  \u003cstring name=\"hello_world\"\u003eWitaj Świecie!\u003c/string\u003e\n  \u003cstring name=\"app_name\"\u003eMoja aplikacja\u003c/string\u003e\n\u003c/resources\u003e\n```\n\nCaveats\n-------\n\n- Scripts may bahave differently on MS Windows system and may need some adjustments\n- Output of the scripts may be different on MS Windows system and may need some adjustments\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwittchen%2Fandroid-resource-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwittchen%2Fandroid-resource-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwittchen%2Fandroid-resource-converter/lists"}