Skip to content

Commit 42afd98

Browse files
committed
Add App FAQs
Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
1 parent 27ae95f commit 42afd98

File tree

8 files changed

+96
-2
lines changed

8 files changed

+96
-2
lines changed

config.toml

+9
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,26 @@ install-fdroid = "Instale Organic Maps a partir do F-Droid"
160160
language = "Português (Brazil)"
161161
name = "Nome"
162162
token = "Token"
163+
164+
[languages.es]
165+
taxonomies = [
166+
{name = "faq", feed = false},
167+
]
163168
[languages.es.translations]
164169
address = "Dirección"
165170
back = "Volver a Noticias"
166171
contact = "Contacte con nosotros"
172+
engines = "Motores TTS Soportados"
173+
faq-menu-title = "Preguntas Frecuentes"
174+
faq-questions = "Preguntas de"
167175
install-appgallery = "Instalar Organic Maps desde la AppGallery de Huawei"
168176
install-appstore = "Instalar Organic Maps desde el AppStore"
169177
install-googleplay = "Instalar Organic Maps desde Google Play"
170178
install-fdroid = "Instalar Organic Maps desde F-Droid"
171179
language = "Español"
172180
name = "Nombre"
173181
token = "Ficha"
182+
174183
[languages.nl.translations]
175184
address = "Adres"
176185
back = "Terug naar Nieuws"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: ¿Cómo utilizar Android Auto?
3+
description: "Preguntas frecuentes de la aplicación Organic Maps"
4+
5+
taxonomies:
6+
faq: ["Aplicación"]
7+
8+
extra:
9+
order: 20
10+
---
11+
12+
Para utilizar OM con Android Auto, necesita al menos una versión de Android 8.0 (Oreo) o posterior.
13+
14+
Por favor, compruebe la [página web de Android Auto](https://www.android.com/auto/) para obtener más detalles.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: How to use Android Auto?
3+
description: "Frequently asked questions for Organic Maps application"
4+
5+
taxonomies:
6+
faq: ["App"]
7+
8+
extra:
9+
order: 20
10+
---
11+
12+
To use OM with Android Auto, you need at least an Android version 8.0 (Oreo) or later.
13+
14+
Please check the [Android Auto website](https://www.android.com/auto/) for further details.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: ¿Qué versiones de iOS y Android están soportadas?
3+
description: "Preguntas frecuentes de la aplicación Organic Maps"
4+
5+
taxonomies:
6+
faq: ["Aplicación"]
7+
8+
extra:
9+
order: 10
10+
---
11+
12+
Necesita al menos iOS 12 o Android 5 para ejecutar la aplicación. Los dispositivos con versiones posteriores pueden ejecutar Organic Maps.
13+
14+
En Android, Organic Maps puede funcionar en dispositivos con los Servicios de Google instalados y sin soporte de Google.
15+
16+
Para utilizar OM con Android Auto, revise por favor los requisitos [aquí](../how-to-use-android-auto/).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Which iOS and Android versions are supported?
3+
description: "Frequently asked questions for Organic Maps application"
4+
5+
taxonomies:
6+
faq: ["App"]
7+
8+
extra:
9+
order: 10
10+
---
11+
12+
You need at least iOS 12 or Android 5 to run the app. Devices with later versions can run Organic Maps.
13+
14+
In Android, Organic Maps can work on devices with Google Services installed and without Google support.
15+
16+
To use OM with Android Auto, please check the requirements [here](../how-to-use-android-auto/).

content/faq/index.es.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Preguntas Frecuentes"
3+
description: "Preguntas frecuentes de la aplicación Organic Maps"
4+
weight: 1000
5+
6+
extra:
7+
menu_title: Preguntas Frecuentes
8+
9+
sort_by: weight
10+
---
11+
12+
### This page is replaced with taxonomy "faq" from templates/faq/list.html template
13+
This file is needed for top_menu.html and bottom_menu.html templates to show F.A.Q.

templates/faq/list.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
{% block content %}
88
<h1>{{ trans(key='faq-menu-title', lang=lang) }}</h1>
99
{%- for term in terms -%}
10-
<h3><a href="{{term.permalink}}">{{term.name}} {{ trans(key='faq-questions', lang=lang) }}</a></h3>
10+
<h3><a href="{{term.permalink}}">
11+
{% if lang == "es" %}
12+
{{ trans(key='faq-questions', lang=lang)}} {{term.name}}
13+
{% else %}
14+
{{term.name}} {{ trans(key='faq-questions', lang=lang) }}
15+
{% endif %}
16+
</a></h3>
1117
<ul>
1218
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
1319
<li><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></li>

templates/faq/single.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
<a href="{{ item.permalink }}">{{ item.name }}</a>
1616
{% endif %}
1717
{% endfor %}
18-
<h2>{{ term.name }} {{ trans(key='faq-questions', lang=lang) }}</h2>
18+
<h2>
19+
{% if lang == "es" %}
20+
{{ trans(key='faq-questions', lang=lang)}} {{term.name}}
21+
{% else %}
22+
{{term.name}} {{ trans(key='faq-questions', lang=lang) }}
23+
{% endif %}
24+
</h2>
1925
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
2026
<h3><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></h3>
2127
{%- endfor -%}

0 commit comments

Comments
 (0)