From 4e9c7ef503735d5ab3456fba9776b374c2a3d6b2 Mon Sep 17 00:00:00 2001 From: NonExistPlayer Date: Sun, 26 Jan 2025 11:08:28 +0300 Subject: [PATCH 1/3] The translation method has been changed. --- _data/pages.yml | 66 ++++++++++++++++++++++++++++++++++++++++ _data/t.yml | 9 ++++++ _includes/footer-ru.html | 15 --------- _includes/header-ru.html | 35 --------------------- _includes/header.html | 14 +++++++-- _layouts/home-ru.html | 10 ------ _layouts/home.html | 2 +- _layouts/main.html | 14 +++++++++ index.md | 48 +++-------------------------- ru/index.md | 45 +++------------------------ 10 files changed, 109 insertions(+), 149 deletions(-) create mode 100644 _data/pages.yml create mode 100644 _data/t.yml delete mode 100644 _includes/footer-ru.html delete mode 100644 _includes/header-ru.html delete mode 100644 _layouts/home-ru.html create mode 100644 _layouts/main.html diff --git a/_data/pages.yml b/_data/pages.yml new file mode 100644 index 0000000..d9414b4 --- /dev/null +++ b/_data/pages.yml @@ -0,0 +1,66 @@ +en: + index: | + # What is Eclair? + **Eclair** is an [open source](https://github.com/NonExistPlayer/EclairPlayer) audio player written in C# using the [Avalonia](https://github.com/AvaloniaUI/Avalonia) framework and the [LibVLCSharp](https://github.com/videolan/libvlcsharp) library, which is gradually being developed. + + # Why Eclair? + **Eclair** is an attempt to create an alternative to existing audio players, for those who value the appearance of the program and who care about it. This player is a new player. + + # Why Eclair open source? + I, [NonExistPlayer](https://github.com/NonExistPlayer) support free software.
+ I don't think my hobby should be closed source.
+ I enjoy developing this project despite the difficulties and problems I encounter when developing with **Eclair**. + + # Other + ## Supported audio formats + - `.mp3` + - `.aac` + - `.asf` + - `.wma` + - `.ogg` + - `.flac` + - `.midi` + - `.wav` + + ## Supported OS + The minimum version for launching is written next to the OS name. + - **Android** 8.0 + + The following information is taken [from here](https://github.com/AvaloniaUI/Avalonia/wiki/Runtime-Requirements). + - **Windows** 8.0 + - **Debian** 9 + - **Ubuntu** 16.04 + - **Fedora** 30 +ru: + index: | + # Что такое Eclair? + **Eclair** — аудио плеер с [открытым исходным кодом](https://github.com/NonExistPlayer/EclairPlayer) написанный на C# с использованием фреймворка [Avalonia](https://github.com/AvaloniaUI/Avalonia) и библиотеки [LibVLCSharp](https://github.com/videolan/libvlcsharp), который постепенно равзивается. + + # Почему Eclair? + **Eclair** это попытка создать альтернативу существующим аудио плеерам, для тех кто ценит внешний вид программы и кому не всё равно на это. Этот плеер это новый плеер. + + # Почему Eclair с открытым исходным кодом? + Я, [NonExistPlayer](https://github.com/NonExistPlayer) поддерживаю свободное ПО.
+ Я не считаю что моё хобби должно быть закрытым.
+ Мне нравится разрабатывать этот проект не смотря на трудности и проблемы с которыми я сталкиваюсь при разработке с **Eclair**. + + # Прочее + ## Поддерживаемые аудио-форматы + - `.mp3` + - `.aac` + - `.asf` + - `.wma` + - `.ogg` + - `.flac` + - `.midi` + - `.wav` + + ## Поддерживаемые ОC + Рядом с названием ОС написана минимальная версия для запуска. + - **Android** 8.0 + + Следующая информация взята [отсюда](https://github.com/AvaloniaUI/Avalonia/wiki/Runtime-Requirements). + - **Windows** 8.0 + - **Debian** 9 + - **Ubuntu** 16.04 + - **Fedora** 30 \ No newline at end of file diff --git a/_data/t.yml b/_data/t.yml new file mode 100644 index 0000000..c6b0fd8 --- /dev/null +++ b/_data/t.yml @@ -0,0 +1,9 @@ +en: + slogan: "Just. Open. Sweet." + desc: "An open-source audio player." + download: "Download" + +ru: + slogan: "Просто. Открыто. Сладко." + desc: "Аудио плеер с открытым исходным кодом." + download: "Скачать" \ No newline at end of file diff --git a/_includes/footer-ru.html b/_includes/footer-ru.html deleted file mode 100644 index cfbac3b..0000000 --- a/_includes/footer-ru.html +++ /dev/null @@ -1,15 +0,0 @@ - - -
- - \ No newline at end of file diff --git a/_includes/header-ru.html b/_includes/header-ru.html deleted file mode 100644 index 21aac38..0000000 --- a/_includes/header-ru.html +++ /dev/null @@ -1,35 +0,0 @@ - \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index 0275f94..e471036 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -19,9 +19,17 @@
- Download - - Русский + {{ site.data.t[page.lang].download }} + {%- if page.lang == 'en' -%} + + Русский + {%- else -%} + + English + {%- endif -%} +
{%- endif -%} diff --git a/_layouts/home-ru.html b/_layouts/home-ru.html deleted file mode 100644 index 6666f7d..0000000 --- a/_layouts/home-ru.html +++ /dev/null @@ -1,10 +0,0 @@ - - - {%- include head.html -%} - - {%- include header-ru.html -%} -
- {{ content }} -
- {%- include footer-ru.html -%} - \ No newline at end of file diff --git a/_layouts/home.html b/_layouts/home.html index a0c01a7..4f17435 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -1,5 +1,5 @@ - + {%- include head.html -%} {%- include header.html -%} diff --git a/_layouts/main.html b/_layouts/main.html new file mode 100644 index 0000000..06ba869 --- /dev/null +++ b/_layouts/main.html @@ -0,0 +1,14 @@ +--- +layout: home +--- + +
+ Icon +
+ Eclair +
+ {{ site.data.t[page.lang].slogan }} +

