Prepare for Gettext translations #2

Open
opened 2024-11-30 02:58:18 +01:00 by dirk · 0 comments
Owner

Configure Repository and Codeberg Translate project component

  • Add weblate-bot as contributor (write permissions)
  • Add new component in Codeberg Translate translation project
    1. Modname
    2. [slug]
    3. [unchecked]
    4. [unchanged]
    5. English
    6. Git
    7. [repo URL]
    8. main
  • Choose translation file format gettext PO file
  • Create component
    1. License should be detected as MIT
    2. Push URL = Repo URL
    3. Push branch = main
    4. Template for new translations: locale/modname.de.po
  • Manage
    • Translation
      1. St additional flag for placeholder: placeholders:r"@[0-9]"
      2. Enforced checks
        • Double Space
        • Ellipsis
        • All the “missed/missing” ones
        • All the “starting/trailing” ones
      3. Version control
        • Repository push URL including API key
    • Files
      1. Uncheck “Edit base file”
  • Add repo webhook “Forgejo”
    • https://translate.codeberg.org/hooks/gitea/
    • POST
    • json
    • secret (Manage -> Users -> API Access)
    • push
    • *
    • [empty]
    • active
  • Re-open webhook for testing
  • Where old translations exist, migrate them to Codeberg Translate
    • Push changes from Codeberg Translate to the repo
  • Content database
  • Readme
  • Forum post
# Translations

Missing your language? Feel free to add it!

[![Translation status](https://translate.codeberg.org/widget/linuxdirks-luanti-mods/COMPONENT/287x66-grey.png)](https://translate.codeberg.org/projects/linuxdirks-luanti-mods/COMPONENT)

## Configure Repository and Codeberg Translate project component * [ ] Add *weblate-bot* as contributor (write permissions) * [ ] Add new component in Codeberg Translate translation project 1. Modname 2. [slug] 3. [unchecked] 4. [unchanged] 5. English 6. Git 7. [repo URL] 8. main * [ ] Choose translation file format *gettext PO file* * [ ] Create component 1. License should be detected as MIT 2. Push URL = Repo URL 3. Push branch = main 4. Template for new translations: locale/modname.de.po * [ ] Manage * Translation 1. St additional flag for placeholder: `placeholders:r"@[0-9]"` 2. Enforced checks * Double Space * Ellipsis * All the “missed/missing” ones * All the “starting/trailing” ones 2. Version control * Repository push URL including API key * Files 1. [ ] Uncheck “Edit base file” * [ ] Add repo webhook “Forgejo” * `https://translate.codeberg.org/hooks/gitea/` * POST * json * secret (Manage -> Users -> API Access) * push * \* * [empty] * active * [ ] Re-open webhook for testing * [ ] Where old translations exist, migrate them to Codeberg Translate * [ ] Push changes from Codeberg Translate to the repo ## Add link to translation component * [ ] Content database * [ ] Readme * [ ] Forum post ```Markdown # Translations Missing your language? Feel free to add it! [![Translation status](https://translate.codeberg.org/widget/linuxdirks-luanti-mods/COMPONENT/287x66-grey.png)](https://translate.codeberg.org/projects/linuxdirks-luanti-mods/COMPONENT) ```
dirk self-assigned this 2024-11-30 03:02:13 +01:00
dirk changed title from Switch to Gettext translations to Prepare for Gettext translations 2024-12-05 04:02:57 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
Reference: dirk/xcoal#2
No description provided.