Skip to content

Commit

Permalink
Support for Korean (#167)
Browse files Browse the repository at this point in the history
* Add Korean translation of about.en.md

* Add Korean translation of complex-permalink.en.md

* Add initial Korean localization for site

* Translate untranslated text

* Build site with Korean localization
  • Loading branch information
SalinatedCoffee authored Feb 27, 2023
1 parent 82105aa commit 1a14fe8
Show file tree
Hide file tree
Showing 184 changed files with 5,612 additions and 158 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 - 2022 Samuel Volin
Copyright (c) 2015 - 2023 Samuel Volin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ If you have something you'd like to contribute to jekyll-polyglot, please open a
* [ ] - **site language**: japanese `ja`
* [x] - **site language**: russian `ru`
* [x] - **site language**: dutch `nl`
* [ ] - **site language**: korean `ko`
* [x] - **site language**: korean `ko`
* [x] - **site language**: hebrew `he`
* [ ] - get whitelisted as an official github-pages jekyll plugin
* [x] - update CI provider

## Copyright
Copyright (c) Samuel Volin 2022. License: MIT
Copyright (c) Samuel Volin 2023. License: MIT
4 changes: 3 additions & 1 deletion site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ hello:
ru: Привет!
nl: Hallo!
he: "שלום!"
ko: 안녕하세요!

plugins: [jekyll-polyglot, jekyll-paginate]
# Permalinks
Expand All @@ -41,6 +42,7 @@ exclude: ['LICENSE.md', 'README.md', 'publi.sh', 'Gemfile.lock', 'Gemfile']
title: Polyglot
tagline: 'Straightforward I18n for Jekyll Blogs'
description:
ko: <a href="https://github.com/untra" target="_blank">@untra</a>가 만든, 크고 작은 블로그 모두가 빠르고 직관적인 다국어 지원을 가능케 하는 i18n 지원 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 플러그인.
he: תוסף תמיכה ב-i18n עבור <a href="http://jekyllrb.com" target="_blank">Jekyll</a> שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת <a href="https://github.com/untra" target="_blank">@untra</a>.
nl: Een plug-in voor internationlisering van <a href="http://jekyllrb.com" target="_blank">Jekyll</a> die meertalige ondersteuning snel en intuïtief maakt, voor blogs groot en klein. Gemaakt door <a href="https://github.com/untra" target="_blank">@untra</a>.
ru: Плагин поддержки i18n для <a href="http://jekyllrb.com" target="_blank">Jekyll</a> что делает поддержку нескольких языков быстрой и интуитивно понятной, для больших и маленьких блогов. Сделано в <a href="https://github.com/untra" target="_blank">@untra</a>.
Expand All @@ -59,6 +61,6 @@ github:
repo: https://github.com/untra/polyglot

#Polyglot
languages: ["en", "es", "de", "fr", "ru", "nl", "he"]
languages: ["en", "es", "de", "fr", "ru", "nl", "he", "ko"]
default_lang: "en"
exclude_from_localization: ["javascript", "images", "css", "public"]
5 changes: 5 additions & 0 deletions site/_data/ko/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1: "안녕하세요, 샘플 페이지에 오신것을 환영합니다"
2: "즐거운 시간 보내세요"
3: "이 샘플 텍스트는 _data 디렉토리 내의 .yml 파일로부터 나왔습니다"
4: "html 태그는 <i>보존되며</i>"
5: '링크는 <a href="/">상대화됩니다</a>'
59 changes: 59 additions & 0 deletions site/_posts/ko/2015-9-19-presenting-polyglot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
layout: post
title: Polyglot을 소개합니다
lang: ko
---

수개월에 걸친 노력과 수정 끝에, **Polyglot**을 자랑스럽게 선보입니다: 컨텐츠를 여러가지 언어와 방문자들에 *반드시* 맞춰주어야 하는 [Jekyll](http://jekyllrb.com) 사이트를 위한 i18n 플러그인이죠.

### 기능

Jekyll을 위한 여러가지 다국어 플러그인이 있지만, Polyglot은 그 중에서도 특별합니다. Polyglot은 보통 개발자들의 몫으로 남겨지는 잡일을 (url과 씨름하거나 일관된 사이트맵 유지 등) 해결함과 동시에 Jekyll 개발자들이 SEO나 빠른 컨텐츠 집계에 활용할 수 있는 효율적이고 단순한 툴을 제공합니다.

## 링크 상대화

과거에는 정적 다국어 사이트나 블로그에서 상대적 링크가 어느 언어를 서빙하고 있는지 면밀하게 관리해야만 했습니다. 개발자가 실수하기가 너무나도 쉬웠고, 외국어 방문자들은 미번역된 컨텐츠 사이에서 표류하기가 일쑤였죠.

Polyglot은 여러분이 지원하고자 하는 각 언어의 url을 자동으로 상대화합니다. 이 덕분에 방문자들이 여러분의 사이트를 브라우징 할 때 하나의 언어 안에서만 계속 격리되죠.

## 폴백 지원

번역되거나 다국어 컨텐츠가 *없는* 경우에는, Jekyll은 기존의 컨텐츠로 빌드합니다. 번역되거나 다국어 컨텐츠가 *있는* 경우, Jekyll은 그 컨텐츠로 빌드합니다. 간단하죠.

모든 언어에 걸쳐 사이트맵은 일관성 있게 유지되고, 번역된 내용은 그 언어를 위해 빌드된 사이트 내에서만 머뭅니다.

## 리치 컨텐츠 번역

리치 언어 컨텐츠는 보통 구현하기가 힘듭니다. Jekyll 사이트가 짧은 문자열이나 언어에 의존하는 배너를 일관성 있게 유지하기는 어렵습니다.

*이렇게 쉬울때는 제외하고 말이죠*. config.yml 안에 문자열을 이렇게 보관하면 됩니다:
{% highlight yaml %}
hello:
en: Hello!
es: ¡hola!
fr: Bonjour!
de: Guten Tag!
ko: 안녕하세요!
{% endhighlight %}
그리고 liquid에서는 이렇게만 호출하세요:
{% highlight html %}
{% raw %}
{{ site.hello[site.active_lang]}}
{% endraw %}
{% endhighlight %}
그러면:
<p class="message">
{{ site.hello[site.active_lang]}}
</p>

## 빠르고, 비동기화된, 오버헤드 없는 빌드

Polyglot은 기존 언어 사이트를 빌드하는 것 만큼 다국어 사이트도 빠르게 빌드합니다.
Polyglot은 여러분의 사이트의 모든 언어를 각각의 프로세스로써 *동시에* 빌드해 오버헤드를 최소화합니다. 즉, 웹사이트 빌드 시간이 지원하는 언어의 갯수에 정비례하지 않아도 된다는 뜻이죠.

### 다운로드

Polyglot은 gem으로도 배포되고 있고, Jekyll 플러그인으로도 제공되고 있습니다. 설치하시려면:
{% highlight bash %}
gem install 'jekyll-polyglot'
{% endhighlight %}
5 changes: 4 additions & 1 deletion site/_site/2012/02/06/whats-jekyll/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2012/02/06/whats-jekyll/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2012/02/06/whats-jekyll/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2012/02/06/whats-jekyll/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2012/02/06/whats-jekyll/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2012/02/06/whats-jekyll/" >he</a> |

<a href="/ko/2012/02/06/whats-jekyll/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2013/12/28/introducing-hyde/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2013/12/28/introducing-hyde/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2013/12/28/introducing-hyde/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2013/12/28/introducing-hyde/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2013/12/28/introducing-hyde/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2013/12/28/introducing-hyde/" >he</a> |

<a href="/ko/2013/12/28/introducing-hyde/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2015/09/19/presenting-polyglot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2015/09/19/presenting-polyglot/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2015/09/19/presenting-polyglot/" >he</a> |

<a href="/ko/2015/09/19/presenting-polyglot/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2015/11/14/polyglot-version-1-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2015/11/14/polyglot-version-1-1/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2015/11/14/polyglot-version-1-1/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2015/11/14/polyglot-version-1-1/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2015/11/14/polyglot-version-1-1/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2015/11/14/polyglot-version-1-1/" >he</a> |

<a href="/ko/2015/11/14/polyglot-version-1-1/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2016/04/20/Polyglot-1.2.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2016/04/20/Polyglot-1.2.0/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2016/04/20/Polyglot-1.2.0/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2016/04/20/Polyglot-1.2.0/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2016/04/20/Polyglot-1.2.0/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2016/04/20/Polyglot-1.2.0/" >he</a> |

<a href="/ko/2016/04/20/Polyglot-1.2.0/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2016/12/16/Polyglot-1.2.4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2016/12/16/Polyglot-1.2.4/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2016/12/16/Polyglot-1.2.4/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2016/12/16/Polyglot-1.2.4/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2016/12/16/Polyglot-1.2.4/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2016/12/16/Polyglot-1.2.4/" >he</a> |

<a href="/ko/2016/12/16/Polyglot-1.2.4/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2017/07/23/Polyglot-1.3.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2017/07/23/Polyglot-1.3.0/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2017/07/23/Polyglot-1.3.0/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2017/07/23/Polyglot-1.3.0/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2017/07/23/Polyglot-1.3.0/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2017/07/23/Polyglot-1.3.0/" >he</a> |

<a href="/ko/2017/07/23/Polyglot-1.3.0/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2020/04/29/polyglot-1.3.2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2020/04/29/polyglot-1.3.2/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2020/04/29/polyglot-1.3.2/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2020/04/29/polyglot-1.3.2/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2020/04/29/polyglot-1.3.2/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2020/04/29/polyglot-1.3.2/" >he</a> |

<a href="/ko/2020/04/29/polyglot-1.3.2/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2020/07/19/polyglot-1.3.3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2020/07/19/polyglot-1.3.3/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2020/07/19/polyglot-1.3.3/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2020/07/19/polyglot-1.3.3/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2020/07/19/polyglot-1.3.3/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2020/07/19/polyglot-1.3.3/" >he</a> |

<a href="/ko/2020/07/19/polyglot-1.3.3/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2021/02/07/polyglot-1.4.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2021/02/07/polyglot-1.4.0/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2021/02/07/polyglot-1.4.0/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2021/02/07/polyglot-1.4.0/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2021/02/07/polyglot-1.4.0/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2021/02/07/polyglot-1.4.0/" >he</a> |

<a href="/ko/2021/02/07/polyglot-1.4.0/" >ko</a> |

</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion site/_site/2021/04/18/polyglot-1.4.1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru/2021/04/18/polyglot-1.4.1/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl/2021/04/18/polyglot-1.4.1/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he/2021/04/18/polyglot-1.4.1/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko/2021/04/18/polyglot-1.4.1/"/>

<title>

Expand Down Expand Up @@ -115,7 +116,7 @@ <h1>
<small class="sidebar-nav-item">Currently v1.5.1</small>
</nav>

<p><small>&copy; 2022 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p><small>&copy; 2023 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->

Expand All @@ -133,6 +134,8 @@ <h1>

<a href="/he/2021/04/18/polyglot-1.4.1/" >he</a> |

<a href="/ko/2021/04/18/polyglot-1.4.1/" >ko</a> |

</p>
</div>
</div>
Expand Down
Loading

0 comments on commit 1a14fe8

Please sign in to comment.