{{ site.data.t[page.lang].desc }}

+

+ +{{ content }} \ No newline at end of file diff --git a/index.md b/index.md index 7f1a514..5a4feee 100644 --- a/index.md +++ b/index.md @@ -1,48 +1,8 @@ --- -layout: home +layout: main title: Eclair ---- -
- Icon -
- Eclair -
- Just. Open. Sweet. -

An open-source - .NET - audio player. -

-

-# What is Eclair? -**Eclair** is an [open source](https://github.com/NonExistPlayer/EclairPlayer) audio player written in C# using the [Avalonia](https://github.com/AvaloniaUI/Avalonia) framework and the [LibVLCSharp](https://github.com/videolan/libvlcsharp) library, which is gradually being developed. - -# Why Eclair? -**Eclair** is an attempt to create an alternative to existing audio players, for those who value the appearance of the program and who care about it. This player is a new player. - -# Why Eclair open source? -I, [NonExistPlayer](https://github.com/NonExistPlayer) support free software.
-I don't think my hobby should be closed source.
-I enjoy developing this project despite the difficulties and problems I encounter when developing with **Eclair**. -# Other -## Supported audio formats -- `.mp3` -- `.aac` -- `.asf` -- `.wma` -- `.ogg` -- `.flac` -- `.midi` -- `.wav` - -## Supported OS -The minimum version for launching is written next to the OS name. -- **Android** 8.0 -- ~~iOS~~ -- ~~MacOS~~ +lang: en +--- -The following information is taken [from here](https://github.com/AvaloniaUI/Avalonia/wiki/Runtime-Requirements). -- **Windows** 8.0 -- **Debian** 9 -- **Ubuntu** 16.04 -- **Fedora** 30 \ No newline at end of file +{{ site.data.pages[page.lang].index }} \ No newline at end of file diff --git a/ru/index.md b/ru/index.md index b5f510f..bdc1885 100644 --- a/ru/index.md +++ b/ru/index.md @@ -1,46 +1,9 @@ --- -layout: home-ru +layout: main title: Eclair permalink: /ru/ ---- -
- Icon -
- Eclair -
- Просто. Открыто. Сладко. -

