{"id":13594950,"url":"https://github.com/jnavila/git-manpages-l10n","last_synced_at":"2025-04-09T03:13:07.040Z","repository":{"id":45431486,"uuid":"162846890","full_name":"jnavila/git-manpages-l10n","owner":"jnavila","description":"Translation of git manpages","archived":false,"fork":false,"pushed_at":"2025-03-23T10:55:38.000Z","size":175296,"stargazers_count":353,"open_issues_count":10,"forks_count":238,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-04-02T02:12:31.014Z","etag":null,"topics":["documentation","git","hacktoberfest","l10n"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnavila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-12-22T22:31:54.000Z","updated_at":"2025-03-30T00:45:16.000Z","dependencies_parsed_at":"2024-06-04T21:48:05.648Z","dependency_job_id":"7bd0ece9-e8d1-456d-a0c7-f7264d5c8b77","html_url":"https://github.com/jnavila/git-manpages-l10n","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnavila%2Fgit-manpages-l10n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnavila%2Fgit-manpages-l10n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnavila%2Fgit-manpages-l10n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnavila%2Fgit-manpages-l10n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnavila","download_url":"https://codeload.github.com/jnavila/git-manpages-l10n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968374,"owners_count":21025823,"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":["documentation","git","hacktoberfest","l10n"],"created_at":"2024-08-01T16:01:41.412Z","updated_at":"2025-04-09T03:13:07.017Z","avatar_url":"https://github.com/jnavila.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# GIT Documentation Translations\n\nThis project holds the translations for the documentation of Git. This document describes how you can contribute to the effort of enhancing the language coverage and maintaining the translation.\n\nThis project is *not* about translating Git itself although the base content (the manpages) is extracted from it. Git uses a workflow for translations which is different from the one used by Git Manpages. If you feel interested, please refer to the [specific instructions][].\n\n## Presentation\n\nThis project relies on the Git project itself for the original version of the Git manpages and documents. In order to allow the translations in a maintainable way over the changes to the Git project, the source files are processed with a converter named [po4a][] . This tool converts the source files into gettext po files which can be processed just like gettext internationalization files.\n\nThe source files for the manpages are written in [Asciidoc][] with some custom macros. Although the documents are split into simple paragraphs by po4a for translations, Asciidoc inline formatting marks are retained.\n\nThe two character language translation codes are defined by ISO_639-1,\nas stated in the gettext(1) full manual, appendix A.1, Usual Language\nCodes.\n\n# Workflow\n\n## Translation Process Flow\n\nThe overall data-flow looks like this:\n\n    +-------------------+            +--------------------+\n    | Git source code   |----(2)----\u003e| Git doc translation|\n    | repository    (1) |   +--------| repository         |\n    +-------------------+   |        +--------------------+\n                           (6)             |      ^\n                            |             (3)     |\n                            |              |     (5)\n                            V              V      |\n          +--------------------+     +--------------------+\n          | Git translated doc |     | Language Team (4)  |\n          | repository         |     +--------------------+\n   \t      +--------------------+\n\n 1. The original documentation files are tagged for a new release \n 2. L10n coordinator pulls from the source and updates the local\n    documentation source files and the message template\n    po/documentation.pot, and merges the changes into all\n    po/documentation.XX.po files\n 3. Updated files are available on Weblate.org /Language team pulls\n    from Git doc translation repository\n 4. Language team updates the message file documentation.XX.po\n 5. L10n coordinator pulls from Language team\n 6. L10n coordinator updates translated source files for external use \n\nThere are basically two ways to translate the documents. The first one\nuses the standard Git workflow, similar to any software project. The\nsecond one uses the more accessible web tool at Weblate.org and is the\npreferred way of contributing.\n\n## Contributing through Weblate\n\nThe translation files are uploaded to the [hosted weblate website][],\nwhere contributors can easily translate the documents and use all the\nhelpers that are provided.\n\nContributing to Git manpages translation requires you to acknowledge\nthe project's code of contributors.\n\n### Contributing to an existing translation\n\nIf the language you plan to translate is already listed, you can just\njump to the language's management page and start fixing translations\nor tackling untranslated content. Your inputs will update the\ntranslation file for your language.\n\nThe web application handles your submissions and generates a Git\ncommit in the local repository of weblate after one day of inactivity.\n\n### Creating a new language translation\n\nYou cannot directly create a new language in Weblate by yourself, but\nyou can request the creation of the language to the maintainer. Upon\nreceiving this request, the maintainer will create the po translation\nfile and push it.\n\nWeblate will update the list of available language accordingly and you\ncan then start to contribute.\n\n## Contributing with the Git workflow\n\n### Contributing to an existing translation\n\nAs a contributor for a language XX, you should first check TEAMS file\nin this directory to see whether a dedicated team for your language XX\nexists. Fork the dedicated repository and start to work if it exists.\n\nOtherwise, you can just fork this project and start translating. When\ncommitting, don't forget to follow the code of contribution and add\nyour \"Signed-off-by:\" line.\n\nWhen you feel that your work is worth an update (e.g. a few new\nmanpages have been translated), you open a pull request to this\nrepository in order to get your changes merged.\n\n### Creating a new language translation\n\nIf you are the first contributor for the language XX, please fork this\nrepository, prepare and/or update the translated message file\npo/documentation.XX.po (described later), and ask the l10n coordinator\nto pull your work.\n\nIf there are multiple contributors for the same language, please first\ncoordinate among yourselves and nominate the team leader for your\nlanguage, so that the l10n coordinator only needs to interact with one\nperson per language.\n\nYou add a translation for the first time by\n\n * initializing the translation po file by running:\n       msginit --local=XX\n   in the po/ directory, where XX is the locale, e.g. \"de\", \"is\", \"pt_BR\",\n   \"zh_CN\", etc.\n * pre-translating the file for unchanged strings by running:\n       scripts/pre-translate-po po/documentation.XX.po\n\nA file po/documentation.XX.po was created, corresponding\nto the newly created translation and is ready for your translations.\n\nThen edit the automatically generated copyright info in your new\ndocumentation.XX.po to be correct, e.g. for Icelandic:\n\n    @@ -1,6 +1,6 @@\n    -# Icelandic translations for PACKAGE package.\n    -# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER\n    -# This file is distributed under the same license as the PACKAGE package.\n    +# Icelandic translations for Git documentation.\n    +# Copyright (C) 2010 Ævar Arnfjörð Bjarmason \u003cavarab@gmail.com\u003e\n    +# This file is distributed under the same license as the Git package.\n     # Ævar Arnfjörð Bjarmason \u003cavarab@gmail.com\u003e, 2010.\n\nAnd change references to PACKAGE VERSION in the PO Header Entry to\njust \"Git Documentation\":\n\n    perl -pi -e 's/(?\u003c=\"Project-Id-Version: )PACKAGE VERSION/Git\n    Documentation/' documentation.XX.po\n\nOnce you are done testing the translation (see below), commit the\ndocumentation.XX.po files and ask the l10n coordinator to pull from you.\n\n### Testing your changes\n\n(This is done by the language teams, after creating or updating\ndocumentation.XX.po file).\n\nBefore being able to compile the documents, you need to have a working\ncompilation toolchain which you can get by running:\n\n    $ sh ci/install_po4a.sh # install a patched version of po4a\n    $ bundle install        # install  asciidoctor\n\nBefore you submit your changes do:\n\n    $ bundle exec make all\n\nOn systems with GNU gettext (i.e. not Solaris) and po4a, this will try\nto merge translations with the source asciidoc files into translated\nasciidoc files and compile them to manpages.\n\nThen you can check the translated manpages, for instance for `git add`\nin French:\n\n    $ man -l fr/git-add.1\n\nand verify how your translated manpage is rendered.\n\n# Advices for translators\n\n## Helpful Tips\n\nGit is a [version control system](https://en.wikipedia.org/wiki/Version_control) (VCS in short) and this kind of software expects users to understand some dedicated concepts. More generally, translating a tool requires at least a minimum of knowledge of its purpose and use. Git is no exception, and its manpages are full of its specifics.\n\nHere are a few helpful advices in order to help you work through this translation.\n\n### Know a little more about Git\n\nAs said earlier, knowing the base of Git is necessary in order to prevent mistranslations. Even if you are not going to be an expert at Git (you could, given the content of the manpages), you can try to install it and make a basic use of it. To get you started, please refer to the introductory chapters of the [Progit book](https://git-scm.com/book/en/v2), at least the first three chapters.\n\n### Set up a glossary of the key concepts\n\nWhen translating a software where some words have been chosen to hold some key concepts, it is often necessary to maintain a list of the selected translation of these words, that convey the concept correctly and are used in every place the original word is used.\n\nGit provides a [glossary](https://git-scm.com/docs/gitglossary) with definitions and Weblate has a [glossary feature](https://docs.weblate.org/en/latest/user/glossary.html) where a reminder is shown when a glossary term appears in the original string. This is an excellent way to enhance the quality of the translation, while helping translators share the same vocabulary.\n\nAlso, some translators of git maintain their own glossary of terms in the headers of the their translation files. You can find these files [in the repository of Git](https://github.com/git/git/tree/master/po).\n\n### Learn a little about Asciidoc formatting\n\nWhile po4a is quite good at extracting paragraphs from the Asciidoc sources, all the inline formattings are still pushed in the po files. For the translations to be faithful to the original these formatting marks must be pushed at the right places in the translated content.\n\nLearn to recognize [these marks][] and to manage them in your content. \n\n### Translate placeholders in command lines\n\nWhen some template command lines contain `\u003cterms-in-brackets\u003e`, it is helpful for the reader that these terms are translated in their language and used repeatedly (use the glossary for that). That way, the reader knows at a glance that this part is a placeholder and the corresponding concept.\n\n### Translate in order\n\nIf you don't specify an order on Weblate, the source segments are presented in the order priority, which places in first the content of most used git commands. The corresponding manpages are more susceptible to be read by beginners. So your work has the biggest impact right when starting.\n\n## Get in touch with the maintainer\n\nIn case you need to contact the maintainer for e.g. an issue in a source string or an issue with the translated manpages, the project is hosted on [GitHub][] where issues can be opened.\n\n# Maintainer's Tasks\n\n## Maintaining the documentation.pot file\n\n(This is done by the documentation l10n coordinator).\n\nThe documentation.pot file in the po directory contains a message\ncatalog extracted from Git's documentation sources. The l10n\ncoordinator maintains it by adding new translations or update existing\nones with po4a(1).  In order to update the document sources to extract\nthe messages from, the l10n coordinator is expected to pull from the\nmain git repository at strategic point in history (e.g. when a major\nrelease and release candidates are tagged), and then run \"make\nupdate-sources\" at the top-level directory.\n\nLanguage contributors use this file to prepare translations for their\nlanguage, but they are not expected to modify it.\n\n[specific instructions]: https://github.com/git/git/blob/master/po/README.md\n[po4a]: https://github.com/mquinson/po4a\n[Asciidoc]: https://asciidoc-py.github.io/index.html\n[hosted weblate website]: https://hosted.weblate.org/projects/git-manpages/\n[these marks]: https://docs.asciidoctor.org/asciidoc/latest/text/\n[Github]: https://github.com/jnavila/git-manpages-l10n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnavila%2Fgit-manpages-l10n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnavila%2Fgit-manpages-l10n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnavila%2Fgit-manpages-l10n/lists"}