organicmaps / organicmaps.github.io

Official Organic Maps website source code. Please contribute your translations!
Apache License 2.0
35 stars 34 forks source link

FAQ updates from main repo #242

Closed strump closed 1 month ago

strump commented 2 months ago

Copied FAQ from https://github.com/organicmaps/organicmaps/blob/master/data/faq.html Nothing changed.

Added service page /faq/translation_status with all FAQ questions with translations as a table to track statuses.

FAQ categories need translations:

config.toml faq_section_app faq_section_bookmarks faq_section_editing faq_section_map faq_section_tts
EN App Bookmarks and tracks Map Editing Map Voice Directions
RU Общие Метки и Треки Редактирование Карта Голосовые подсказки
DE Anwendung Lesezeichen und Tracks Kartenbearbeitung Karte Sprachführung
ES Aplicación Marcadores y rutas Edición de mapas Mapa Instrucciones de voz
FR Application Signets et parcours Édition de la carte Carte Instructions vocales
IT Applicazione Luoghi preferiti e percorsi Modifica della mappa Mapa Istruzioni vocali
PL Aplikacja Zakładki i trasy Edycja mapy Mapa Komunikaty głosowe
PT Aplicativa Favoritos e trilhas Edição de mapas Mapa Instruções de voz
PT-BT Aplicativa Favoritos e trilhas Edição de mapas Mapa Orientação por voz
TR Başvuru Yer İmleri ve Kayıtlar Harita düzenleme Harita Sesli Yönlendirme
UK Загальні Мітки та Маршрути Редагування Мапа Голосові інструкції
ZH-Hans 应用 书签和轨迹 地图编辑 地图 语音指导

I think Roman's PR #115 could be closed.

Update 2022-06-17

Added "Edit on GitHub" link to every FAQ page.

Screenshot 2024-06-18 at 09 21 49

Should we translate link text?

Should we add the link to every page (now only FAQ pages have it)?

Should we move link to top? For example https://sphinx-rtd-theme.readthedocs.io/en/stable/ have github link on top.

Update 2022-06-18

Page /faq/translation_status now have coloring depending on last update date. Yellow cell color means that updated field is missing. Red cell means that translated page is older than English page.

Screenshot 2024-06-18 at 09 25 34

Coloring was implemented with Javascript 'cause Zola/Tera doesn't support strings or dates comparison. Only numbers could be compared with < operator 😕

Update 2022-06-21

FAQ sections are now translated in config.toml. So instead of faq: ["Map Editing"] we use faq: ["editing"] for all languages. And actual UI title is loaded from faq_section_editing string constant.

New translation constants:

Update 2022-06-22

Updated README.md in FAQ section to reflect latest changes.

Update 2022-06-28

Updated /faq/translation_status page to work without JavaScript.

strump commented 2 months ago

Should we synchronize organicmaps/data/faq.html file with this repo? Some Python script to copy text from MD to HTML?

cloudflare-pages[bot] commented 2 months ago

Deploying organicmaps with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9f182c0
Status: ✅  Deploy successful!
Preview URL: https://ba39b946.organicmaps.pages.dev
Branch Preview URL: https://faq-updates-from-main-repo.organicmaps.pages.dev

View logs

biodranik commented 2 months ago

Thanks a lot for your work! I love the translation status page! Is it possible in addition to compare FAQ article dates, and mark translations as outdated if they were not changed after the English md file was edited?

Left some comments, it would be great to also sync ru, uk and other languages.

rtsisyk commented 2 months ago

Is there any preview page on Cloudflare? I can't find a link.

strump commented 2 months ago

@rtsisyk try https://faq-updates-from-main-repo.organicmaps.pages.dev

Did you see this block?

Screenshot 2024-06-18 at 12 42 56
rtsisyk commented 2 months ago

https://faq-updates-from-main-repo.organicmaps.pages.dev

It was hidden. Thanks!!!