{{ translations.untranslated_warning[page.language] }}
+ {% endif %}
+
{{ content }}
diff --git a/404.md b/404.md index f31fb483..370c05e1 100644 --- a/404.md +++ b/404.md @@ -4,7 +4,47 @@ title: 404 Error tagline: Ah snap! We could not find what you are looking for! permalink: /404.html --- +{% include translations %} +{% assign en_pages = site.documents | concat: site.pages | where: "language", "en" %} -Try got get back to the Home Page and start over! + + +
+ + + + diff --git a/_config.yml b/_config.yml index 01631b87..396b96a4 100644 --- a/_config.yml +++ b/_config.yml @@ -22,11 +22,53 @@ plugins: theme: # leave it empty +supported_languages: + - en +# - fr + +language_endonyms: + en: "English" + fr: "Français" + +language_flags: + en: "\U0001F1FA\U0001F1F8" + fr: "\U0001F1EB\U0001F1F7" + # social author: "The Pencil2D Team" defaults: - values: image: /images/pencil_icon.png + comments: false + - + scope: + path: "" # an empty string here means all files in the project + values: + layout: "default" + language: en + - + scope: + path: "_translations" + values: + untranslated: true + - + scope: + path: "_translations/fr" + values: + language: fr + - + scope: + path: "_posts" + values: + layout: "post" + language: en + permalink: /news/:year/:month/:title + - + scope: + path: "_translations/fr/_posts" + values: + layout: "post" + permalink: /fr/nouvelles/:year/:month/:title twitter: username: pencil2d @@ -40,3 +82,8 @@ github: bitbucket: url: "https://bitbucket.org/chchwy/pencil2d" + +collections: + translations: + output: true + permalink: :path:output_ext diff --git a/_data/translations.yml b/_data/translations.yml new file mode 100644 index 00000000..46097768 --- /dev/null +++ b/_data/translations.yml @@ -0,0 +1,63 @@ +untranslated_warning: + en: "Warning: This page has not been completely translated. If you can help, please contribute at https://github.com/pencil2d/pencil2d.github.io" + fr: "Attention : Cette page n'a pas été traduite complètement. Si vous pouvez nous aider, s'il vous plaît contribuer à https://github.com/pencil2d/pencil2d.github.io" +download: + en: "Download" + fr: "Télécharger" +community: + en: "Community" + fr: "Communauté" +forum: + en: "Forum" + fr: "Forum" +facebook: + en: "Facebook" + fr: "Facebook" +discord: + en: "Discord" + fr: "Discord" +youtube: + en: "YouTube" + fr: "YouTube" +tumblr: + en: "Tumblr" + fr: "Tumblr" +news: + en: "News" + fr: "Nouvelles" +docs: + en: "Docs" + fr: "Docs" +tutorials: + en: "Tutorials" + fr: "Tutoriels" +faq: + en: "FAQ" + fr: "FAQ" +user_manual: + en: "User's Manual" + fr: "Manuel d'Util" +contribute: + en: "Contribute" + fr: "Contribuer" +download_now: + en: "Download Now!" + fr: "Téléchargez maintenant!" +whats_new: + en: "What's New?" + fr: "Quoi de neuf?" +disqus_no_javascript: + en: "Please enable JavaScript to view the comments powered by Disqus." + fr: "S'il vous plaît activer JavaScript pour voir les commentaires fournis par Disqus." +p404_title: + en: "404 Error" + fr: "404 Erreur" +p404_tagline: + en: "Ah snap! We could not find what you are looking for!" + fr: "Oh mon dieu! Nous ne pouvons pas trouver que vous voulez!" +p404_body: + en: "Return to the home page and try again." + fr: "Retournez au accueil et essayez encore." +p404_go_home: + en: "Go to the Home Page" + fr: "Allez au accueil" diff --git a/_includes/comments.html b/_includes/comments.html index 7ef4fa82..1fc000b2 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -1,3 +1,4 @@ +{% include translations %}