Add "Edit on Github" and "Translate to..." buttons
Check the bottom of each page, there should be two buttons to easily edit the page or translate it to a new language.
Deploying with
Cloudflare Pages
| Latest commit: |
4c4c716
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://19937870.organicmaps.pages.dev |
| Branch Preview URL: | https://edit-translations-on-github.organicmaps.pages.dev |
@rtsisyk PTAL, let's see if we get more translators via Github.
We can easily detect the browser's languages and make a list of translations that are NOT present yet on the website. And show the "Translate to..." box only if there are some new languages in the user's browser.
Can we wait for feedback in https://github.com/organicmaps/organicmaps/discussions/4076 before enforcing any alternative approches? Users will start editing markdowns that are generated (like Indonesian) and it will create total mess.
- It will be helpful to see what should be changed. After (if) users create PRs, their fixes can be (at the moment) applied to Weblate.
- It is possible to disable Edit on GH and leave only Translate To... logic.
Can we add a link to https://hosted.weblate.org/projects/organicmaps/website/ instead?
@rtsisyk there is no need to show the same link to weblate on each page. It can be placed somewhere in the bottom menu instead, for example.
This PR opens the page that is currently viewed.
@rtsisyk rebased, PTAL
@rtsisyk а нельзя обновлять po файлы из исправленных markdown? Получается, дорога в weblate - в один конец. И если надо что-то быстро поправить, то сейчас это придётся делать долго, через weblate.
@rtsisyk а нельзя обновлять po файлы из исправленных markdown? Получается, дорога в weblate - в один конец. И если надо что-то быстро поправить, то сейчас это придётся делать долго, через weblate.
Искусственный интеллект для обратного запихивания денормализированного текста в нормализированное представление пока еще не изобрели.
Искусственный интеллект для обратного запихивания денормализированного текста в нормализированное представление пока еще не изобрели.
@rtsisyk Ты же можешь поправить скрипт, чтобы po файлы обновлялись из маркдаунов?