Add "Edit on Github" and "Translate to..." buttons#78
Add "Edit on Github" and "Translate to..." buttons#78
Conversation
Deploying with
|
| Latest commit: |
4c4c716
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://19937870.organicmaps.pages.dev |
| Branch Preview URL: | https://edit-translations-on-github.organicmaps.pages.dev |
8512c0f to
2608e2a
Compare
|
@rtsisyk PTAL, let's see if we get more translators via Github. |
2608e2a to
d0fd95e
Compare
|
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. |
d0fd95e to
e7590fc
Compare
|
Can we wait for feedback in organicmaps/organicmaps#4076 before enforcing any alternative approches? Users will start editing markdowns that are generated (like Indonesian) and it will create total mess. |
|
|
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. |
Signed-off-by: Alexander Borsuk <me@alex.bio>
Signed-off-by: Alexander Borsuk <me@alex.bio>
e7590fc to
4c4c716
Compare
|
@rtsisyk rebased, PTAL |
|
@rtsisyk а нельзя обновлять po файлы из исправленных markdown? Получается, дорога в weblate - в один конец. И если надо что-то быстро поправить, то сейчас это придётся делать долго, через weblate. |
Искусственный интеллект для обратного запихивания денормализированного текста в нормализированное представление пока еще не изобрели. |
@rtsisyk Ты же можешь поправить скрипт, чтобы po файлы обновлялись из маркдаунов? |
Check the bottom of each page, there should be two buttons to easily edit the page or translate it to a new language.