From 0684b07272cf2f3885f408b137e52ddd5c20a433 Mon Sep 17 00:00:00 2001 From: Samuel Volin Date: Sun, 23 Jul 2017 08:47:36 -0600 Subject: [PATCH] :gem: 1.3.0 * initial changes in preparation for v1.3.0 release * updated gemspec * added blog announcement posts * finished translating the titles --- README.md | 8 +++--- jekyll-polyglot.gemspec | 2 +- lib/jekyll/polyglot/version.rb | 2 +- site/_config.yml | 4 +-- site/_posts/2017-7-23-Polyglot-1.3.0.md | 27 +++++++++++++++++++ site/_posts/de/2017-7-23-Polyglot-1.3.0.md | 27 +++++++++++++++++++ site/_posts/es/2017-7-23-Polyglot-1.3.0.md | 27 +++++++++++++++++++ site/_posts/fr/2017-7-23-Polyglot-1.3.0.md | 27 +++++++++++++++++++ site/complex-permalink.de.md | 2 +- site/complex-permalink.es.md | 2 +- site/complex-permalink.fr.md | 2 +- site/seo.md | 2 +- .../jekyll/polyglot/hooks/coordinate_spec.rb | 1 + 13 files changed, 120 insertions(+), 13 deletions(-) create mode 100644 site/_posts/2017-7-23-Polyglot-1.3.0.md create mode 100644 site/_posts/de/2017-7-23-Polyglot-1.3.0.md create mode 100644 site/_posts/es/2017-7-23-Polyglot-1.3.0.md create mode 100644 site/_posts/fr/2017-7-23-Polyglot-1.3.0.md diff --git a/README.md b/README.md index c973b9482..2043c3196 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ end Or install the gem manually by doing `gem install jekyll-polyglot` and specify the plugin using `_config.yml`: ```YAML -gems: +plugins: - jekyll-polyglot ``` @@ -150,13 +150,11 @@ This plugin stands out from other I18n Jekyll plugins. ## SEO Recipes Jekyll-polyglot has a few spectacular [Search Engine Optimization techniques](https://untra.github.io/polyglot/seo) to ensure your Jekyll blog gets the most out of it's multilingual audience. Check them out! -## Examples -Check out the example project website [here](https://untra.github.io/polyglot) -(Jekyll resources are on the project's [site](https://github.com/untra/polyglot/tree/master/site) directory) - ### Other Websites Built with Polyglot let us know if you make a multilingual blog you want to share: +* [Polyglot example project website](http://polyglot.untra.io) * [LogRhythm Corporate Website](http://logrhythm.com) +* [All Over Earth](https://allover.earth/) ## Compatibility Currently supports Jekyll 3.0 . diff --git a/jekyll-polyglot.gemspec b/jekyll-polyglot.gemspec index 6e46548d3..cab51f1aa 100644 --- a/jekyll-polyglot.gemspec +++ b/jekyll-polyglot.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'jekyll-polyglot' s.version = '1.3.0' - s.date = '2017-06-26' + s.date = '2017-07-23' s.summary = 'I18n plugin for Jekyll Blogs' s.description = 'Fast open source i18n plugin for Jekyll blogs.' s.authors = ['Samuel Volin'] diff --git a/lib/jekyll/polyglot/version.rb b/lib/jekyll/polyglot/version.rb index cf53c064f..81f7acb88 100644 --- a/lib/jekyll/polyglot/version.rb +++ b/lib/jekyll/polyglot/version.rb @@ -1,5 +1,5 @@ module Jekyll module Polyglot - VERSION="1.2.4" + VERSION = '1.3.0'.freeze end end diff --git a/site/_config.yml b/site/_config.yml index 4efa53561..2fbc017db 100644 --- a/site/_config.yml +++ b/site/_config.yml @@ -28,7 +28,7 @@ hello: fr: Bonjour! de: Hallo! -gems: [jekyll-polyglot, jekyll-paginate] +plugins: [jekyll-polyglot, jekyll-paginate] # Permalinks permalink: pretty @@ -47,7 +47,7 @@ url: https://polyglot.untra.io paginate: 5 # Custom vars -version: 1.2.4 +version: 1.3.0 github: repo: https://github.com/untra/polyglot diff --git a/site/_posts/2017-7-23-Polyglot-1.3.0.md b/site/_posts/2017-7-23-Polyglot-1.3.0.md new file mode 100644 index 000000000..9aba809dd --- /dev/null +++ b/site/_posts/2017-7-23-Polyglot-1.3.0.md @@ -0,0 +1,27 @@ +--- +layout: post +title: Polyglot 1.3.0 +lang: en +--- + +A new version of Polyglot has been released! Give it a try! + +{% highlight yaml %} +gem install jekyll-polyglot +{% endhighlight %} + +This release was made possible with the support of the following github users: +* [vlsi](https://github.com/vlsi) +* [pserwylo](https://github.com/pserwylo) + +### Recursively merge language specific `site.data` +Language specific content defined in your `site.data` directory will now be recursively merged together, so that `active_lang` content gets precedence over `default_lang` content, gets precedence over language non-specific content. ([#59](https://github.com/untra/polyglot/pull/59)) + +### Still build unassigned files to the `default_lang` site root +If the `default_lang` is not defined in the `languages`, this ensures that language unassigned files (such as those excluded from localization) are still written out to the site root. ([#65](https://github.com/untra/polyglot/pull/65)) + +### Performance improvements and fixes for `i18n_headers` tag +Document processing is now faster, and fixes were made to the i18n_headers for when the site.url is defined. ([#67](https://github.com/untra/polyglot/pull/67)) + +### Custom keys for `active_lang` site payload +This allows custom keys to be defined with the `active_lang`, giving interoperability between polyglot and other plugins and themes. ([#68](https://github.com/untra/polyglot/pull/68)) diff --git a/site/_posts/de/2017-7-23-Polyglot-1.3.0.md b/site/_posts/de/2017-7-23-Polyglot-1.3.0.md new file mode 100644 index 000000000..2325643bf --- /dev/null +++ b/site/_posts/de/2017-7-23-Polyglot-1.3.0.md @@ -0,0 +1,27 @@ +--- +layout: post +title: Polyglot 1.3.0 +lang: de +--- + +Eine neue Version von Polyglot wurde veröffentlicht! Versuche es! + +{% highlight yaml %} +gem install jekyll-polyglot +{% endhighlight %} + +Diese Freigabe wurde mit der Unterstützung der folgenden github Benutzer ermöglicht: +* [vlsi](https://github.com/vlsi) +* [pserwylo](https://github.com/pserwylo) + +### Rekursiv verschmelzen sprachspezifisch `site.data` +Sprachspezifische Inhalte, die in Ihrem `site.data`-Verzeichnis definiert sind, werden nun rekursiv zusammengeführt, so dass `active_lang` inhalt bekommt Vorrang vor `default_lang` inhalt, bekommt Vorrang vor kein sprachinhalt. ([#59](https://github.com/untra/polyglot/pull/59)) + +### Baue nicht zugewiesene Dateien an `default_lang` standort root +Wenn das `default_lang` nicht in den `languages` definiert ist, stellt dies sicher, dass nicht zugewiesene Dateien (wie die von der Lokalisierung ausgeschlossenen) noch nicht auf den Standort root geschrieben werden. ([#65](https://github.com/untra/polyglot/pull/65)) + +### Leistungsverbesserungen und Korrekturen für `i18n_headers` tag +Die Dokumentenverarbeitung ist jetzt schneller und es wurden Korrekturen an der `i18n_headers` vorgenommen, wenn die Site.url definiert ist. ([#67](https://github.com/untra/polyglot/pull/67)) + +### Benutzerdefinierte tasten für `active_lang` site-nutzlast +Damit können benutzerdefinierte Schlüssel mit dem `active_lang` definiert werden, was die Interoperabilität zwischen polyglot und anderen Plugins und Themen ermöglicht. ([#68](https://github.com/untra/polyglot/pull/68)) diff --git a/site/_posts/es/2017-7-23-Polyglot-1.3.0.md b/site/_posts/es/2017-7-23-Polyglot-1.3.0.md new file mode 100644 index 000000000..5d0a47621 --- /dev/null +++ b/site/_posts/es/2017-7-23-Polyglot-1.3.0.md @@ -0,0 +1,27 @@ +--- +layout: post +title: Polyglot 1.3.0 +lang: es +--- + +¡Se ha lanzado una nueva versión de Polyglot! ¡Darle una oportunidad! + +{% highlight yaml %} +gem install jekyll-polyglot +{% endhighlight %} + +Esta versión fue posible gracias al soporte de los siguientes usuarios de github: +* [vlsi](https://github.com/vlsi) +* [pserwylo](https://github.com/pserwylo) + +### Combinar recursivamente lenguaje específico `site.data` +El contenido específico del idioma definido en el directorio `site.data` ahora se fusionará recursivamente, de modo que `active_lang` contenido tiene prioridad sobre `default_lang` contenido, tiene prioridad sobre sin contenido de idioma. ([#59](https://github.com/untra/polyglot/pull/59)) + +### Archivos sin asignar a la `default_lang` raíz del sitio +Si `default_lang` no está definido en `languages`, esto garantiza que los archivos de idioma sin asignar (como aquellos excluidos de la localización) se escriban todavía en la raíz del sitio. ([#65](https://github.com/untra/polyglot/pull/65)) + +### Mejoras de rendimiento y correcciones para `i18n_headers` tag +El procesamiento de documentos es ahora más rápido y se realizaron correcciones en el `i18n_headers` cuando se define el site.url. ([#67](https://github.com/untra/polyglot/pull/67)) + +### Teclas personalizadas para `active_lang` carga del sitio +Esto permite que las claves personalizadas se definan con el `active_lang`, dando interoperabilidad entre polyglot y otros plugins y themes ([#68](https://github.com/untra/polyglot/pull/68)) diff --git a/site/_posts/fr/2017-7-23-Polyglot-1.3.0.md b/site/_posts/fr/2017-7-23-Polyglot-1.3.0.md new file mode 100644 index 000000000..44453f0ac --- /dev/null +++ b/site/_posts/fr/2017-7-23-Polyglot-1.3.0.md @@ -0,0 +1,27 @@ +--- +layout: post +title: Polyglot 1.3.0 +lang: fr +--- + +Une nouvelle version de Polyglot a été lancée! Essaie! + +{% highlight yaml %} +gem install jekyll-polyglot +{% endhighlight %} + +Cette version a été rendue possible avec le soutien des utilisateurs suivants de github: +* [vlsi](https://github.com/vlsi) +* [pserwylo](https://github.com/pserwylo) + +### Fusion récursive spécifique à la langue `site.data` +Le contenu spécifique au langage défini dans votre répertoire `site.data` sera désormais fusionné récursivement, de sorte que `active_lang` contenu obtient la priorité sur `default_lang` contenu, obtient la priorité sur aucun contenu de langue. ([#59](https://github.com/untra/polyglot/pull/59)) + +### Créez toujours des fichiers non affectés `default_lang` la racine du site +Si le `default_lang` n'est pas défini dans les `languages`, cela garantit que les fichiers non assignés aux langues (tels que ceux exclus de la localisation) sont toujours écrits sur la racine du site. ([#65](https://github.com/untra/polyglot/pull/65)) + +### Améliorations et corrections de performances pour `i18n_headers` tag +Le traitement des documents est maintenant plus rapide, et des correctifs ont été effectués sur `i18n_headers` pour quand le site.url est défini. ([#67](https://github.com/untra/polyglot/pull/67)) + +### Touches personnalisées pour `active_lang` charge du site +Cela permet de définir des clés personnalisées avec `active_lang`, ce qui donne une interopérabilité entre les polyglottes et d'autres plugins et thèmes. ([#68](https://github.com/untra/polyglot/pull/68)) diff --git a/site/complex-permalink.de.md b/site/complex-permalink.de.md index dd7a805bc..514691b58 100644 --- a/site/complex-permalink.de.md +++ b/site/complex-permalink.de.md @@ -1,6 +1,6 @@ --- layout: page -title: A really long permalink +title: Eine wirklich lange permalink permalink: a-really-long/permalink/ lang: de --- diff --git a/site/complex-permalink.es.md b/site/complex-permalink.es.md index 4e4817170..24fcb1dd6 100644 --- a/site/complex-permalink.es.md +++ b/site/complex-permalink.es.md @@ -1,6 +1,6 @@ --- layout: page -title: A really long permalink +title: Un muy largo permalink permalink: a-really-long/permalink/ lang: es --- diff --git a/site/complex-permalink.fr.md b/site/complex-permalink.fr.md index 67a635d72..952da0c90 100644 --- a/site/complex-permalink.fr.md +++ b/site/complex-permalink.fr.md @@ -1,6 +1,6 @@ --- layout: page -title: A really long permalink +title: Un très long permalink permalink: a-really-long/permalink/ lang: fr --- diff --git a/site/seo.md b/site/seo.md index b30c26436..178a24eb4 100644 --- a/site/seo.md +++ b/site/seo.md @@ -48,7 +48,7 @@ You can get all of the above with a single tag added to your `header.html`: {% endhighlight %} Just add the permanent url for your website and all of the above SEO will be added to each page in your website. -In 1.2.4, you can leave it empty, just calling +In version >= 1.2.4, you can leave it empty, just calling {% highlight html %} {% raw %} {% I18n_Headers %} diff --git a/spec/tests/lib/jekyll/polyglot/hooks/coordinate_spec.rb b/spec/tests/lib/jekyll/polyglot/hooks/coordinate_spec.rb index 235975d4c..68fc4642e 100644 --- a/spec/tests/lib/jekyll/polyglot/hooks/coordinate_spec.rb +++ b/spec/tests/lib/jekyll/polyglot/hooks/coordinate_spec.rb @@ -1,6 +1,7 @@ require 'rspec/helper' require 'ostruct' require_relative '../../../../../../lib/jekyll/polyglot/hooks/coordinate' +# rubocop:disable BlockLength, LineLength describe 'hook_coordinate' do before do @config = Jekyll::Configuration::DEFAULTS.dup