Polyglot 1.3.3

Polyglot version 1.3.3 is out! It includes a minor fix for when running jekyll serve --incremental with polyglot installed on a fresh build.

gem install jekyll-polyglot

This release was made possible with the support of the following github user!

Polyglot 1.3.2

Polyglot version 1.3.2 has been released! Give it a try!

gem install jekyll-polyglot

This release was made possible with the support of the following github user

lang_from_path setting to derive document lang from relative path

This release adds a new boolean configuration setting lang_from_path. When set to true, this option tells polyglot to derive the base language from a matching subpath if the lang frontmatter is not set. This setting works well in conjunction with other translation maintenance tools such as po4a.

relative and absolute url relativization improved logic

excluded_from_localization files will have trailing slashes added to their paths if they are directories. In addition, these files will be matched differently in the relativize and absolute url regex matchers. This will improve the accuracy of url relativization based on user feedback.

Polyglot 1.3.0

Eine neue Version von Polyglot wurde veröffentlicht! Versuche es!

gem install jekyll-polyglot

Diese Freigabe wurde mit der Unterstützung der folgenden github Benutzer ermöglicht:

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)

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)

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)

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)

Polyglot 1.2.4

A new version of Polyglot has been released! Give it a try!

gem install jekyll-polyglot

This release was made possible due to the kind support of github user vlsi, who helped fix a few bugs and added new features:

Support translation of absolute URLs

Polyglot will now translate your site.url, so absolute urls will now get translated as well.

Translation of all Jekyll Collections

Jekyll collections are a fairly new feature. This update translates all registered collections, not just site posts and pages.

Use language-specific _data for site.data rich text when site.data[:lang] is present

Top level rich text organized by language will be assigned to the site.data when building. Before, when rendering rich text, you would have to use:

{{ site.data[site.active_lang].richTextString }}

Now rich text can be rendered with just:

{{ site.data.richTextString }}

The I18n_Headers tag now defaults to site.url when left blank

Users can now use

{% I18n_Headers %}

without specifying a url, defaulting it to your site.url

Polyglot 1.2.0

Eine neue Version von Polyglot wurde veröffentlicht! Versuche es!

gem install jekyll-polyglot

und eine Liste jekyll-polyglot unter Ihren aufgelisteten Edelsteine ​​in Ihrer _config.yml

Es geht vor allem Grundstein für neue Funktionen und eine bessere Verwaltung mehrsprachiger Inhalte vorzubereiten. Er hat eine neue Funktion:

{% I18n_Headers %}

Setzen Sie diesen Tag mit der url Ihrer Website in Ihrem head.html enthält Datei die maximale SEO zu erhalten, die von mit einer mehrsprachigen Website. Es ist die gleiche wie die folgende Flüssigkeit Code:

<meta http-equiv="Content-Language" content="{{site.active_lang}}">
<link rel="alternate"
      hreflang="{{site.default_lang}}"
      href="http://yoursite.com{{page.permalink}}" />
{% for lang in site.languages %}
{% if lang == site.default_lang %}
  {% continue %}
{% endif %}
<link rel="alternate"
    hreflang="{{lang}}"
    href="http://yoursite.com/{{lang}}{{page.permalink}}" />
{% endfor %}

In der Kopfzeile, aber schneller und sauberer! Weitere Informationen finden Sie unter die SEO-Seite