{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Operating System :: MacOS", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n\n[]()\n[](https://pypi.org/project/mac-localized/)\n\n#### Installation\n```bash\n$ [sudo] pip install mac-localized\n```\n\n#### How it works\n```\nRelease Notes.localized/\n .localized/\n en.strings\n de.strings\n ja.strings\n```\n\n`.strings`:\n```\n\"Release Notes\" = \"Localized name\";\n```\n\n#### Functions\nfunction|`__doc__`\n-|-\n`mac_localized.fullpath(path)` |return path with `.localized` postfix\n`mac_localized.get(path, lang)` |return translation\n`mac_localized.load(path)` |return dictionary with keys as languages and translations with values\n`mac_localized.mkdir(path, **strings)` |mkdir (if not exists), write translations and return folder fullpath\n`mac_localized.name(path)` |return folder name without `.localized` prefix\n`mac_localized.rm(path, languages=None)` |rm .localized/ lang files or .localized/ folder\n`mac_localized.update(path, **strings)` |update folder translations\n`mac_localized.strings.find(path)` |return a list with `.strings` files\n`mac_localized.strings.load(path)` |return dictionary with keys as languages and translations with values\n\n#### Examples\n```python\n>>> import mac_localized\n>>> mac_localized.mkdir(\"folder\",ru=\"ru translation\",de=\"de translation\")\n'folder.localized'\n\n>>> mac_localized.load(\"folder\")\n{'ru':'ru translation','de':'de translation'}\n\n>>> mac_localized.update(\"folder\",ru=\"new ru translation\",de=\"new de translation\")\n\n>>> mac_localized.get(\"folder\",\"ru\")\n'new ru translation'\n\n>>> mac_localized.rm(\"folder\",[\"ru\"])\n>>> mac_localized.rm(\"folder\") # rm all localizations\n```\n\n#### Links\n+ [Localizing the Name of a Directory](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemAdvancedPT/LocalizingtheNameofaDirectory/LocalizingtheNameofaDirectory.html)\n+ [Display Names](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFileSystem/Articles/DisplayNames.html)\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/looking-for-a-job/mac-localized.py", "keywords": "localization", "license": "", "maintainer": "", "maintainer_email": "", "name": "mac-localized", "package_url": "https://pypi.org/project/mac-localized/", "platform": "", "project_url": "https://pypi.org/project/mac-localized/", "project_urls": { "Homepage": "https://github.com/looking-for-a-job/mac-localized.py" }, "release_url": "https://pypi.org/project/mac-localized/2019.4.13/", "requires_dist": null, "requires_python": "", "summary": "macOS '.localized' localized folder name", "version": "2019.4.13" }, "last_serial": 5587479, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "b53f670a8f09ed71117c3a507f705967", "sha256": "fb07475c1100fbf40e1173fbc3030614f5e945a669c05de42cfa9faf0a2e5bfb" }, "downloads": -1, "filename": "mac_localized-0.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b53f670a8f09ed71117c3a507f705967", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3034, "upload_time": "2018-10-27T18:25:41", "url": "https://files.pythonhosted.org/packages/b9/68/2c6db03ed09efe34e9e767211b5a69ebe9135c926250644ecbfb4484e7ff/mac_localized-0.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6c64f52af35cc5eb447d8f53f993c2a", "sha256": "82af3753e3ee24f89ed7a05ab7e08a08e1bcbfb60b387acb832c85da6eced2a1" }, "downloads": -1, "filename": "mac-localized-0.0.0.tar.gz", "has_sig": false, "md5_digest": "b6c64f52af35cc5eb447d8f53f993c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2102, "upload_time": "2018-10-27T18:25:43", "url": "https://files.pythonhosted.org/packages/0b/02/9242b1afa2eb6935f786707315966e970c19af0d162da700c2978d9c1749/mac-localized-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "327193911922d510c8bc25f36f8eaed6", "sha256": "605b883024a6d3b8a85aa04f8d1a1566485c254f48d8b5e82b26544def9d3ab3" }, "downloads": -1, "filename": "mac_localized-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "327193911922d510c8bc25f36f8eaed6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3093, "upload_time": "2018-10-27T19:09:08", "url": "https://files.pythonhosted.org/packages/86/3a/a0f35451ffa1b2913b7c3cba2fde630f8dd3f78e2f66f12b0f78f0901541/mac_localized-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c4465e1222cfba8c37ccee088093b334", "sha256": "b6fbbe1c876b5252b7844e7ca9a29416f6bdab4760ac706a4dd706ef463213b9" }, "downloads": -1, "filename": "mac-localized-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c4465e1222cfba8c37ccee088093b334", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2123, "upload_time": "2018-10-27T19:09:09", "url": "https://files.pythonhosted.org/packages/2b/91/417b42ea3f9d83758443f431fad48999aa60d661d8d56e39c277c9647892/mac-localized-0.0.1.tar.gz" } ], "2018.11.20": [ { "comment_text": "", "digests": { "md5": "d4217c9b65d84626c3642acb4326a839", "sha256": "23bfb7ae30b8fee3a7b3c9034e082ff452c78802278a66f4cdf43b2cd33e3895" }, "downloads": -1, "filename": "mac_localized-2018.11.20-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d4217c9b65d84626c3642acb4326a839", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11471, "upload_time": "2018-11-21T01:36:37", "url": "https://files.pythonhosted.org/packages/2d/3a/8f372f80f76630ab6bf6fc72784c926397a59440bfc5ef6272fd275a4f58/mac_localized-2018.11.20-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cfb1e3410bbdd583dd839ddbddf25b08", "sha256": "a193ed729284b95c307d1cf7b736c0729e9c85ab46589d9c55d698268906032a" }, "downloads": -1, "filename": "mac-localized-2018.11.20.tar.gz", "has_sig": false, "md5_digest": "cfb1e3410bbdd583dd839ddbddf25b08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2412, "upload_time": "2018-11-21T01:36:39", "url": "https://files.pythonhosted.org/packages/f9/10/36e399d19b930bfd9fd8cd3da457b99bf643ea4e72c64df85b43e1f1697b/mac-localized-2018.11.20.tar.gz" } ], "2019.3.22": [ { "comment_text": "", "digests": { "md5": "1537b8318d42e628af3b63af5860c5d6", "sha256": "e3542a8e9476d05b7158eab76ac3b01cd01ae82f59ae1503023eb62a0e788b6d" }, "downloads": -1, "filename": "mac_localized-2019.3.22-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1537b8318d42e628af3b63af5860c5d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 110891, "upload_time": "2019-03-24T11:11:56", "url": "https://files.pythonhosted.org/packages/b7/94/2dd3d4793af89045a9e222655bdc2380ff87c96dffe013a65110a8312d62/mac_localized-2019.3.22-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3949b099ad0b351dfd0bfaef666c1d65", "sha256": "6c61a3511d601b12a96b8c96d248aefecd7fc19525c76e1ae892a0b5a1b63ab7" }, "downloads": -1, "filename": "mac-localized-2019.3.22.tar.gz", "has_sig": false, "md5_digest": "3949b099ad0b351dfd0bfaef666c1d65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2544, "upload_time": "2019-03-24T11:11:58", "url": "https://files.pythonhosted.org/packages/bd/93/03152ee4a7d5d7e5720f0b48b0e01a376d8626b9681ac5978e7bf3e84069/mac-localized-2019.3.22.tar.gz" } ], "2019.4.13": [ { "comment_text": "", "digests": { "md5": "0a6805635048a61918992c8a7b83732e", "sha256": "36fecc42f1035cdd74a06b0510d2fce4ea93705ca830847fd5ea3ce2851eb171" }, "downloads": -1, "filename": "mac-localized-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "0a6805635048a61918992c8a7b83732e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2577, "upload_time": "2019-04-13T08:10:01", "url": "https://files.pythonhosted.org/packages/dc/e3/af1b08ab166b4b2175ad1111d8400f49689c438b5212c33db78b96e86711/mac-localized-2019.4.13.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a6805635048a61918992c8a7b83732e", "sha256": "36fecc42f1035cdd74a06b0510d2fce4ea93705ca830847fd5ea3ce2851eb171" }, "downloads": -1, "filename": "mac-localized-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "0a6805635048a61918992c8a7b83732e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2577, "upload_time": "2019-04-13T08:10:01", "url": "https://files.pythonhosted.org/packages/dc/e3/af1b08ab166b4b2175ad1111d8400f49689c438b5212c33db78b96e86711/mac-localized-2019.4.13.tar.gz" } ] }