Skip to content

Commit

Permalink
Add App FAQs (en, es)
Browse files Browse the repository at this point in the history
Signed-off-by: Gonzalo Pesquero <[email protected]>
  • Loading branch information
gpesquero committed Feb 26, 2024
1 parent ef68fc8 commit 71b338c
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 2 deletions.
9 changes: 9 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,26 @@ install-fdroid = "Instale Organic Maps a partir do F-Droid"
language = "Português (Brazil)"
name = "Nome"
token = "Token"

[languages.es]
taxonomies = [
{name = "faq", feed = false},
]
[languages.es.translations]
address = "Dirección"
back = "Volver a Noticias"
contact = "Contacte con nosotros"
engines = "Motores TTS Soportados"
faq-menu-title = "Preguntas Frecuentes"
faq-questions = "Preguntas de"
install-appgallery = "Instalar Organic Maps desde la AppGallery de Huawei"
install-appstore = "Instalar Organic Maps desde el AppStore"
install-googleplay = "Instalar Organic Maps desde Google Play"
install-fdroid = "Instalar Organic Maps desde F-Droid"
language = "Español"
name = "Nombre"
token = "Ficha"

[languages.nl.translations]
address = "Adres"
back = "Terug naar Nieuws"
Expand Down
14 changes: 14 additions & 0 deletions content/faq/app/how-to-use-android-auto/index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: ¿Cómo utilizar Android Auto?
description: "Preguntas frecuentes de la aplicación Organic Maps"

taxonomies:
faq: ["Aplicación"]

extra:
order: 20
---

Para utilizar OM con Android Auto, necesita al menos una versión de Android 8.0 (Oreo) o posterior.

Por favor, compruebe la [página web de Android Auto](https://www.android.com/auto/) para obtener más detalles.
14 changes: 14 additions & 0 deletions content/faq/app/how-to-use-android-auto/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: How to use Android Auto?
description: "Frequently asked questions for Organic Maps application"

taxonomies:
faq: ["App"]

extra:
order: 20
---

To use OM with Android Auto, you need at least an Android version 8.0 (Oreo) or later.

Please check the [Android Auto website](https://www.android.com/auto/) for further details.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: ¿Qué versiones de iOS y Android están soportadas?
description: "Preguntas frecuentes de la aplicación Organic Maps"

taxonomies:
faq: ["Aplicación"]

extra:
order: 10
---

Necesita al menos iOS 12 o Android 5 para ejecutar la aplicación. Los dispositivos con versiones posteriores pueden ejecutar Organic Maps.

En Android, Organic Maps puede funcionar en dispositivos con los Servicios de Google instalados y sin soporte de Google.

Para utilizar OM con Android Auto, revise por favor los requisitos [aquí](../how-to-use-android-auto/).
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Which iOS and Android versions are supported?
description: "Frequently asked questions for Organic Maps application"

taxonomies:
faq: ["App"]

extra:
order: 10
---

You need at least iOS 12 or Android 5 to run the app. Devices with later versions can run Organic Maps.

In Android, Organic Maps can work on devices with Google Services installed and without Google support.

To use OM with Android Auto, please check the requirements [here](../how-to-use-android-auto/).
13 changes: 13 additions & 0 deletions content/faq/index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Preguntas Frecuentes"
description: "Preguntas frecuentes de la aplicación Organic Maps"
weight: 1000

extra:
menu_title: Preguntas Frecuentes

sort_by: weight
---

### This page is replaced with taxonomy "faq" from templates/faq/list.html template
This file is needed for top_menu.html and bottom_menu.html templates to show F.A.Q.
8 changes: 7 additions & 1 deletion templates/faq/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
{% block content %}
<h1>{{ trans(key='faq-menu-title', lang=lang) }}</h1>
{%- for term in terms -%}
<h3><a href="{{term.permalink}}">{{term.name}} {{ trans(key='faq-questions', lang=lang) }}</a></h3>
<h3><a href="{{term.permalink}}">
{% if lang == "es" %}
{{ trans(key='faq-questions', lang=lang)}} {{term.name}}
{% else %}
{{term.name}} {{ trans(key='faq-questions', lang=lang) }}
{% endif %}
</a></h3>
<ul>
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
<li><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></li>
Expand Down
8 changes: 7 additions & 1 deletion templates/faq/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@

{% block content %}
{% include 'faq/faq-breadcrumbs.html' %}
<h2>{{ term.name }} {{ trans(key='faq-questions', lang=lang) }}</h2>
<h2>
{% if lang == "es" %}
{{ trans(key='faq-questions', lang=lang)}} {{term.name}}
{% else %}
{{term.name}} {{ trans(key='faq-questions', lang=lang) }}
{% endif %}
</h2>
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
<h3><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></h3>
{%- endfor -%}
Expand Down

0 comments on commit 71b338c

Please sign in to comment.