From f34c9bcc6340894efebd01ee4a5254fcda171d89 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 1 May 2022 20:03:18 +0200 Subject: [PATCH 1/5] Added da-DK translation THX atjn --- custom/templates/home.tmpl | 42 ++++++++++++- generate_home_tmpl.py | 2 +- lang/da-DK/LC_MESSAGES/messages.mo | Bin 0 -> 2472 bytes lang/da-DK/LC_MESSAGES/messages.pot | 89 ++++++++++++++++++++++++++++ 4 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 lang/da-DK/LC_MESSAGES/messages.mo create mode 100644 lang/da-DK/LC_MESSAGES/messages.pot diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl index 2e16ada..fc129f3 100644 --- a/custom/templates/home.tmpl +++ b/custom/templates/home.tmpl @@ -3,7 +3,7 @@
- +

@@ -36,6 +36,8 @@

A Friendica projekt git tárolóinak gyűjteménye.

{{else if eq .Lang "ru-RU"}}

Собрание git-репозиториев проекта Friendica.

+{{else if eq .Lang "da-DK"}} +

Friendica projektets samling af git depoter.

{{else}}

Collection of the git repositories of the Friendica project.

{{end}} @@ -538,6 +540,44 @@
+{{else if eq .Lang "da-DK"}} +
+
+

+ Nem at installere +

+

+ Det eneste du skal bruge er PHP og en MySQL database. Installation kan foregå via filupload, git eller docker. +

+
+
+

+ Fri software +

+

+ Friendica er fri software, licenseret i henhold til AGPLv3 (eller senere). Den fulde kildekode er hostet på git.friendi.ca. Slut dig til os ved at bidrage og gøre dette projekt endnu bedre. Vær ikke bange for at blive en bidragsyder! +

+
+
+
+
+

+ Decentralisering +

+

+ 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. +

+
+
+

+ Interoperabilitet +

+

+ 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. +

+
+
+ {{else}}
diff --git a/generate_home_tmpl.py b/generate_home_tmpl.py index bf985cf..1b0620f 100644 --- a/generate_home_tmpl.py +++ b/generate_home_tmpl.py @@ -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 # is created, we'll loop over all these languages. 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) languages = {} # read in all the available translation for later usage diff --git a/lang/da-DK/LC_MESSAGES/messages.mo b/lang/da-DK/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..33c10e5911e05ad8797a461163a99204755e6828 GIT binary patch literal 2472 zcmbtVO>-MX5M3ZZ5Kw%aIdo34K-#qhgp?AyFqZ9@#I}f?aNv-d-JO*tJDS;=nU$>Y z2Pp3F58%XsW3H5M+&ELk$BherfCI&wU0brtDJq05k9$YmGt=|>_1j0cpdh8*w@e2f=5s>V?|>BkUWP{|x&I?4SO3#Qz2RCG5+WYya0s5YqtLR?mwk7VheK4*#(v z!1mQ${Es*?2-c;fnJ!6jo|3RMxH%xEQew0_JNV=_rOdIISsv1kvW`i~oY0CArYPo= zYQXeoJ8Ez=pf5w8LaFSHd-8^JA|{COoYR5M+>{xPS+#$HbD5>M6cQjPvSm?d<0!)|e7@_*ej?m#P{y>x!(m7_ z%lM%H7;V~R)@k6-rh()}kMYw$9C4X(AaS4*!Q@Dfd8|8O-ahfq=PiFbrxPth`c$|Pu{0GPO(y-TR<LYyAjSkVF>XF_ssPGgw)rn={%3^s3OTzq!d|`M6qEi8AT~Jm%4~R z{HR~Q1KiFIa?;^AZLZ-Yw#ZQ%pZ}Ereh{bNhQ&gHWx=3kb7v>*+`|Sab&m$?8@JZC zH|gHyor9hIy~bd_bB9lacXs+fy+_^Um1~{ltN5dpZtuOT?=0hK+y*^6hse*OHrn)P zT{-mc4dnVEa}QLQ=4)-N?RF8Wh9w*F&LL;x9`%_Lc0@~kuExydEm}J5%IS0(qQ{gK z89xdWJ&xvm6gjN5(MosagKm_v`~6!{tFgPYyScc@O1RwEK%Kyk&f%;;=8hk^sE|yk z>y(U`v1s$Vhg+R%i#UH;#!Y8afk-HBk2d!<_WL_~+l_6m03Arx`DoUoVg`}$8-~S< zR>Jq^x9UO4kWOPDOUOfKOM}5ZQbjejtKI8VzpgGRy0S_ut?Lb_i35!}7)xnMHb=+B zrbLIK4ZKk5A>98ilsSYFGQx+)-<%5NS()UJ#)VQ|;NPMho3h<1I9G#W&u@oWfaYZ0*S_z_T+mRA~C2~_T7-r#$1 zPA#*e|EHB$e^x1h_*@ui3C{TpsKlvHpw~TxhsTcq zL+ab6mdV_+K2;@@F*W$|-vc}(a!6?miKt8dbOQe0)KZFx|BO(btM#RQtYUH(`~#Ow BCu9Hs literal 0 HcmV?d00001 diff --git a/lang/da-DK/LC_MESSAGES/messages.pot b/lang/da-DK/LC_MESSAGES/messages.pot new file mode 100644 index 0000000..23febe0 --- /dev/null +++ b/lang/da-DK/LC_MESSAGES/messages.pot @@ -0,0 +1,89 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +# Translators: +# Anton , 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 , 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 Friendica project." +msgstr "" +"Friendica 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 git.friendi.ca. Join " +"us by contributing to make this project even better. Don't be shy to be a contributor!" +msgstr "" +"Friendica er fri software, licenseret i henhold til AGPLv3 (eller senere). " +"Den fulde kildekode er hostet på git.friendi.ca. Slut " +"dig til os ved at bidrage og gøre dette projekt endnu bedre. Vær ikke bange " +"for at blive en bidragsyder!" + +#: 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." From e8259ea9fcb86b903cfeac199a2e22ba06ce7a94 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 1 May 2022 20:05:52 +0200 Subject: [PATCH 2/5] the path for the assets has changed --- custom/templates/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl index fc129f3..64a3246 100644 --- a/custom/templates/home.tmpl +++ b/custom/templates/home.tmpl @@ -3,7 +3,7 @@
- +

