{"id":19777510,"url":"https://github.com/ilib-js/ilib-lint-python-gnu","last_synced_at":"2025-09-17T23:31:48.025Z","repository":{"id":90506448,"uuid":"582774252","full_name":"iLib-js/ilib-lint-python-gnu","owner":"iLib-js","description":"An ilib-lint plugin that allows it to parse po files and to define rules appropriate for resources from python using the gnu gettext library","archived":false,"fork":false,"pushed_at":"2024-11-08T16:40:59.000Z","size":66,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-12T05:30:54.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iLib-js.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-27T20:43:18.000Z","updated_at":"2024-04-24T04:34:43.000Z","dependencies_parsed_at":"2024-11-12T05:35:55.975Z","dependency_job_id":null,"html_url":"https://github.com/iLib-js/ilib-lint-python-gnu","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python-gnu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python-gnu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python-gnu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python-gnu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLib-js","download_url":"https://codeload.github.com/iLib-js/ilib-lint-python-gnu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233430257,"owners_count":18675058,"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":[],"created_at":"2024-11-12T05:25:20.289Z","updated_at":"2025-09-17T23:31:42.712Z","avatar_url":"https://github.com/iLib-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e :warning: **Deprecation Notice** :warning:\n\u003e This repository has been deprecated. Please use the corresponding package from the [iLib-js monorepo](https://github.com/iLib-js/ilib-mono) instead.\n\n# ilib-lint-python-gnu\n\nAn ilib-lint plugin that provides the ability to check resources that come\nfrom code written in python using the gnu gettext library.\n\n\n## Installation\n\n```\nnpm install --save-dev ilib-lint-python-gnu\n\nor\n\nyarn add --dev ilib-lint-python-gnu\n```\n\nThen, in your `ilib-lib-config.json`, add a script:\n\n```\n    \"plugins\": [\n        \"python-gnu\"\n    ],\n```\n\nPlease note: nodejs version 14 or above is required to run ilib-lint, as it\nis written with ESM modules.\n\n## Parser\n\nThis plugin provides a class that can parse PO files and convert them into\nresources. This class depends on the ilib-loctool-po plugin to do the heavy\nlifting.\n\n## Rules\n\nThe following rules apply to any resources from any file type, but are\ndesigned to check resources that come from python code using the gnu gettext\nlibrary.\n\n- resource-printf-params-match - check that any printf-style substitution\n  parameters (like \"%s\" or \"%d\") that appear in the source string also appear\n  in the target strings.\n- resource-printf-params-numbered - check that if the source string contains more\n  than one substitution parameter, then the parameters are properly numbered\n  so that the translators can rearrange them as needed by the\n  grammar of the target language.\n\n## RuleSets\n\nThis plugin defines one ruleset `python-gnu` that will turn on all the rules\nthat this plugin supports. Users may rely on this ruleset when defining their\nfile types.\n\n## License\n\nCopyright © 2022-2024, JEDLSoft\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n## Release Notes\n\n### v2.0.1\n\n- Fixed a bug where the exports were not properly set up in the package.json\n\n### v2.0.0\n\n- Updated dependency from i18nlint-common to ilib-lint-common\n    - IntermediateRepresentation now takes a SourceFile as an\n      parameter to the constructor instead of a file path\n    - can now be loaded by ilib-lint \u003e= v2\n\n### v1.2.0\n\n- updated dependencies, including updating to i18nlint-common 2.x\n- parser now returns an array of IntermediateRepresentation objects\n\n### v1.1.0\n\n- updated dependencies\n- added getType() method to the POParser plugin\n- now return the results of parsing from the POParser.parse() method\n\n### v1.0.0\n\n- initial version\n- PO parser for gnu .po and .pot files\n- Python rules for gnu gettext resources\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-lint-python-gnu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-lint-python-gnu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-lint-python-gnu/lists"}