{"id":17148803,"url":"https://github.com/trustmaster/cotlang","last_synced_at":"2025-03-24T11:41:06.350Z","repository":{"id":140830523,"uuid":"8587091","full_name":"trustmaster/cotlang","owner":"trustmaster","description":"Cotonti language files manipulation tools to help translation","archived":false,"fork":false,"pushed_at":"2013-03-16T08:52:58.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T16:44:10.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trustmaster.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-05T19:22:38.000Z","updated_at":"2014-04-24T21:41:16.000Z","dependencies_parsed_at":"2023-03-12T00:16:03.186Z","dependency_job_id":null,"html_url":"https://github.com/trustmaster/cotlang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fcotlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fcotlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fcotlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fcotlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trustmaster","download_url":"https://codeload.github.com/trustmaster/cotlang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245265867,"owners_count":20587409,"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-10-14T21:29:53.087Z","updated_at":"2025-03-24T11:41:06.327Z","avatar_url":"https://github.com/trustmaster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cotonti Langfile Tools\n\nThis repo contains a set of command-line tools which can help translators\nto keep localization files up2date.\n\n## Requirements\n\nThese tools are written in Python and require Python 2.7 or later to be installed.\n\n## Usage\n\nCommon syntax is:\n\n```\npython \u003cpath_to_script.py\u003e \u003carguments\u003e\n```\n\n### cotlangcp.py\n\nThis script can be used to copy only language files from one source tree to another. Type\n\n```\npython cotlangcp.py -h\n```\n\nto see all options. Example usage:\n\n```\npython cotlangcp.py ~/htdocs/cotonti ~/proj/cot-i18n -l ru\n```\n\n### cotlangtx.py\n\nThis tool is used to generate a config file for our [project on Transifex](https://www.transifex.com/projects/p/cotonti/). It is currently experimental.\n\nHelp:\n\n```\npython cotlangtx.py -h\n```\n\nExample usage:\n\n```\npython cotlangtx.py ~/proj/cot-i18n\n```\n\n### cotlangfix.py\n\nThis tool is used to modify Cotonti lang files and solve incompatibilities with Transifex. It does the following:\n\n* converts array entries into flat entries in several ways;\n* detects multiline entries for manual conversion;\n\nHelp:\n\n```\npython cotlangfix.py -h\n```\n\nExample usage:\n\n```\npython cotlangfix.py ~/htdocs/cotonti ~/temp/fixed-langs\n```\n\nor to modify source tree directly:\n\n```\npython cotlangfix.py ~/htdocs/cotonti\n```\n\n### cotlangmv.py\n\nThis tool changes language code for a specific locale. For example, traditional Cotonti langfiles use 'ua' code for Ukrainian language, but Transifex uses 'uk' code for them. This example command changes the code from 'ua' to 'uk':\n\n```\npython cotlangmv.py ~/proj/cot-i18n ua uk\n```\n\n### cotlangrm.py\n\nRemoves a specific locale from the source tree. Be careful with it.\n\nExample, removing 'ua' locale from source tree:\n\n```\npython cotlangrm.py ~/proj/cot-i18n ua\n```\n\n### cotlangmod.py\n\nTransifex will skip all files which have modification date older than Transifex locale was created on site. It means that you cannot import some of the existing locales.\n\nThis tool changes modification time to the current time for a locale that you specify, so that you can them push them to server.\n\nExample usage for 'nl' locale:\n\n```\npython cotlangmod.py ~/proj/cot-i18n nl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustmaster%2Fcotlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrustmaster%2Fcotlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustmaster%2Fcotlang/lists"}