diff --git a/.gitignore b/.gitignore index b6e4761..b7f0e50 100644 --- a/.gitignore +++ b/.gitignore @@ -51,10 +51,6 @@ coverage.xml .hypothesis/ .pytest_cache/ -# Translations -*.mo -*.pot - # Django stuff: *.log local_settings.py diff --git a/MANIFEST.in b/MANIFEST.in index fa0e3d8..91dcd4c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -24,6 +24,8 @@ recursive-include flask_wiki *.js recursive-include flask_wiki *.less recursive-include flask_wiki *.otf recursive-include flask_wiki *.po +recursive-include flask_wiki *.pot +recursive-include flask_wiki *.mo recursive-include flask_wiki *.scss recursive-include flask_wiki *.svg recursive-include flask_wiki *.ttf diff --git a/flask_wiki/translations/de/LC_MESSAGES/messages.mo b/flask_wiki/translations/de/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..a1dd2ae Binary files /dev/null and b/flask_wiki/translations/de/LC_MESSAGES/messages.mo differ diff --git a/flask_wiki/translations/de/LC_MESSAGES/messages.po b/flask_wiki/translations/de/LC_MESSAGES/messages.po index 6feac56..c20ff4e 100644 --- a/flask_wiki/translations/de/LC_MESSAGES/messages.po +++ b/flask_wiki/translations/de/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-02-05 08:37+0100\n" +"POT-Creation-Date: 2020-04-02 14:09+0200\n" "PO-Revision-Date: 2020-01-30 11:47+0100\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -31,23 +31,23 @@ msgstr "" msgid "tags" msgstr "" -#: flask_wiki/views.py:133 +#: flask_wiki/views.py:139 msgid "Saved" msgstr "" -#: flask_wiki/views.py:155 +#: flask_wiki/views.py:161 msgid "No file part" msgstr "" -#: flask_wiki/views.py:161 +#: flask_wiki/views.py:167 msgid "No selected file" msgstr "" -#: flask_wiki/views.py:168 +#: flask_wiki/views.py:174 msgid "File already exists" msgstr "" -#: flask_wiki/views.py:172 +#: flask_wiki/views.py:178 msgid "You do not have the permission to add files." msgstr "" @@ -92,15 +92,15 @@ msgstr "German" msgid "Edit in" msgstr "" -#: flask_wiki/templates/wiki/files.html:20 +#: flask_wiki/templates/wiki/files.html:21 msgid "Copied in you clipboard" msgstr "" -#: flask_wiki/templates/wiki/files.html:26 +#: flask_wiki/templates/wiki/files.html:28 msgid "Upload a file" msgstr "" -#: flask_wiki/templates/wiki/files.html:31 +#: flask_wiki/templates/wiki/files.html:34 msgid "List of Uploaded Files" msgstr "" @@ -125,7 +125,3 @@ msgstr "" #: flask_wiki/templates/wiki/search.html:16 msgid "results" msgstr "" - -#~ msgid "MarkDown Demo" -#~ msgstr "" - diff --git a/flask_wiki/translations/en/LC_MESSAGES/messages.mo b/flask_wiki/translations/en/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..1ae51ac Binary files /dev/null and b/flask_wiki/translations/en/LC_MESSAGES/messages.mo differ diff --git a/flask_wiki/translations/en/LC_MESSAGES/messages.po b/flask_wiki/translations/en/LC_MESSAGES/messages.po index 0a7b4cd..cbb178e 100644 --- a/flask_wiki/translations/en/LC_MESSAGES/messages.po +++ b/flask_wiki/translations/en/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-02-05 08:37+0100\n" +"POT-Creation-Date: 2020-04-02 14:09+0200\n" "PO-Revision-Date: 2020-01-30 11:47+0100\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -31,23 +31,23 @@ msgstr "" msgid "tags" msgstr "" -#: flask_wiki/views.py:133 +#: flask_wiki/views.py:139 msgid "Saved" msgstr "" -#: flask_wiki/views.py:155 +#: flask_wiki/views.py:161 msgid "No file part" msgstr "" -#: flask_wiki/views.py:161 +#: flask_wiki/views.py:167 msgid "No selected file" msgstr "" -#: flask_wiki/views.py:168 +#: flask_wiki/views.py:174 msgid "File already exists" msgstr "" -#: flask_wiki/views.py:172 +#: flask_wiki/views.py:178 msgid "You do not have the permission to add files." msgstr "" @@ -92,15 +92,15 @@ msgstr "" msgid "Edit in" msgstr "" -#: flask_wiki/templates/wiki/files.html:20 +#: flask_wiki/templates/wiki/files.html:21 msgid "Copied in you clipboard" msgstr "" -#: flask_wiki/templates/wiki/files.html:26 +#: flask_wiki/templates/wiki/files.html:28 msgid "Upload a file" msgstr "" -#: flask_wiki/templates/wiki/files.html:31 +#: flask_wiki/templates/wiki/files.html:34 msgid "List of Uploaded Files" msgstr "" @@ -125,7 +125,3 @@ msgstr "" #: flask_wiki/templates/wiki/search.html:16 msgid "results" msgstr "" - -#~ msgid "MarkDown Demo" -#~ msgstr "" - diff --git a/flask_wiki/translations/fr/LC_MESSAGES/messages.mo b/flask_wiki/translations/fr/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..2ad76c4 Binary files /dev/null and b/flask_wiki/translations/fr/LC_MESSAGES/messages.mo differ diff --git a/flask_wiki/translations/fr/LC_MESSAGES/messages.po b/flask_wiki/translations/fr/LC_MESSAGES/messages.po index 4962a7b..17c09aa 100644 --- a/flask_wiki/translations/fr/LC_MESSAGES/messages.po +++ b/flask_wiki/translations/fr/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-02-05 08:37+0100\n" +"POT-Creation-Date: 2020-04-02 14:09+0200\n" "PO-Revision-Date: 2020-01-30 11:47+0100\n" "Last-Translator: FULL NAME \n" "Language: fr\n" @@ -31,23 +31,23 @@ msgstr "contenu" msgid "tags" msgstr "tags" -#: flask_wiki/views.py:133 +#: flask_wiki/views.py:139 msgid "Saved" msgstr "Sauvé" -#: flask_wiki/views.py:155 +#: flask_wiki/views.py:161 msgid "No file part" msgstr "Pas de champ 'file'" -#: flask_wiki/views.py:161 +#: flask_wiki/views.py:167 msgid "No selected file" msgstr "Aucun fichier sélectionnés" -#: flask_wiki/views.py:168 +#: flask_wiki/views.py:174 msgid "File already exists" msgstr "Le fichier existe déjà" -#: flask_wiki/views.py:172 +#: flask_wiki/views.py:178 msgid "You do not have the permission to add files." msgstr "Vous n'avez pas la permission d'ajouter des fichers." @@ -92,15 +92,15 @@ msgstr "Sauver" msgid "Edit in" msgstr "Editer en" -#: flask_wiki/templates/wiki/files.html:20 +#: flask_wiki/templates/wiki/files.html:21 msgid "Copied in you clipboard" msgstr "Copié dans le presse papier" -#: flask_wiki/templates/wiki/files.html:26 +#: flask_wiki/templates/wiki/files.html:28 msgid "Upload a file" msgstr "Télécharger un fichier" -#: flask_wiki/templates/wiki/files.html:31 +#: flask_wiki/templates/wiki/files.html:34 msgid "List of Uploaded Files" msgstr "Liste des fichiers téléchargés" @@ -125,3 +125,4 @@ msgstr "Table des matières" #: flask_wiki/templates/wiki/search.html:16 msgid "results" msgstr "resultats" + diff --git a/flask_wiki/translations/it/LC_MESSAGES/messages.mo b/flask_wiki/translations/it/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..f0c69ea Binary files /dev/null and b/flask_wiki/translations/it/LC_MESSAGES/messages.mo differ diff --git a/flask_wiki/translations/it/LC_MESSAGES/messages.po b/flask_wiki/translations/it/LC_MESSAGES/messages.po index db641ef..3d7263c 100644 --- a/flask_wiki/translations/it/LC_MESSAGES/messages.po +++ b/flask_wiki/translations/it/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-02-05 08:37+0100\n" +"POT-Creation-Date: 2020-04-02 14:09+0200\n" "PO-Revision-Date: 2020-01-30 11:47+0100\n" "Last-Translator: FULL NAME \n" "Language: it\n" @@ -31,23 +31,23 @@ msgstr "" msgid "tags" msgstr "" -#: flask_wiki/views.py:133 +#: flask_wiki/views.py:139 msgid "Saved" msgstr "" -#: flask_wiki/views.py:155 +#: flask_wiki/views.py:161 msgid "No file part" msgstr "" -#: flask_wiki/views.py:161 +#: flask_wiki/views.py:167 msgid "No selected file" msgstr "" -#: flask_wiki/views.py:168 +#: flask_wiki/views.py:174 msgid "File already exists" msgstr "" -#: flask_wiki/views.py:172 +#: flask_wiki/views.py:178 msgid "You do not have the permission to add files." msgstr "" @@ -92,15 +92,15 @@ msgstr "Italian" msgid "Edit in" msgstr "" -#: flask_wiki/templates/wiki/files.html:20 +#: flask_wiki/templates/wiki/files.html:21 msgid "Copied in you clipboard" msgstr "" -#: flask_wiki/templates/wiki/files.html:26 +#: flask_wiki/templates/wiki/files.html:28 msgid "Upload a file" msgstr "" -#: flask_wiki/templates/wiki/files.html:31 +#: flask_wiki/templates/wiki/files.html:34 msgid "List of Uploaded Files" msgstr "" @@ -125,7 +125,3 @@ msgstr "" #: flask_wiki/templates/wiki/search.html:16 msgid "results" msgstr "" - -#~ msgid "MarkDown Demo" -#~ msgstr "" - diff --git a/flask_wiki/translations/messages.pot b/flask_wiki/translations/messages.pot new file mode 100644 index 0000000..8d7b1d6 --- /dev/null +++ b/flask_wiki/translations/messages.pot @@ -0,0 +1,125 @@ +# Translations template for Flask-Wiki. +# Copyright (C) 2020 ORGANIZATION +# This file is distributed under the same license as the Flask-Wiki project. +# FIRST AUTHOR , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: Flask-Wiki VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2020-04-02 14:09+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.8.0\n" + +#: flask_wiki/forms.py:19 +msgid "title" +msgstr "" + +#: flask_wiki/forms.py:20 +msgid "body" +msgstr "" + +#: flask_wiki/forms.py:21 +msgid "tags" +msgstr "" + +#: flask_wiki/views.py:139 +msgid "Saved" +msgstr "" + +#: flask_wiki/views.py:161 +msgid "No file part" +msgstr "" + +#: flask_wiki/views.py:167 +msgid "No selected file" +msgstr "" + +#: flask_wiki/views.py:174 +msgid "File already exists" +msgstr "" + +#: flask_wiki/views.py:178 +msgid "You do not have the permission to add files." +msgstr "" + +#: flask_wiki/templates/wiki/403.html:19 +msgid "Forbidden" +msgstr "" + +#: flask_wiki/templates/wiki/403.html:20 +msgid "You are not allowed to see this page." +msgstr "" + +#: flask_wiki/templates/wiki/404.html:19 +msgid "Page does not exists." +msgstr "" + +#: flask_wiki/templates/wiki/404.html:20 +msgid "You did not create any content for this page yet." +msgstr "" + +#: flask_wiki/templates/wiki/404.html:23 +msgid "Create a new page" +msgstr "" + +#: flask_wiki/templates/wiki/base.html:29 +#: flask_wiki/templates/wiki/base.html:35 +msgid "Flask-Wiki" +msgstr "" + +#: flask_wiki/templates/wiki/editor.html:20 +msgid "Edit" +msgstr "" + +#: flask_wiki/templates/wiki/editor.html:25 +msgid "Preview" +msgstr "" + +#: flask_wiki/templates/wiki/editor.html:35 +msgid "Save" +msgstr "" + +#: flask_wiki/templates/wiki/editor.html:38 +msgid "Edit in" +msgstr "" + +#: flask_wiki/templates/wiki/files.html:21 +msgid "Copied in you clipboard" +msgstr "" + +#: flask_wiki/templates/wiki/files.html:28 +msgid "Upload a file" +msgstr "" + +#: flask_wiki/templates/wiki/files.html:34 +msgid "List of Uploaded Files" +msgstr "" + +#: flask_wiki/templates/wiki/navigation.html:13 +msgid "Home" +msgstr "" + +#: flask_wiki/templates/wiki/navigation.html:16 +msgid "Files" +msgstr "" + +#: flask_wiki/templates/wiki/navigation.html:20 +#: flask_wiki/templates/wiki/navigation.html:21 +#: flask_wiki/templates/wiki/navigation.html:23 +msgid "Search" +msgstr "" + +#: flask_wiki/templates/wiki/page.html:27 +msgid "Table of Content" +msgstr "" + +#: flask_wiki/templates/wiki/search.html:16 +msgid "results" +msgstr "" +