|
6 months ago | |
---|---|---|
custom | 1 year ago | |
lang | 6 months ago | |
README.md | 2 years ago | |
generate_home_tmpl.py | 6 months ago |
These files are the cutsom files for git.friendi.ca.
They are overriding the default template files of gitea.
The content of custom
needs to be placed in /var/lib/gitea
(at least at git.friendi.ca).
Translation of the strings can be done at Transifex with the rest of the project resources.
generate_home_tmpl.py
file, those that start with a str_
in the name.pygettext -p ./lang/C/ generate_home_tmpl.py
messages.pot
file and push it to the repository at git.friendi.calang/$lngcode/LC_MESSAGES/messages.pot
messages.pot
file and set the characterset to UTF-8.
"Content-Type: text/plain; charset=UTF-8\n"
messages.pot
file to messages.mo
using msgfmt messages.pot
python3 generate_home_tmpl.py
it will recreate the custom/templates/home.tmpl
filecustom/templates/
directory of the gitea instance.The python script to generate the template file has been released under the terms of the MIT license.