{"id":19204617,"url":"https://github.com/openttd/nile-tools","last_synced_at":"2025-07-12T01:03:53.889Z","repository":{"id":233139435,"uuid":"786131404","full_name":"OpenTTD/nile-tools","owner":"OpenTTD","description":"A tool to import OpenTTD's language files into nile","archived":false,"fork":false,"pushed_at":"2024-05-02T18:57:26.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T06:21:41.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/OpenTTD.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":"2024-04-13T14:27:59.000Z","updated_at":"2024-05-01T13:59:35.000Z","dependencies_parsed_at":"2024-04-14T04:37:01.021Z","dependency_job_id":"b612fd2e-005b-40d4-80c6-d493f4f2b3e7","html_url":"https://github.com/OpenTTD/nile-tools","commit_stats":null,"previous_names":["truebrain/nile-import","openttd/nile-tools"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/OpenTTD/nile-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fnile-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fnile-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fnile-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fnile-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenTTD","download_url":"https://codeload.github.com/OpenTTD/nile-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fnile-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922782,"owners_count":23683690,"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-09T13:08:56.652Z","updated_at":"2025-07-12T01:03:53.784Z","avatar_url":"https://github.com/OpenTTD.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nile tools\n\nThis repository contains various of tools to help `nile` with importing/exporting OpenTTD's language files.\n\n## Importing english\n\nFor `english`, it simply converts the OpenTTD `.txt` format into `JSON`, by splitting up the string and English text.\nAdditionally, it uses `git blame` to find the \"version\" of each string (where \"version\" here is the hash of the commit that last changed the string).\n\nThis importing can be done on regular intervals, to always feed `nile` the latest `english`.\n\n## Importing other languages\n\nFor other languages, it does the same, except for \"version\".\nHere it uses `git blame` to find which commit changed the translation, then uses `git blame` on the `english.txt` to find the \"version\" of the base string.\nThis is a good approximation of what version of the string was translated.\n\nThis is normally only done once, when a new project is switched over to `nile`.\n\n## Installation\n\nHave Rust [installed](https://www.rust-lang.org/tools/install).\n\n## Development\n\n```bash\ncargo run -- -p \u003cpath-to-OpenTTD\u003e \u003clanguage\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenttd%2Fnile-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenttd%2Fnile-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenttd%2Fnile-tools/lists"}