Открытый аудио-плеер написанный на - .NET

-

- -# Что такое Eclair? -**Eclair** — аудио плеер с [открытым исходным кодом](https://github.com/NonExistPlayer/EclairPlayer) написанный на C# с использованием фреймворка [Avalonia](https://github.com/AvaloniaUI/Avalonia) и библиотеки [LibVLCSharp](https://github.com/videolan/libvlcsharp), который постепенно равзивается. - -# Почему Eclair? -**Eclair** это попытка создать альтернативу существующим аудио плеерам, для тех кто ценит внешний вид программы и кому не всё равно на это. Этот плеер это новый плеер. -# Почему Eclair с открытым исходным кодом? -Я, [NonExistPlayer](https://github.com/NonExistPlayer) поддерживаю свободное ПО.
-Я не считаю что моё хобби должно быть закрытым.
-Мне нравится разрабатывать этот проект не смотря на трудности и проблемы с которыми я сталкиваюсь при разработке с **Eclair**. - -# Прочее -## Поддерживаемые аудио-форматы -- `.mp3` -- `.aac` -- `.asf` -- `.wma` -- `.ogg` -- `.flac` -- `.midi` -- `.wav` - -## Поддерживаемые ОC -Рядом с названием ОС написана минимальная версия для запуска. -- **Android** 8.0 +lang: ru +--- -Следующая информация взята [отсюда](https://github.com/AvaloniaUI/Avalonia/wiki/Runtime-Requirements). -- **Windows** 8.0 -- **Debian** 9 -- **Ubuntu** 16.04 -- **Fedora** 30 \ No newline at end of file +{{ site.data.pages[page.lang].index }} \ No newline at end of file From ac9712352c16bb8d83e324f1de11dc30942075de Mon Sep 17 00:00:00 2001 From: NonExistPlayer Date: Sun, 26 Jan 2025 11:17:10 +0300 Subject: [PATCH 2/3] Update header.html --- _includes/header.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_includes/header.html b/_includes/header.html index e471036..80752f3 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -20,6 +20,14 @@
{{ site.data.t[page.lang].download }} + {%- for path in page_paths -%} + {%- assign my_page = site.pages | where: "path", path | first -%} + {%- if my_page.lang == page.lang and my_page.title != 'Eclair' -%} + {%- if my_page.title -%} + {{ my_page.title | escape }} + {%- endif -%} + {%- endif -%} + {%- endfor -%} {%- if page.lang == 'en' -%} From f978c8ae76adcea00c6fd54893372c9d6323d078 Mon Sep 17 00:00:00 2001 From: NonExistPlayer Date: Sun, 26 Jan 2025 11:21:33 +0300 Subject: [PATCH 3/3] Translated `footer.html` --- _data/t.yml | 8 +++++++- _includes/footer.html | 13 +++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/_data/t.yml b/_data/t.yml index c6b0fd8..7e07dad 100644 --- a/_data/t.yml +++ b/_data/t.yml @@ -2,8 +2,14 @@ en: slogan: "Just. Open. Sweet." desc: "An open-source audio player." download: "Download" + eclair-source-code: "Eclair Source Code" + source-code: "Site Source Code" + license: "The source code of the site is protected by the GPL v3.0 license." ru: slogan: "Просто. Открыто. Сладко." desc: "Аудио плеер с открытым исходным кодом." - download: "Скачать" \ No newline at end of file + download: "Скачать" + eclair-source-code: "Исходный код" + source-code: "Исходный код сайта" + license: "Исходный код сайта защищён лицензией GPL v3.0." \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 31dd993..1bd53f5 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -4,12 +4,13 @@ \ No newline at end of file