Customisation files for gitea instance at git.friendi,ca
|
|
||
|---|---|---|
| custom | ||
| lang | ||
| generate_home_tmpl.py | ||
| README.md | ||
Custom files for git.friendi.ca
These are the custom files for git.friendi.ca, which override the default template files of Forgejo.
The content of the custom directory is mounted inside the Docker container at /var/lib/gitea/custom.
Translation
Translation of the strings can be done at Transifex with the rest of the project resources.
Workflow
- Update the strings at the top of the
generate_home_tmpl.pyfile — those that start with astr_in the name. - Extract them with
pygettext -p ./lang/C/ generate_home_tmpl.py - Commit the new
messages.potfile and push it to the repository at git.friendi.ca - Wait for Transifex to pick up the changes and the translation teams to make the new translations
- Download the finished translations to
lang/$langcode/LC_MESSAGES/messages.pot - Edit the
messages.potfile and set the character set to UTF-8:"Content-Type: text/plain; charset=UTF-8\n" - Convert the
messages.potfile tomessages.mousingmsgfmt messages.pot - Run
python3 generate_home_tmpl.pyto recreate thecustom/templates/home.tmplfile - Upload that file and copy it to the
custom/templates/directory of the gitea instance.
License
The Python script to generate the template file has been released under the terms of the MIT license.