From a0ddaf2f34df16cbd7721c02cfe54e7e14ee2c67 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Mon, 13 May 2019 22:19:45 +0900 Subject: [PATCH] Added multianguage plugin --- _config.yml | 8 +++++++- _i18n/en.yml | 3 +++ _i18n/ja.yml | 3 +++ _i18n/ko.yml | 3 +++ _layouts/default.html | 4 ++-- index.html | 7 +++++++ index.md | 4 ---- 7 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 _i18n/en.yml create mode 100644 _i18n/ja.yml create mode 100644 _i18n/ko.yml create mode 100644 index.html delete mode 100644 index.md diff --git a/_config.yml b/_config.yml index 462678c3..96bc7786 100644 --- a/_config.yml +++ b/_config.yml @@ -9,4 +9,10 @@ google_analytics: UA-119938781-2 github: app_url: https://github.com/tom5079/Pupil-issue/releases/download/1.2/Pupil-v1.2.apk - issue_url: https://github.com/tom5079/Pupil-issue/issues/new/choose \ No newline at end of file + issue_url: https://github.com/tom5079/Pupil-issue/issues/new/choose + +gems: + - jekyll-multiple-languages-plugin + +languages: ["en", "ko", "ja"] +exclude_from_localizations: [] \ No newline at end of file diff --git a/_i18n/en.yml b/_i18n/en.yml new file mode 100644 index 00000000..61c9c164 --- /dev/null +++ b/_i18n/en.yml @@ -0,0 +1,3 @@ +header: + download_app: Download app + having_a_problem: Having a problem? \ No newline at end of file diff --git a/_i18n/ja.yml b/_i18n/ja.yml new file mode 100644 index 00000000..cc81bdec --- /dev/null +++ b/_i18n/ja.yml @@ -0,0 +1,3 @@ +header: + download_app: アプリダウンロード + having_a_problem: 問題がありますか? \ No newline at end of file diff --git a/_i18n/ko.yml b/_i18n/ko.yml new file mode 100644 index 00000000..200d9249 --- /dev/null +++ b/_i18n/ko.yml @@ -0,0 +1,3 @@ +header: + download_app: 앱 다운로드 + having_a_problem: 문제가 있으세요? \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 62464811..f40a6154 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -25,8 +25,8 @@

{{ page.title | default: site.title | default: site.github.repository_name }}

{{ page.description | default: site.description | default: site.github.project_tagline }}

{% if site.show_downloads %} - Download app - Having a problem? + (% t header.download_app %} + {% header.having_a_problem %} {% endif %} diff --git a/index.html b/index.html new file mode 100644 index 00000000..342dcf60 --- /dev/null +++ b/index.html @@ -0,0 +1,7 @@ +--- +layout: default +--- + +
+

Blog Posts

+
\ No newline at end of file diff --git a/index.md b/index.md deleted file mode 100644 index 1ab753a4..00000000 --- a/index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: default ---- -