Add "Edit on Github" and "Translate to..." buttons #78
Labels
No labels
about page
bug
community page
documentation
donate page
duplicate
enhancement
feature page
good first issue
Google Season of Docs
help wanted
invalid
landing page
news page
question
support page
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/website#78
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "edit-translations-on-github"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
4c4c716
View logs
@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.
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 файлы обновлялись из маркдаунов?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.