Skip to content

Commit 2c977ff

Browse files
committed
Merge branch 'main' of github.com:untra/polyglot
2 parents 8aab97b + 46eefe8 commit 2c977ff

File tree

455 files changed

+29764
-4503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

455 files changed

+29764
-4503
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
jekyll-polyglot (1.10.0)
4+
jekyll-polyglot (1.11.0)
55
jekyll (>= 4.0, >= 3.0)
66

77
GEM

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,15 +331,15 @@ Feel free to open a PR and list your multilingual blog here you may want to shar
331331

332332
## 2.0 Roadmap
333333
* [x] - **site language**: portuguese Brazil `pt-BR`
334-
* [ ] - **site language**: portuguese Portugal `pt-PT`
335-
* [ ] - **site language**: arabic `ar`
336-
* [ ] - **site language**: japanese `ja`
334+
* [x] - **site language**: arabic `ar`
335+
* [x] - **site language**: japanese `ja`
337336
* [x] - **site language**: russian `ru`
338337
* [x] - **site language**: dutch `nl`
339338
* [x] - **site language**: korean `ko`
340339
* [x] - **site language**: hebrew `he`
341340
* [x] - **site language**: chinese China `zh-CN`
342341
* [ ] - **site language**: chinese Taiwan `zh-TW`
342+
* [ ] - **site language**: portuguese Portugal `pt-PT`
343343
* [ ] - get whitelisted as an official github-pages jekyll plugin
344344
* [x] - update CI provider
345345

jekyll-polyglot.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'jekyll-polyglot'
3-
s.version = '1.10.0'
3+
s.version = '1.11.0'
44
s.summary = 'I18n plugin for Jekyll Blogs'
55
s.description = 'Fast open source i18n plugin for Jekyll blogs.'
66
s.authors = ['Samuel Volin']

make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set VERSION="1.10.0"
2+
set VERSION="1.11.0"
33
REM this is running tests
44
CALL gem build jekyll-polyglot.gemspec
55
CALL gem install jekyll-polyglot-%VERSION%.gem

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
VERSION="1.10.0"
2+
VERSION="1.11.0"
33
# this is running tests
44
gem build jekyll-polyglot.gemspec
55
gem install jekyll-polyglot-$VERSION.gem

site/_config.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Polyglot
2-
languages: ["en", "es", "de", "fr", "ru", "nl", "he", "ko", "zh-CN", "pt-BR"]
2+
languages: ["en", "es", "de", "fr", "ru", "nl", "he", "ko", "zh-CN", "pt-BR", "ar", "jp"]
33
default_lang: "en"
44
exclude_from_localization: ["javascript", "images", "css", "public", "sitemap"]
55
parallel_localization: false
@@ -55,6 +55,8 @@ sidebar:
5555
ko: 안녕하세요!
5656
zh-CN: 你好!
5757
pt-BR: Olá!
58+
ar: مرحبا!
59+
jp: こんにちは!
5860
viewsource:
5961
en: view this page source on github
6062
es: ver el código fuente de esta página en github
@@ -66,6 +68,8 @@ sidebar:
6668
ko: 이 페이지의 소스 코드를 깃허브에서 보기
6769
zh-CN: 查看此页面的源代码在 github
6870
pt-BR: ver o código fonte desta página no github
71+
ar: عرض كود المصدر لهذه الصفحة على github
72+
jp: このページのソースコードをgithubで見る
6973
description:
7074
zh-CN: 一款为 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 提供 i18n 多语言功能的插件,方便快捷,适用于各类大小博客。<a href="https://github.com/untra" target="_blank">@untra</a> 出品。
7175
ko: <a href="https://github.com/untra" target="_blank">@untra</a>가 만든, 크고 작은 블로그 모두가 빠르고 직관적인 다국어 지원을 가능케 하는 i18n 지원 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 플러그인.
@@ -77,6 +81,8 @@ sidebar:
7781
fr: Un plugin de support de i18n pour <a href="http://jekyllrb.com" target="_blank">Jekyll</a> qui fait support de l'internationalisation rapide et intuitive, pour tous les blogs. Réalisé par <a href="https://github.com/untra" target="_blank">@untra</a>.
7882
en: A i18n support plugin for <a href="http://jekyllrb.com" target="_blank">Jekyll</a> that makes multi-language support fast and intuitive, for blogs big and small. Made by <a href="https://github.com/untra" target="_blank">@untra</a>.
7983
pt-BR: Um plugin de suporte i18n para <a href="http://jekyllrb.com" target="_blank">Jekyll</a> que torna o suporte a vários idiomas rápido e intuitivo, para blogs grandes e pequenos. Feito por <a href="https://github.com/untra" target="_blank">@untra</a>.
84+
ar: إضافة دعم i18n لـ <a href="http://jekyllrb.com" target="_blank">Jekyll</a> تجعل دعم اللغات المتعددة سريعاً وبديهياً، للمدونات الكبيرة والصغيرة. من صنع <a href="https://github.com/untra" target="_blank">@untra</a>.
85+
jp: <a href="http://jekyllrb.com" target="_blank">Jekyll</a>用のi18nサポートプラグインで、大小を問わずブログの多言語サポートを高速で直感的にします。<a href="https://github.com/untra" target="_blank">@untra</a>が作成。
8086

