Compare commits

..

9 commits

11 changed files with 21 additions and 16 deletions

View file

@ -1,9 +1,7 @@
# Custom files for git.friendi.ca
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` and `/usr/share/gitea` (at least at git.friendi.ca).
Files there are accessed in the `assets` path.
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
@ -11,17 +9,17 @@ Translation of the strings can be done at [Transifex](https://www.transifex.com/
## Workflow
1. Update the strings at the top of the `generate_home_tmpl.py` file, those that start with a `str_` in the name.
1. Update the strings at the top of the `generate_home_tmpl.py` file those that start with a `str_` in the name.
2. Extract them with `pygettext -p ./lang/C/ generate_home_tmpl.py`
3. Commit the new `messages.pot` file and push it to the repository at git.friendi.ca
4. Wait for Transifex to pick up the changes and the translation teams to make the new translations
5. Download the finished translations to `lang/$lngcode/LC_MESSAGES/messages.pot`
6. Edit the `messages.pot` file and set the characterset to UTF-8.
5. Download the finished translations to `lang/$langcode/LC_MESSAGES/messages.pot`
6. Edit the `messages.pot` file and set the character set to UTF-8:
`"Content-Type: text/plain; charset=UTF-8\n"`
7. Convert the `messages.pot` file to `messages.mo` using `msgfmt messages.pot`
8. Run `python3 generate_home_tmpl.py` it will recreate the `custom/templates/home.tmpl` file
8. Run `python3 generate_home_tmpl.py` to recreate the `custom/templates/home.tmpl` file
9. 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.
The Python script to generate the template file has been released under the terms of the MIT license.

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

2
custom/public/robots.txt Normal file
View file

@ -0,0 +1,2 @@
User-agent: *
Disallow: /*/archive/*

View file

@ -193,7 +193,7 @@
<i class="octicon octicon-organization"></i> Interoperacyjność
</h1>
<p class="large">
Friendica has build in support for the ActivityPub (e.g. Hubzilla, Mastodon, Pleroma, Pixelfed, Socialhome), OStatus (e.g. GNU social) and diaspora* (e.g. diaspora*) protocol. With additional addons you can bridge to more networks like pump.io, Twitter and others.
Friendica ma wbudowaną obsługę protokołów ActivityPub (np. Hubzilla, Mastodon, Pleroma, Pixelfed, Socialhome), Ostatus (np. GNU Social) i diaspora* (np. diaspora*). Dzięki dodatkowym dodatkom możesz połączyć się z większą liczbą sieci, takimi jak pump.io, Twitter i inne.
</p>
</div>
</div>

View file

@ -76,7 +76,7 @@ templateHead = """{{template "base/head" .}}
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="{{AppSubUrl}}/img/friendica-128.png" />
<img class="logo" src="{{AppSubUrl}}/assets/img/friendica-128.png" />
</div>
<div class="hero">
<h1 class="ui icon header title">

Binary file not shown.

View file

@ -4,13 +4,14 @@
#
# Translators:
# Waldemar Stoczkowski, 2018
# Piotr Strębski <strebski@gmail.com>, 2022
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-08-18 18:15+CEST\n"
"PO-Revision-Date: 2018-06-06 12:46+0000\n"
"Last-Translator: Waldemar Stoczkowski, 2018\n"
"Last-Translator: Piotr Strębski <strebski@gmail.com>, 2022\n"
"Language-Team: Polish (https://www.transifex.com/Friendica/teams/12172/pl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -49,16 +50,16 @@ msgid ""
"later). The entire source code is hosted at <a "
"href='https://git.friendi.ca/friendica/friendica'>git.friendi.ca</a>. Join "
"us by contributing to make this project even better. Don't be shy to <a "
"href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc"
"/Developers-Intro.md'>be a contributor</a>!"
"href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/Developers-"
"Intro.md'>be a contributor</a>!"
msgstr ""
"Friendica to wolne oprogramowanie, licencjonowane zgodnie z warunkami AGPLv3"
" (lub nowszym). Cały kod źródłowy jest hostowany na stronie <a "
"href='https://git.friendi.ca/friendica/friendica'>git.friendi.ca</a>. Dołącz"
" do nas, przyczyniając się do tego, aby ten projekt był jeszcze lepszy. Nie "
"wstydź się <a "
"href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc"
"/Developers-Intro.md'>być współtwórcą</a>!"
"href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/Developers-"
"Intro.md'>być współtwórcą</a>!"
#: generate_home_tmpl.py:44
msgid "Decentralization"
@ -87,3 +88,7 @@ msgid ""
"(e.g. diaspora*) protocol. With additional addons you can bridge to more "
"networks like pump.io, Twitter and others."
msgstr ""
"Friendica ma wbudowaną obsługę protokołów ActivityPub (np. Hubzilla, "
"Mastodon, Pleroma, Pixelfed, Socialhome), Ostatus (np. GNU Social) i "
"diaspora* (np. diaspora*). Dzięki dodatkowym dodatkom możesz połączyć się z "
"większą liczbą sieci, takimi jak pump.io, Twitter i inne."