Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ContentDB package translation #14410

Merged
merged 2 commits into from Feb 25, 2024

Conversation

rubenwardy
Copy link
Member

@rubenwardy rubenwardy commented Feb 25, 2024

Whilst not implemented by ContentDB yet, including "Accept-Language" will allow localizing the package list in the future.

  • Roadmap: UI/UX

To do

This PR is Ready for Review

How to test

  • Run nc -l -p 8080
  • Set contentdb_url = http://localhost:8080
  • Run Minetest in English, and open the ContentDB dialog
  • See Accept-Language: en in request headers
  • Run Minetest in another language (I recommend trying both env var LANGUAGE and the language setting), and open the ContentDB dialog
  • See Accept-Language: fr, en;q=0.8 in request headers

Additional context

Accept-Language on mdn

ContentDB PR (this PR can be merged before the CDB PR)

Whilst unused by ContentDB currently, this will allow localising the package list in the future.
@rubenwardy rubenwardy added the Roadmap The change matches an item on the current roadmap. label Feb 25, 2024
@rubenwardy rubenwardy merged commit f4eba3b into minetest:master Feb 25, 2024
15 checks passed
@rubenwardy rubenwardy deleted the contentdb_languages branch February 25, 2024 22:09
appgurueu pushed a commit to y5nw/minetest that referenced this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Content / PkgMgr Feature ✨ PRs that add or enhance a feature @ Mainmenu One approval ✅ ◻️ Roadmap The change matches an item on the current roadmap. @ Translation UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants