{ "info": { "author": "s-ball", "author_email": "s-ball@laposte.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: French", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Internationalization" ], "description": "# i18nparse\nLocalization of the Python argparse module\n\n## Current status\nOnly the French language translation is provided.\n\nThe binary wheel file contains litte endian mo translation files. Users of big endian systems should use the source distribution to generate the mo files on their own system.\n\n## Goals\nThe argparse module makes it easy to write user-friendly command-line interfaces. Specifically, it automatically generates help and usage messages and issues errors when users give the program invalid arguments. Unfortunately, even if the module is able to use `gettext` type localization strings, none is provided by the standard library.\n\nThis module provides some translations (at least a French one) and will be simply installable through `pip`\n\n## Installing\n\n### End user installation\n\nWith pip: `pip install i18nparse`.\n\n### Developper installation\n\nIf you want to contribute, you should get a copy of the full tree from [GitHUB](https://github.com/s-ball/i18nparse):\n\n```\ngit clone https://github.com/s-ball/i18nparse.git [your_working_copy_folder]\n```\n\n## Usage\n\nThe `i18nparse` module defines 2 functions:\n\n```\ndef activate(lang = None)\n```\n\nwhich activates the usage of the translation for the required language. By default, the language for `locale.getlocale()` is used.\n\n```\ndef deactivate()\n```\n\nwhich reverts to the original texts.\n\nExample:\n\n```\nimport argparse\nimport i18nparse\n\ni18nparse.activate() # Ok use current locale (if translation file exists)\n\nparser = argparse.ArgumentParser('foo')\nparser.print_help() # displays the help message for the current locale\n```\n\nAssuming a `fr_FR` locale, this displays:\n\n```\nusage : foo [-h]\n\narguments optionnels:\n -h, --help affiche ce message et termine le programme\n```\n\n## Contributing\n\nContribution for new language translations or improvement of existing ones are welcome. See [CONTRIBUTING](https://raw.githubusercontent.com/s-ball/i18nparse/master/CONTRIBUTING) for details\n\n## Versioning\n\nThis project uses a standard Major.Minor.Patch versioning pattern. Inside a major version, public API stability is expected (at least after 1.0.0 version will be published).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://raw.githubusercontent.com/s-ball/i18nparse/master/i18nparse/LICENSE) file for details\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/s-ball/i18nparse", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "i18nparse", "package_url": "https://pypi.org/project/i18nparse/", "platform": "", "project_url": "https://pypi.org/project/i18nparse/", "project_urls": { "Changelog": "https://github.com/s-ball/i18nparse/blob/master/CHANGES.txt", "Homepage": "https://github.com/s-ball/i18nparse" }, "release_url": "https://pypi.org/project/i18nparse/0.7.0/", "requires_dist": null, "requires_python": ">=3", "summary": "Provides translations for argparse module", "version": "0.7.0" }, "last_serial": 4568139, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "ccd658e54f934184b86c7c7d84a38cd3", "sha256": "09f1604a22179d88b89623271857568a22be1a00563d3791758aa28f05320380" }, "downloads": -1, "filename": "i18nparse-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ccd658e54f934184b86c7c7d84a38cd3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5889, "upload_time": "2018-11-15T07:21:08", "url": "https://files.pythonhosted.org/packages/af/f6/77faf59e84b501f6c05f3f857b3f2ec634e9c3311701f4d4dd4b57e548c0/i18nparse-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7342d7b84f5138999a5f4837141e01ef", "sha256": "859793caa2629b2def537f8a0d3094cefe7d9c6556e097a2f7e906d9aadd5407" }, "downloads": -1, "filename": "i18nparse-0.5.0.tar.gz", "has_sig": false, "md5_digest": "7342d7b84f5138999a5f4837141e01ef", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 12382, "upload_time": "2018-11-15T07:21:11", "url": "https://files.pythonhosted.org/packages/84/c4/47952bacaececbaf1f04d557ef97725bdb9727b4eb8d9d22ae141b45cf13/i18nparse-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "8a5f2010c7a68eb52dd46c62b50a46a1", "sha256": "24f7bf34c8b4ba7a4fa169960723d7f100d7f91e8c558bc3c8f668cfa1068b28" }, "downloads": -1, "filename": "i18nparse-0.6.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8a5f2010c7a68eb52dd46c62b50a46a1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5891, "upload_time": "2018-11-16T15:18:27", "url": "https://files.pythonhosted.org/packages/bd/73/963b7fdb13ed5c14a43509c997571c0b8bef46a328205ba827cf54283d63/i18nparse-0.6.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "08b979c55e23002b22be957fd118af67", "sha256": "b1554f54d4b08d3bafb5adcf578498f6423309fce1c4e5035434adff0eedb2c6" }, "downloads": -1, "filename": "i18nparse-0.6.0.tar.gz", "has_sig": false, "md5_digest": "08b979c55e23002b22be957fd118af67", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 12410, "upload_time": "2018-11-16T15:18:28", "url": "https://files.pythonhosted.org/packages/ab/65/ac14660838505ea9a0d6452facfa7612db2670cb8315ca2d3bc30b79642a/i18nparse-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "cf303723918e1b844f41a2b548217749", "sha256": "1bc6ed6808c3b09f141c30af0d3eb79271eddeae31fced121dda8bf3adb57eae" }, "downloads": -1, "filename": "i18nparse-0.7.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cf303723918e1b844f41a2b548217749", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5940, "upload_time": "2018-12-06T14:16:23", "url": "https://files.pythonhosted.org/packages/d2/e4/adf38192eb16ebb130631754c48374c85adf53b33158d45f6bd92904c8c9/i18nparse-0.7.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af28c834a8728d81e575c26134ea395d", "sha256": "133c9c78c764826c34b62fecfc2c75ed435ce31c5391a44c5e56d1e3c617556a" }, "downloads": -1, "filename": "i18nparse-0.7.0.tar.gz", "has_sig": false, "md5_digest": "af28c834a8728d81e575c26134ea395d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6638, "upload_time": "2018-12-06T14:16:24", "url": "https://files.pythonhosted.org/packages/b0/39/d1adb35cd7542754f63c22bf83732694a3418e0c7e5b258f124ca0b24c86/i18nparse-0.7.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cf303723918e1b844f41a2b548217749", "sha256": "1bc6ed6808c3b09f141c30af0d3eb79271eddeae31fced121dda8bf3adb57eae" }, "downloads": -1, "filename": "i18nparse-0.7.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cf303723918e1b844f41a2b548217749", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5940, "upload_time": "2018-12-06T14:16:23", "url": "https://files.pythonhosted.org/packages/d2/e4/adf38192eb16ebb130631754c48374c85adf53b33158d45f6bd92904c8c9/i18nparse-0.7.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af28c834a8728d81e575c26134ea395d", "sha256": "133c9c78c764826c34b62fecfc2c75ed435ce31c5391a44c5e56d1e3c617556a" }, "downloads": -1, "filename": "i18nparse-0.7.0.tar.gz", "has_sig": false, "md5_digest": "af28c834a8728d81e575c26134ea395d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6638, "upload_time": "2018-12-06T14:16:24", "url": "https://files.pythonhosted.org/packages/b0/39/d1adb35cd7542754f63c22bf83732694a3418e0c7e5b258f124ca0b24c86/i18nparse-0.7.0.tar.gz" } ] }