8187
keywords:
8288
en: multilingual, i18n, jekyll, polyglot, fast, intuitive, untra, github, pages, blog, plugin, ruby, gem, internationalization, localization, translation, language, support, multi-language, multi-lingual
@@ -89,6 +95,8 @@ keywords:
8995
fr: multilingue, i18n, jekyll, polyglotte, rapide, intuitif, untra, github, pages, blog, plugin, ruby, gem, internationalisation, localisation, traduction, langue, support, multilingue, multilingue
9096
pt-BR: multilíngue, i18n, jekyll, políglota, rápido, intuitivo, untra, github, páginas, blog, plugin, ruby, gem, internacionalização, localização, tradução, idioma, suporte, multilíngue, multilíngue
9197
zh-CN: 多语言, i18n, 杰基尔, 多语种, 快速, 直观, untra, 깃허브, 页面, 博客, 插件, 卢比, gem, 国际化, 本地化, 翻译, 语言, 支持, 多语言, 多语言
98+
ar: متعدد اللغات, i18n, جيكيل, متعدد اللغات, سريع, بديهي, untra, جيثب, صفحات, مدونة, إضافة, روبي, gem, تدويل, توطين, ترجمة, لغة, دعم, متعدد اللغات, متعدد اللغات
99+
jp: 多言語, i18n, ジェキル, 多言語, 高速, 直感的, untra, ギットハブ, ページ, ブログ, プラグイン, ルビー, gem, 国際化, ローカライゼーション, 翻訳, 言語, サポート, 多言語, 多言語
92100
description:
93101
zh-CN: 一款为 Jekyll 提供 i18n 多语言功能的插件,方便快捷,适用于各类大小博客
94102
ko: 크고 작은 블로그 모두가 빠르고 직관적인 다국어 지원을 가능케 하는 i18n 지원 Jekyll 플러그인.
@@ -100,10 +108,12 @@ description:
100108
fr: Un plugin de support de i18n pour Jekyll qui fait support de l'internationalisation rapide et intuitive, pour tous les blogs.
101109
en: A i18n support plugin for Jekyll that makes multi-language support fast and intuitive, for blogs big and small.
102110
pt-BR: Um plugin de suporte i18n para Jekyll que torna o suporte a vários idiomas rápido e intuitivo, para blogs grandes e pequenos.
111+
ar: إضافة دعم i18n لـ Jekyll تجعل دعم اللغات المتعددة سريعاً وبديهياً، للمدونات الكبيرة والصغيرة.
112+
jp: Jekyll用のi18nサポートプラグインで、大小を問わずブログの多言語サポートを高速で直感的にします。
103113

104114
paginate: 5
105115
# Custom vars
106-
version: 1.10.0
116+
version: 1.11.0
107117
# practical values langsep are "|", "•", "·", "-", "–"
108118
langsep: ""
109119

site/_data/ar/sample.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1: "مرحباً، وأهلاً بك في صفحة عينة"
2+
2: "يرجى الاستمتاع بإقامتك"
3+
3: "هذا النص العينة جاء من ملف .yml في مجلد _data"
4+
4: "علامات html <i>محفوظة</i>"
5+
5: 'والروابط <a href="/">نسبية</a>'

