{"id":21400337,"url":"https://github.com/oefenweb/python-glibc-locale-tools","last_synced_at":"2025-03-16T15:55:15.214Z","repository":{"id":27284512,"uuid":"30757993","full_name":"Oefenweb/python-glibc-locale-tools","owner":"Oefenweb","description":"Tools to work with (glibc) locale files (e.g. LC_MONETARY, LC_NUMERIC, LC_TIME)","archived":false,"fork":false,"pushed_at":"2020-06-02T08:42:09.000Z","size":134,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T02:44:43.721Z","etag":null,"topics":["cakephp","glibc","glibc-locale","locale","locales","python","python2"],"latest_commit_sha":null,"homepage":null,"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/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-02-13T13:44:49.000Z","updated_at":"2020-06-02T08:42:08.000Z","dependencies_parsed_at":"2022-09-02T05:00:26.989Z","dependency_job_id":null,"html_url":"https://github.com/Oefenweb/python-glibc-locale-tools","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fpython-glibc-locale-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fpython-glibc-locale-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fpython-glibc-locale-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fpython-glibc-locale-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/python-glibc-locale-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893905,"owners_count":20364916,"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":["cakephp","glibc","glibc-locale","locale","locales","python","python2"],"created_at":"2024-11-22T15:21:12.340Z","updated_at":"2025-03-16T15:55:15.174Z","avatar_url":"https://github.com/Oefenweb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glibc-locale-tools\n\n[![Build Status](https://travis-ci.org/Oefenweb/python-glibc-locale-tools.svg)](https://travis-ci.org/Oefenweb/python-glibc-locale-tools)\n\n`glibc-locale-tools` provides some tools to work with (glibc) locale files (e.g. `LC_MONETARY`, `LC_NUMERIC`, `LC_TIME`)\n\n## Requirements\n\n* Python 2.6 seems to work but running tests fails\n* Python 2.7\n\n## Usage\n\n### locale-extract-category\n\nExtracts a given `LC_*` section (category) from a locale file.\n\n```sh\nbin/locale-extract-category \u003c \\\n  glibc_locale_tools/test/data/nl_NL LC_TIME \u003e \\\n  glibc_locale_tools/test/data/nl_NL.LC_TIME.actual;\n```\n\n__NOTE__: This can be useful because some (web) framework, for instance [CakePHP](http://book.cakephp.org/2.0/en/core-libraries/internationalization-and-localization.html), use `LC_TIME` files to provide localisation.\n\n### locale-decode-category\n\nDecodes a given `LC_*` (category) file to a human readable format.\n\n```sh\nbin/locale-decode-category \u003c \\\n  glibc_locale_tools/test/data/nl_NL.LC_TIME.expected \u003e \\\n  glibc_locale_tools/test/data/nl_NL.LC_TIME.decoded;\n```\n\n__NOTE__: This can be useful when you want to make changes in for instance `LC_TIME`. Use `locale-encode-category` to re-encode.\n\n### locale-encode-category\n\n(Re)encodes a given `LC_*` (category) file to a machine readable format.\n\n```sh\nbin/locale-encode-category \u003c \\\n  glibc_locale_tools/test/data/nl_NL.LC_TIME.decoded \u003e \\\n  glibc_locale_tools/test/data/nl_NL.LC_TIME.encoded;\n```\n\n__NOTE__: This can be useful when you want to re-encode for instance `LC_TIME`.\n\n## References\n\n* [Glibc locale files](http://localization-guide.readthedocs.org/en/latest/guide/locales/glibc.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fpython-glibc-locale-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fpython-glibc-locale-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fpython-glibc-locale-tools/lists"}