{ "info": { "author": "Jonathan Odul", "author_email": "contact@takohi.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python" ], "description": "# Android-Strings-Format\n\nThis script takes a strings resource as a model and a second one as a target.\nIt will format the target strings resource in order to keep the same tags and comments order as the model one.\nBe aware that the target strings resource will be overwritten if no output file has been specified.\nThe script will also warn you if a resource is missing inside the target strings.xml file.\n\nYou need to run this script inside of the res directory of your Android project.\nExample of usage: python android-strings-format.py --target fr --output formatted_strings.xml\n\n## Usage\n\nandroid-strings-format.py [-h] [-m MODEL] -t TARGET\n [-o OUTPUT]\n\n* -h, --help show this help message and exit\n\n* --model MODEL, -m MODEL\n Language code of the strings resource to use as model.\n If not specified, strings.xml inside the default\n values directory will be used as the model.\n\n* --target TARGET, -t TARGET\n Language code of the strings resource to format\n\n* --output OUTPUT, -o OUTPUT\n Path to the output formatted strings resource. If not\n specified, the target strings resource file will be\n overwritten.\n\n## Example\n\nTarget inside values directory\n```\n\n\n\n\n\n \n APP\n\n \n Loading\u2026\n Loading data\u2026\n Processing\u2026\n Please wait\u2026\n\n \n Ok\n Refresh\n Cancel\n Quit\n\n \n No SD card mounted.\n \\nPlease mount a sd card to use this application.\n\n \n \n Single\n Shuffle\n Repeat\n \n\n \n \n %1$d minute\n %1$d minutes\n \n\n\n```\n\nModel inside values-fr directory\n```\n\n\n \n VG Music\n\n \n Chargement en cours\u2026\n Chargement des donn\u00e9es\u2026\n\n Avant de partir\u2026\n Aucune carte SD d\u00e9t\u00e9ct\u00e9e.\n \\nVeuillez obtenir une carte SD avant d\\'utiliser cette application.\n\n Annuler\n Quitter\n \n\n Simple\n Al\u00e9atoire\n R\u00e9p\u00e9tition\n \n\n Traitement en cours\u2026\nVeuillez patienter quelques instants\u2026\n\n \n \n %1$d minute\n %1$d minutes\n \n\n Rafra\u00eechir\n\n \n Omelette du fromage\n \n```\n\nRunning command\n```\npython android-strings-format.py --target fr --output formatted_strings.xml\n```\n\nOutput\n```\nProcessing with...\n model: values/strings.xml\n target: values-fr/strings.xml\nWarning: resource 'ok' does not exist inside values-fr/strings.xml\nSaved formatted strings resource to: formatted_strings.xml\n```\n\nformatted_strings.xml\n```\n\n\n\n \n VG Music\n\n \n \n Chargement en cours\u2026\n Chargement des donn\u00e9es\u2026\n Traitement en cours\u2026\n Veuillez patienter quelques instants\u2026\n\n \n Ok\n Rafra\u00eechir\n Annuler\n Quitter\n\n \n Aucune carte SD d\u00e9t\u00e9ct\u00e9e.\n \\nVeuillez obtenir une carte SD avant d\\'utiliser cette application.\n\n \n \n Simple\n Al\u00e9atoire\n R\u00e9p\u00e9tition\n \n\n \n \n %1$d minute\n %1$d minutes\n \n\n\n```\n\nMuch better, right?\n\nCHANGES\n=======\n\n0.1.0 (2017-04-21)\n------------------\n\n- Initial release.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/KonsomeJona/android-strings-format/archive/0.1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/KonsomeJona/android-strings-format", "keywords": "android localization strings format xml values", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "android-strings-format", "package_url": "https://pypi.org/project/android-strings-format/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/android-strings-format/", "project_urls": { "Download": "https://github.com/KonsomeJona/android-strings-format/archive/0.1.0.tar.gz", "Homepage": "https://github.com/KonsomeJona/android-strings-format" }, "release_url": "https://pypi.org/project/android-strings-format/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Android Strings format", "version": "0.1.0" }, "last_serial": 2818933, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5a9177070cffe63bc5a1fead50ac0402", "sha256": "0d9dd3affae09d0a52b05b21d90e25ddb7cf611aebac88c0e9f54953f2cf0f8b" }, "downloads": -1, "filename": "android-strings-format-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5a9177070cffe63bc5a1fead50ac0402", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2767, "upload_time": "2017-04-21T08:30:41", "url": "https://files.pythonhosted.org/packages/be/52/aff26f3d3093b3ff5c7802389508cf9350a52967c14c4f59773ca3820966/android-strings-format-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a9177070cffe63bc5a1fead50ac0402", "sha256": "0d9dd3affae09d0a52b05b21d90e25ddb7cf611aebac88c0e9f54953f2cf0f8b" }, "downloads": -1, "filename": "android-strings-format-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5a9177070cffe63bc5a1fead50ac0402", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2767, "upload_time": "2017-04-21T08:30:41", "url": "https://files.pythonhosted.org/packages/be/52/aff26f3d3093b3ff5c7802389508cf9350a52967c14c4f59773ca3820966/android-strings-format-0.1.0.tar.gz" } ] }