site/_data/jp/sample.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1: "こんにちは、サンプルページへようこそ"
2+
2: "お楽しみください"
3+
3: "このサンプルテキストは_dataディレクトリの.ymlファイルから来ました"
4+
4: "htmlタグは<i>保持されます</i>"
5+
5: 'リンクは<a href="/">相対化されます</a>'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.11 - miscellaneous fixes release
4+
lang: en
5+
description: Jekyll Polyglot 1.11.0 release comes with a variety of updates and support for arabic and japanese site languages
6+
---
7+
8+
Jekyll Polyglot 1.11.0 has been released. It has fixes for tricky bugs that have been challenging to solve until recently. This release is possible thanks to fellow contributors and users like you.
9+
10+
## fixed conflicts with jekyll themes
11+
12+
Other jekyll themes such as [miminal-mistakes](https://github.com/mmistakes/minimal-mistakes/blob/master/_config.yml#L168-L169) or [chirpy](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_config.yml#L208-L210) use glob patterns in `exclude:` configurations which would previously conflict with polyglot processing websites with url relativization. [@mattions](https://github.com/mattions) contributed a fix to `regex.escape` these values before being applied to the relativization regexes.
13+
14+
This adjustment should help with using polyglot out-of-the-box with other common jekyll themes.
15+
16+
## other miscellaneous fixes
17+
18+
* [:polyglot, :post_write hook correctly passes site](https://github.com/untra/polyglot/pull/266)
19+
* [i18n_headers x-default value correctly matches site url](https://github.com/untra/polyglot/pull/262)
20+
* [codecov and ci adjustments](https://github.com/untra/polyglot/pull/263)
21+
22+
## support for japanese and arabic
23+
24+
The polyglot website now has translated support versions in [arabic](https://polyglot.untra.io/ar/) and [japanese](https://polyglot.untra.io/jp/). These site translations were made with the help of AI ; if anything is mistranslated please contribute better corrections!
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.11 - إصدار إصلاحات متنوعة
4+
lang: ar
5+
description: إصدار Jekyll Polyglot 1.11.0 يأتي مع مجموعة متنوعة من التحديثات ودعم لغات الموقع العربية واليابانية
6+
---
7+
8+
تم إصدار Jekyll Polyglot 1.11.0. يحتوي على إصلاحات للأخطاء المعقدة التي كانت صعبة الحل حتى وقت قريب. هذا الإصدار ممكن بفضل المساهمين والمستخدمين مثلك.
9+
10+
## إصلاح تعارضات مع قوالب jekyll
11+
12+
قوالب jekyll أخرى مثل [minimal-mistakes](https://github.com/mmistakes/minimal-mistakes/blob/master/_config.yml#L168-L169) أو [chirpy](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_config.yml#L208-L210) تستخدم أنماط glob في إعدادات `exclude:` التي كانت تتعارض سابقاً مع معالجة polyglot للمواقع الإلكترونية مع نسبية URL. ساهم [@mattions](https://github.com/mattions) بإصلاح لـ `regex.escape` هذه القيم قبل تطبيقها على التعبيرات النمطية للنسبية.
13+
14+
هذا التعديل يجب أن يساعد في استخدام polyglot جاهز للاستخدام مع قوالب jekyll الشائعة الأخرى.
15+
16+
## إصلاحات متنوعة أخرى
17+
18+
* [:polyglot, :post_write hook يمرر الموقع بشكل صحيح](https://github.com/untra/polyglot/pull/266)
19+
* [i18n_headers قيمة x-default تتطابق بشكل صحيح مع URL الموقع](https://github.com/untra/polyglot/pull/262)
20+
* [تعديلات codecov و ci](https://github.com/untra/polyglot/pull/263)
21+
22+
## دعم اليابانية والعربية
23+
24+
موقع polyglot لديه الآن إصدارات دعم مترجمة بال[عربية](https://polyglot.untra.io/ar/) و[اليابانية](https://polyglot.untra.io/jp/). تمت ترجمة هذه الموقع بمساعدة الذكاء الاصطناعي؛ إذا كان هناك أي شيء مترجم بشكل خاطئ، يرجى المساهمة بإصلاحات أفضل!

0 commit comments

Comments
 (0)