From 428f1e1d381a52051d55f662d9a4bffe8cb52101 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 1 May 2022 20:07:09 +0200 Subject: [PATCH 3/5] the path for the assets has changed --- custom/templates/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl index 64a3246..d6dd0b3 100644 --- a/custom/templates/home.tmpl +++ b/custom/templates/home.tmpl @@ -3,7 +3,7 @@
- +

From 6b17afb929c84b60e6a9a06332eab416c25e8f74 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 9 May 2024 23:47:05 +0200 Subject: [PATCH 4/5] Prepare repo for Docker & Forgejo --- README.md | 5 ++--- custom/public/{ => assets}/img/favicon.ico | Bin custom/public/{ => assets}/img/favicon.png | Bin custom/public/{ => assets}/img/friendica-128.png | Bin custom/public/{ => assets}/img/friendica-256.png | Bin custom/public/{ => assets}/img/gitea-sm.png | Bin custom/public/robots.txt | 2 ++ 7 files changed, 4 insertions(+), 3 deletions(-) rename custom/public/{ => assets}/img/favicon.ico (100%) rename custom/public/{ => assets}/img/favicon.png (100%) rename custom/public/{ => assets}/img/friendica-128.png (100%) rename custom/public/{ => assets}/img/friendica-256.png (100%) rename custom/public/{ => assets}/img/gitea-sm.png (100%) create mode 100644 custom/public/robots.txt diff --git a/README.md b/README.md index 9d027ac..6b134d2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # 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. +They are overriding the default template files of Forgejo. +The content of `custom` is mounted inside the Docker container at `/var/lib/gitea/custom`. ## Translation diff --git a/custom/public/img/favicon.ico b/custom/public/assets/img/favicon.ico similarity index 100% rename from custom/public/img/favicon.ico rename to custom/public/assets/img/favicon.ico diff --git a/custom/public/img/favicon.png b/custom/public/assets/img/favicon.png similarity index 100% rename from custom/public/img/favicon.png rename to custom/public/assets/img/favicon.png diff --git a/custom/public/img/friendica-128.png b/custom/public/assets/img/friendica-128.png similarity index 100% rename from custom/public/img/friendica-128.png rename to custom/public/assets/img/friendica-128.png diff --git a/custom/public/img/friendica-256.png b/custom/public/assets/img/friendica-256.png similarity index 100% rename from custom/public/img/friendica-256.png rename to custom/public/assets/img/friendica-256.png diff --git a/custom/public/img/gitea-sm.png b/custom/public/assets/img/gitea-sm.png similarity index 100% rename from custom/public/img/gitea-sm.png rename to custom/public/assets/img/gitea-sm.png diff --git a/custom/public/robots.txt b/custom/public/robots.txt new file mode 100644 index 0000000..69084d2 --- /dev/null +++ b/custom/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /*/archive/* From 2b6fcd884ca6ec518eaa6cf9bd61453b6049cc65 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 8 Feb 2025 10:09:19 +0000 Subject: [PATCH 5/5] Various small improvements to the README --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6b134d2..7080718 100644 --- a/README.md +++ b/README.md @@ -1,8 +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 Forgejo. -The content of `custom` is mounted inside the Docker container at `/var/lib/gitea/custom`. +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 @@ -10,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.