{"id":14065070,"url":"https://github.com/CatchZeng/Localizable.strings2Excel","last_synced_at":"2025-07-29T20:30:56.663Z","repository":{"id":38274267,"uuid":"59657061","full_name":"CatchZeng/Localizable.strings2Excel","owner":"CatchZeng","description":"Python command line tool for conversion between iOS strings files and excel files \u0026 between android strings.xml files and excl files. \u0026 strings files to android strings.xml files.","archived":false,"fork":false,"pushed_at":"2021-07-09T09:38:53.000Z","size":8673,"stargazers_count":579,"open_issues_count":8,"forks_count":136,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-08-13T07:08:07.697Z","etag":null,"topics":["android-localizable-files","android-strings","android-xml","conversion","excel","extract-strings","internalization","ios-localizable","localization","python","python-command","xls"],"latest_commit_sha":null,"homepage":"","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/CatchZeng.png","metadata":{"files":{"readme":"README-CN.md","changelog":"CHANGELOG-CN.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-25T11:20:48.000Z","updated_at":"2024-07-16T07:10:26.000Z","dependencies_parsed_at":"2022-09-05T02:50:42.629Z","dependency_job_id":null,"html_url":"https://github.com/CatchZeng/Localizable.strings2Excel","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatchZeng%2FLocalizable.strings2Excel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatchZeng%2FLocalizable.strings2Excel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatchZeng%2FLocalizable.strings2Excel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatchZeng%2FLocalizable.strings2Excel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatchZeng","download_url":"https://codeload.github.com/CatchZeng/Localizable.strings2Excel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046059,"owners_count":17861086,"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-localizable-files","android-strings","android-xml","conversion","excel","extract-strings","internalization","ios-localizable","localization","python","python-command","xls"],"created_at":"2024-08-13T07:04:16.580Z","updated_at":"2024-12-04T04:30:43.944Z","avatar_url":"https://github.com/CatchZeng.png","language":"Python","readme":"# Localizable.strings2Excel\n\niOS 本地化文件（.strings）与 Excel 互相转换 \u0026 android 的 strings.xml 与 Excel 互相转换 \u0026 iOS 本地化文件 转换成 android 的 strings.xml 文件的 Python 脚本工具\n\n## 特性\n\n- [x] 支持将 **iOS** strings 文件转换成 **excel** 文件\n- [x] 支持将 **excel** 文件转换成 **iOS** strings 文件\n- [x] 支持将 **android** xml 文件转换成 **excel** 文件\n- [x] 支持将 **excel** 文件转换成 **android** xml 文件\n- [x] 支持将 **iOS** strings 文件转换成 **android** xml 文件\n\n## 当前版本\n\n**V1.0.0**\n\n## 所需环境\n\n### 1.检查 python 版本\n\npython 版本必须是 2.x\n\n```\n$ python --version\nPython 2.7.10\n```\n\n### 2.检查 pip(python 包管理器)\n\n```\n$ pip --version\npip 19.0 from /Library/Python/2.7/site-packages/pip (python 2.7)\n```\n\n如果没有安装 pip\n\n```\ncurl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py\nsudo python get-pip.py\n```\n\n### 3.安装 pyexcelerator\n\n```\nsudo pip install pyExcelerator\n```\n\n### 4.安装 xlrd\n\n```\nsudo pip install xlrd\n```\n\n## 使用说明\n\n### 1.将 **iOS** strings 文件转换成 **excel** 文件\n\n```\n$ python python/Strings2Xls.py -f examples/ios/ -t examples/output\nStart converting\nConvert examples/ios/ successfully! you can see xls file in examples/output/strings-files-to-xls_20190129_165830\n```\n\n![](imgs/1.0.0/strings-2-xls.jpg)\n\n### 2.将 **excel** 文件转换成 **iOS** strings 文件\n\n```\n$ python python/Xls2Strings.py -f examples/output/strings-files-to-xls_20190129_165830/ -t examples/ou\ntput/\n\noptions: {'fileDir': 'examples/output/strings-files-to-xls_20190129_165830/', 'targetDir': 'examples/output/', 'excelStorageForm': 'multiple', 'additional': None\n}, args: []\n\nStart converting\nConvert examples/output/strings-files-to-xls_20190129_165830/ successfully! you can see strings file in examples/output//xls-files-to-strings_20190129_171146\n```\n\n![](imgs/1.0.0/xls-2-strings.jpg)\n\n### 3.将 **android** xml 文件转换成 **excel** 文件\n\n```\n$ python python/Xml2Xls.py -f examples/android/ -t examples/output\n\noptions: {'fileDir': 'examples/android/', 'targetDir': 'examples/output', 'excelStorageForm': 'multiple'}, args: []\n\nStart converting\nConvert examples/android/ successfully! you can see xls file in examples/output/xml-files-to-xls_20190129_172938\n```\n\n![](imgs/1.0.0/xml-2-xls.jpg)\n\n### 4.将 **excel** 文件转换成 **android** xml 文件\n\n```\n$ python python/Xls2Xml.py -f examples/output/xml-files-to-xls_20190129_172938/ -t examples/output/\n\noptions: {'fileDir': 'examples/output/xml-files-to-xls_20190129_172938/', 'targetDir': 'examples/output/', 'excelStorageForm': 'multiple', 'additional': None}, args\n: []\n\nStart converting\nConvert examples/output/xml-files-to-xls_20190129_172938/ successfully! you can xml files in examples/output//xls-files-to-xml_20190129_174207\n```\n\n![](imgs/1.0.0/xls-2-xml.jpg)\n\n### 5.将 **iOS** strings 文件转换成 **android** xml 文件\n\n```shell\n$ python python/Strings2Xml.py -f examples/ios/en.lproj/ -t examples/output/\n\noptions: {'fileDir': 'examples/ios/en.lproj/', 'targetDir': 'examples/output/', 'additional': None}, args: []\n\n\nCreating android file:examples/output//strings-files-to-xml_20190129_164122/Localizable.xml\n\n\nCreating android file:examples/output//strings-files-to-xml_20190129_164122/InfoPlist.xml\n\n\nConvert successfully! you can see xml files in examples/output//strings-files-to-xml_20190129_164122\n\n```\n\n![](imgs/1.0.0/strings-2-xml.jpg)\n\n## ChangeLog\n\n[ChangeLog](https://github.com/CatchZeng/Localizable.strings2Excel/blob/master/CHANGELOG.md)\n\n## 贡献者\n\n- [CatchZeng](https://github.com/CatchZeng)\n- [Buguibu](https://github.com/buguibu)\n- [vgutierrezNologis](https://github.com/vgutierrezNologis)\n- [linguinan](https://github.com/linguinan)\n- [qiusuo8](https://github.com/qiusuo8)\n- [light-bo](https://github.com/light-bo)\n- [bryant1410](https://github.com/bryant1410)\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCatchZeng%2FLocalizable.strings2Excel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCatchZeng%2FLocalizable.strings2Excel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCatchZeng%2FLocalizable.strings2Excel/lists"}