Compare commits

...

14 commits

Author SHA1 Message Date
b33369170a Merge pull request 'Various small improvements to the README' (#20) from waldyrious/git.friendi.ca:readme-tweaks into stable
Reviewed-on: friendica/git.friendi.ca#20
Reviewed-by: Hypolite Petovan <hypolite@mrpetovan.com>
2025-02-10 16:06:30 +01:00
2b6fcd884c Various small improvements to the README 2025-02-08 10:09:19 +00:00
c4fef80b28 Merge pull request 'Prepare repo for Docker & Forgejo' (#19) from nupplaPhil/git.friendi.ca:docker into stable
Reviewed-on: friendica/git.friendi.ca#19
2024-05-09 23:48:33 +02:00
6b17afb929
Prepare repo for Docker & Forgejo 2024-05-09 23:47:05 +02:00
Friendica Project
5948573005 Merge pull request 'added DA-DK translation of the landing page THX atjn' (#17) from tobias/git.friendi.ca:20220501-daDK into stable
Reviewed-on: friendica/git.friendi.ca#17
2022-05-08 06:41:48 +00:00
Friendica Project
5209a95b84 Merge pull request 'PL translation update' (#16) from tobias/git.friendi.ca:20220318-pl into stable
Reviewed-on: friendica/git.friendi.ca#16
2022-05-08 06:40:54 +00:00
428f1e1d38
the path for the assets has changed 2022-05-01 20:07:09 +02:00
e8259ea9fc
the path for the assets has changed 2022-05-01 20:05:52 +02:00
f34c9bcc63
Added da-DK translation THX atjn 2022-05-01 20:03:18 +02:00
11280b595a
the assets path has changed 2022-03-18 17:35:31 +01:00
5315497db7
the path for the assets has changed 2022-03-18 17:34:41 +01:00
add6a4bec7
PL translation update THX strebski 2022-03-18 17:29:35 +01:00
Tobias Diekershoff
9b789907f5 Merge pull request 'Gitea templating adjustments' (#15) from tobias/git.friendi.ca:stable into stable
Reviewed-on: friendica/git.friendi.ca#15
2021-11-13 07:42:10 +00:00
Tobias Diekershoff
35cb96515b Merge pull request 'DE translation updates THX Till Mohr' (#14) from tobias/git.friendi.ca:stable into stable
Reviewed-on: friendica/git.friendi.ca#14
2021-05-24 06:35:33 +00:00
13 changed files with 151 additions and 17 deletions

View file

@ -1,9 +1,7 @@
# Custom files for git.friendi.ca # Custom files for git.friendi.ca
These files are the cutsom files for git.friendi.ca. These are the custom files for git.friendi.ca, which override the default template files of Forgejo.
They are overriding the default template files of gitea. The content of the `custom` directory is mounted inside the Docker container at `/var/lib/gitea/custom`.
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.
## Translation ## Translation
@ -11,17 +9,17 @@ Translation of the strings can be done at [Transifex](https://www.transifex.com/
## Workflow ## 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` 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 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 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` 5. Download the finished translations to `lang/$langcode/LC_MESSAGES/messages.pot`
6. Edit the `messages.pot` file and set the characterset to UTF-8. 6. Edit the `messages.pot` file and set the character set to UTF-8:
`"Content-Type: text/plain; charset=UTF-8\n"` `"Content-Type: text/plain; charset=UTF-8\n"`
7. Convert the `messages.pot` file to `messages.mo` using `msgfmt messages.pot` 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. 9. Upload that file and copy it to the `custom/templates/` directory of the gitea instance.
## License ## 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

@ -36,6 +36,8 @@
<h2>A <a href='https://friendi.ca' target='_new'>Friendica</a> projekt git tárolóinak gyűjteménye.</h2> <h2>A <a href='https://friendi.ca' target='_new'>Friendica</a> projekt git tárolóinak gyűjteménye.</h2>
{{else if eq .Lang "ru-RU"}} {{else if eq .Lang "ru-RU"}}
<h2>Собрание git-репозиториев проекта <a href='https://friendi.ca' target='_new'>Friendica</a>.</h2> <h2>Собрание git-репозиториев проекта <a href='https://friendi.ca' target='_new'>Friendica</a>.</h2>
{{else if eq .Lang "da-DK"}}
<h2><a href='https://friendi.ca' target='_new'>Friendica</a> projektets samling af git depoter.</h2>
{{else}} {{else}}
<h2>Collection of the git repositories of the <a href='https://friendi.ca' target='_new'>Friendica</a> project.</h2> <h2>Collection of the git repositories of the <a href='https://friendi.ca' target='_new'>Friendica</a> project.</h2>
{{end}} {{end}}
@ -191,7 +193,7 @@
<i class="octicon octicon-organization"></i> Interoperacyjność <i class="octicon octicon-organization"></i> Interoperacyjność
</h1> </h1>
<p class="large"> <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> </p>
</div> </div>
</div> </div>
@ -538,6 +540,44 @@
</div> </div>
</div> </div>
{{else if eq .Lang "da-DK"}}
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-rocket"></i> Nem at installere
</h1>
<p class="large">
Det eneste du skal bruge er PHP og en MySQL database. Installation kan foregå via filupload, git eller docker.
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-code"></i> Fri software
</h1>
<p class="large">
Friendica er fri software, licenseret i henhold til AGPLv3 (eller senere). Den fulde kildekode er hostet på <a href='https://git.friendi.ca/friendica/friendica'>git.friendi.ca</a>. Slut dig til os ved at bidrage og gøre dette projekt endnu bedre. Vær ikke bange for at <a href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/Developers-Intro.md'>blive en bidragsyder</a>!
</p>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-globe"></i> Decentralisering
</h1>
<p class="large">
Decentralized architecture with no central authority or ownership. Relationships can be made across any compatible system, creating a network of Internet scale made up of smaller sites. Seamless wall-to-wall posts and remote comments, even across different network nodes.
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-organization"></i> Interoperabilitet
</h1>
<p class="large">
Friendica har indbygget understøttelse for protokollerne ActivityPub (fx Hubzilla, Mastodon, Pleroma, Pixelfed, Socialhome), OStatus (fx GNU social) og diaspora* (fx diaspora*). Med yderligere tilføjelser kan du forbinde til flere netværk som pump.io, Twitter og flere.
</p>
</div>
</div>
{{else}} {{else}}
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column"> <div class="eight wide center column">

View file

@ -56,7 +56,7 @@ fn = os.path.join(os.path.abspath(os.path.dirname(__file__)), languageDirectory)
# of the available translations. Later in the script, when the home.tmpl # of the available translations. Later in the script, when the home.tmpl
# is created, we'll loop over all these languages. # is created, we'll loop over all these languages.
translations = ['de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'cs-CZ', 'en-GB', translations = ['de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'cs-CZ', 'en-GB',
'ja-JA', 'ca-ES', 'es-ES', 'fi-FI', 'fr-FR', 'hu-HU', 'ru-RU'] 'ja-JA', 'ca-ES', 'es-ES', 'fi-FI', 'fr-FR', 'hu-HU', 'ru-RU', 'da-DK']
count = len(translations) count = len(translations)
languages = {} languages = {}
# read in all the available translation for later usage # read in all the available translation for later usage
@ -76,7 +76,7 @@ templateHead = """{{template "base/head" .}}
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column"> <div class="sixteen wide center aligned centered column">
<div> <div>
<img class="logo" src="{{AppSubUrl}}/img/friendica-128.png" /> <img class="logo" src="{{AppSubUrl}}/assets/img/friendica-128.png" />
</div> </div>
<div class="hero"> <div class="hero">
<h1 class="ui icon header title"> <h1 class="ui icon header title">

Binary file not shown.

View file

@ -0,0 +1,89 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Anton <dev@atjn.dk>, 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: Anton <dev@atjn.dk>, 2022\n"
"Language-Team: Danish (Denmark) (https://www.transifex.com/Friendica/teams/12172/da_DK/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py 1.5\n"
"Language: da_DK\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: generate_home_tmpl.py:39
msgid ""
"Collection of the git repositories of the <a href='https://friendi.ca' "
"target='_new'>Friendica</a> project."
msgstr ""
"<a href='https://friendi.ca' target='_new'>Friendica</a> projektets samling "
"af git depoter."
#: generate_home_tmpl.py:40
msgid "Easy to install"
msgstr "Nem at installere"
#: generate_home_tmpl.py:41
msgid ""
"All you need is PHP and a MySQL database. Installation can be done via file "
"upload, git or docker."
msgstr ""
"Det eneste du skal bruge er PHP og en MySQL database. Installation kan "
"foregå via filupload, git eller docker."
#: generate_home_tmpl.py:42
msgid "Free Software"
msgstr "Fri software"
#: generate_home_tmpl.py:43
msgid ""
"Friendica is Free Software, licensed under the terms of the AGPLv3 (or "
"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>!"
msgstr ""
"Friendica er fri software, licenseret i henhold til AGPLv3 (eller senere). "
"Den fulde kildekode er hostet på <a "
"href='https://git.friendi.ca/friendica/friendica'>git.friendi.ca</a>. Slut "
"dig til os ved at bidrage og gøre dette projekt endnu bedre. Vær ikke bange "
"for at <a "
"href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/Developers-"
"Intro.md'>blive en bidragsyder</a>!"
#: generate_home_tmpl.py:44
msgid "Decentralization"
msgstr "Decentralisering"
#: generate_home_tmpl.py:45
msgid ""
"Decentralized architecture with no central authority or ownership. "
"Relationships can be made across any compatible system, creating a network "
"of Internet scale made up of smaller sites. Seamless wall-to-wall posts and "
"remote comments, even across different network nodes."
msgstr ""
#: generate_home_tmpl.py:46
msgid "Interoperability"
msgstr "Interoperabilitet"
#: generate_home_tmpl.py:47
msgid ""
"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."
msgstr ""
"Friendica har indbygget understøttelse for protokollerne ActivityPub (fx "
"Hubzilla, Mastodon, Pleroma, Pixelfed, Socialhome), OStatus (fx GNU social) "
"og diaspora* (fx diaspora*). Med yderligere tilføjelser kan du forbinde til "
"flere netværk som pump.io, Twitter og flere."

Binary file not shown.

View file

@ -4,13 +4,14 @@
# #
# Translators: # Translators:
# Waldemar Stoczkowski, 2018 # Waldemar Stoczkowski, 2018
# Piotr Strębski <strebski@gmail.com>, 2022
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-08-18 18:15+CEST\n" "POT-Creation-Date: 2020-08-18 18:15+CEST\n"
"PO-Revision-Date: 2018-06-06 12:46+0000\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" "Language-Team: Polish (https://www.transifex.com/Friendica/teams/12172/pl/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -49,16 +50,16 @@ msgid ""
"later). The entire source code is hosted at <a " "later). The entire source code is hosted at <a "
"href='https://git.friendi.ca/friendica/friendica'>git.friendi.ca</a>. Join " "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 " "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" "href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/Developers-"
"/Developers-Intro.md'>be a contributor</a>!" "Intro.md'>be a contributor</a>!"
msgstr "" msgstr ""
"Friendica to wolne oprogramowanie, licencjonowane zgodnie z warunkami AGPLv3" "Friendica to wolne oprogramowanie, licencjonowane zgodnie z warunkami AGPLv3"
" (lub nowszym). Cały kod źródłowy jest hostowany na stronie <a " " (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" "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 " " do nas, przyczyniając się do tego, aby ten projekt był jeszcze lepszy. Nie "
"wstydź się <a " "wstydź się <a "
"href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc" "href='https://git.friendi.ca/friendica/friendica/src/branch/develop/doc/Developers-"
"/Developers-Intro.md'>być współtwórcą</a>!" "Intro.md'>być współtwórcą</a>!"
#: generate_home_tmpl.py:44 #: generate_home_tmpl.py:44
msgid "Decentralization" msgid "Decentralization"
@ -87,3 +88,7 @@ msgid ""
"(e.g. diaspora*) protocol. With additional addons you can bridge to more " "(e.g. diaspora*) protocol. With additional addons you can bridge to more "
"networks like pump.io, Twitter and others." "networks like pump.io, Twitter and others."
msgstr "" 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."