diff --git a/app.py b/app.py index d4f0181..d0bed04 100644 --- a/app.py +++ b/app.py @@ -26,7 +26,7 @@ def load_translations(lang): def get_locale(): - return request.accept_languages.best_match(('en', 'ru'), 'en') + return request.accept_languages.best_match(('en', 'ru', 'de', 'fr', 'ja'), 'en') app = Flask(__name__) diff --git a/translations/de.ini b/translations/de.ini new file mode 100644 index 0000000..33c3c37 --- /dev/null +++ b/translations/de.ini @@ -0,0 +1,23 @@ +[messages] +site source = Website-Quellcode +contact us = Kontakt + +about us = Über uns +about host = Über Server + + +[index] +bottom_text = Außerdem bieten wir {glitchtip}, {baikal} und {freshrss} für Mitglieder unserer Gruppe an! + +[index.descr] +sharkey = Föderierter Microblogging-Dienst auf Basis des ActivityPub-Protokolls +gitea = Open-Source, selbst gehosteter Git-Repository-Hoster +matrix = Föderierter Messenger +copyparty = Cloud-Dateispeicher +4get = Proxy-Suchmaschine + + +[host] +hoster = Hosting-Anbieter +specifications = Spezifikationen +hoster_descr = Nicht schlecht, nicht teuer. In der Vergangenheit gab es Netzwerkprobleme. \ No newline at end of file diff --git a/translations/fr.ini b/translations/fr.ini new file mode 100644 index 0000000..58b30e3 --- /dev/null +++ b/translations/fr.ini @@ -0,0 +1,23 @@ +[messages] +site source = Code source du site +contact us = Contacte-nous + +about us = À propos de nous +about host = À propos de serveur + + +[index] +bottom_text = On a aussi {glitchtip}, {baikal} et {freshrss} pour les membres du groupe ! + +[index.descr] +sharkey = Service de microblogging fédéré avec ActivityPub +gitea = Hébergement de dépôts Git open source en auto-hébergé +matrix = Messagerie fédérée +copyparty = Stockage de fichiers en cloud +4get = Moteur de recherche proxy + + +[host] +hoster = Hébergeur +specifications = Spécifications +hoster_descr = Pas mal, pas cher. Y'a eu des soucis réseau avant. \ No newline at end of file diff --git a/translations/ja.ini b/translations/ja.ini new file mode 100644 index 0000000..9be82bd --- /dev/null +++ b/translations/ja.ini @@ -0,0 +1,23 @@ +[messages] +site source = サイトのソースコード +contact us = 問い合わせ + +about us = 私たちについて +about host = サーバーについて + + +[index] +bottom_text = メンバーには {glitchtip}、{baikal}、{freshrss} も使えるよ! + +[index.descr] +sharkey = ActivityPubを使った連合型マイクロブログ +gitea = オープンソースのセルフホスティングGitリポジトリ +matrix = 連合型メッセンジャー +copyparty = クラウドファイルストレージ +4get = プロキシ検索エンジン + + +[host] +hoster = ホスティングプロバイダー +specifications = サーバーのスペック +hoster_descr = 悪くないし安い。前にネットワークの不具合があったんだ。