Added some FAQ UI translations (en, ru).

Added RU translation for /faq/android/what-android-version-can-run-organic-maps page

Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
Sergiy Kozyr 2024-02-23 17:39:26 +02:00
parent a997f3ce1e
commit 27ae95f377
Signed by: strump
GPG key ID: C622E5563CAC205D
6 changed files with 29 additions and 9 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
node_modules
public
translations.yaml
.idea/*

View file

@ -42,6 +42,8 @@ install-fdroid="Install Organic Maps from F-Droid"
language = "English"
name = "Name"
token = "Token"
faq-menu-title = "F.A.Q"
faq-questions = "questions"
# Please sort all other translation sections and values in alphabetical order.
[languages.de]
@ -108,6 +110,9 @@ install-fdroid = "Установите Organic Maps из F-Droid"
language = "Русский"
name = "Название"
token = "Токен"
faq-menu-title = "Справка"
faq-questions = "вопросы"
[languages.tr]
[languages.tr.translations]
address = "Adres"

View file

@ -0,0 +1,14 @@
---
title: Какие версии Android поддерживает Organic Maps?
description: "Frequently asked questions for Organic Maps application"
taxonomies:
faq: ["Android"]
extra:
order: 10
---
Для работы Organic Maps достаточно устройства с Android 5 или выше. Если у вас самая свежая версия Android, значит Organic Maps точно заработает.
Карта может работать как при наличии Google сервисов, так и без них.

View file

@ -85,10 +85,10 @@
<main>
{% if page.taxonomies and page.taxonomies.faq %}{# Show FAQ breadcrumbs #}
F.A.Q.
{% set categories = get_taxonomy(kind='faq') | get(key="items") %}
{{ trans(key='faq-menu-title', lang=lang) }}
{% set categories = get_taxonomy(kind='faq', lang=page.lang) | get(key="items") %}
{% for item in categories %}
<a href="{{ get_taxonomy_url(kind="faq", name=item.name) }}">{{ item.name }}</a>
<a href="{{ item.permalink }}">{{ item.name }}</a>
{% endfor %}
{% endif %}
{% block content %}{% endblock %}

View file

@ -5,9 +5,9 @@
{% endblock %}
{% block content %}
<h1>F.A.Q.</h1>
<h1>{{ trans(key='faq-menu-title', lang=lang) }}</h1>
{%- for term in terms -%}
<h3><a href="{{term.permalink}}">{{term.name}} questions</a></h3>
<h3><a href="{{term.permalink}}">{{term.name}} {{ trans(key='faq-questions', lang=lang) }}</a></h3>
<ul>
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
<li><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></li>

View file

@ -5,17 +5,17 @@
{% endblock %}
{% block content %}
F.A.Q.
{% set categories = get_taxonomy(kind='faq') | get(key="items") %}
{{ trans(key='faq-menu-title', lang=lang) }}
{% set categories = get_taxonomy(kind='faq', lang=lang) | get(key="items") %}
{% for item in categories %}
{% if term.name == item.name %}
<span>{{ item.name }}</span>
{% else %}
<a href="{{ get_taxonomy_url(kind="faq", name=item.name) }}">{{ item.name }}</a>
<a href="{{ item.permalink }}">{{ item.name }}</a>
{% endif %}
{% endfor %}
<h2>{{ term.name }} questions</h2>
<h2>{{ term.name }} {{ trans(key='faq-questions', lang=lang) }}</h2>
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
<h3><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></h3>
{%- endfor -%}