ContentDB - now with package translation support

User avatar
Neuromancer
Member
Posts: 997
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: ContentDB - database for the mod/game/txp in-menu installer

by Neuromancer » Post

I would like to know how many active Minetest Players there are and track it month to month. I think ContentDb could give us a good estimate of that by displaying a chart of the number of unique people who have downloaded anything from it that month. Is it possible to get a chart like that displayed on ContentDb?

User avatar
rubenwardy
Moderator
Posts: 6985
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: ContentDB - now with package translation support

by rubenwardy » Post

ContentDB now supports package translations!

The title and short description of a package can now be translated into other languages. This is shown both on the web and inside Minetest (from v5.9+).

Image

ContentDB will read translation files (.tr) inside package zip files. To translate the title/description, you will need to add locale files as documented in lua_api.md. If you go to your package > Edit > Translations, ContentDB will attempt to help you with this:

Image

As a free benefit of this work, ContentDB now knows which languages a package supports and whether it has translation support at all.

Image

If you speak multiple languages and are interested in translating packages, you'll probably find the new "Find packages to translate" page helpful.

Other updates
  • Optimised thumbnails - thumbnails should be smaller and faster to load. webp is now used.
  • You can now see a package/release's download size on the website. You can also see how much storage space your package takes up (there's no quota, but I may delete old releases from packages that are too big)
  • Google fonts is no longer used
  • Updated to Bootstrap 5
  • Can now search for packages with a content warning
  • LICENSE(.txt/.md) files are now required
  • You can now hide non-free packages on the web interface
  • Can now search packages from a game hub
  • Many bug fixes
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Nininik
Member
Posts: 655
Joined: Thu Apr 06, 2023 01:55
GitHub: nininik0
IRC: nininik
In-game: nininik
Location: CA, Team thunderstrike headquarters
Contact:

Re: ContentDB - now with package translation support

by Nininik » Post

can you please fix the profile picture bug on the ContentDB website?
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯

User avatar
Linuxdirk
Member
Posts: 3222
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: ContentDB - now with package translation support

by Linuxdirk » Post

Imagine Weblate would support that Minetest translations file format! How awesome would that be! Continuous translation built in with modern standard cooperative translation tools!

User avatar
rubenwardy
Moderator
Posts: 6985
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: ContentDB - now with package translation support

by rubenwardy » Post

Linuxdirk wrote:
Mon Mar 04, 2024 00:17
Imagine Weblate would support that Minetest translations file format! How awesome would that be! Continuous translation built in with modern standard cooperative translation tools!
Yeah I agree, support for platforms like Weblate is super important as they make it easier for translators to translate. They don't need to learn how to make a PR

I doubt weblate would accept .tr format support. Instead, this will probably be fixed by adding support for gettext files: https://github.com/minetest/minetest/pull/13687
When this is done, I can easily update ContentDB to support other formats
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Linuxdirk
Member
Posts: 3222
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: ContentDB - now with package translation support

by Linuxdirk » Post

rubenwardy wrote:
Mon Mar 04, 2024 10:00
Instead, this will probably be fixed by adding support for gettext files: https://github.com/minetest/minetest/pull/13687
This is absolutely fantastic! This will bring i18n ten steps forward once merged! Having plurals is important, but having a good toolchain and an established environment in my opinion is so much more necessary!
rubenwardy wrote:
Mon Mar 04, 2024 10:00
When this is done, I can easily update ContentDB to support other formats
Maybe also add a field for authors to add a link to where people can translate the mod. So not only a Git link and a website link, but also a translation link.

Maybe even autodetect README.xx.md from the repo and add them as links for a readme in that language.

Oh this will be huge! Imagine mod strings and mod documentation on a Weblate instance, everything fully automated. Users translate the mod, Weblate update the repo, the CDB pulls it and makes a new release – all fully automated … Glorious!

User avatar
rubenwardy
Moderator
Posts: 6985
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: ContentDB - now with package translation support

by rubenwardy » Post

Linuxdirk wrote:
Mon Mar 04, 2024 17:39
Maybe also add a field for authors to add a link to where people can translate the mod. So not only a Git link and a website link, but also a translation link.
This is already supported as part of the recent translations work:

Image

There's also a page where you can find packages accepting translations: https://content.minetest.net/translate/
It would be cool to show translation % on that page, but that requires more engineering work

If you select a language using the language selector on the top right, you can filter by packages that do or don't have a translation for a particular language (but without translation % this is pretty meaningless)
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Linuxdirk
Member
Posts: 3222
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: ContentDB - now with package translation support

by Linuxdirk » Post

That’s neat! It’s a bit hidden right now and makes no sense yet, but once we can translate mods with modern translation workflows everything will start being better.

Weblate also has an API for statistics, so no need to reinvent the wheel. If a mod offers a Weblate URL, the CDB could fetch the statistics there, using the Weblate API:

https://hosted.weblate.org/exports/stat ... ormat=json

This gives you all relevant statistics to build graphs for each language the project has translations for :)

User avatar
rubenwardy
Moderator
Posts: 6985
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: ContentDB - now with package translation support

by rubenwardy » Post

Linuxdirk wrote:
Mon Mar 04, 2024 19:09
That’s neat! It’s a bit hidden right now and makes no sense yet, but once we can translate mods with modern translation workflows everything will start being better.
Well, you can translate NodeCore, Piranesi, and Exile on Weblate. They convert to and from other formats to achieve this. For other packages, there's the PR route but that's a bit lame
Linuxdirk wrote:
Mon Mar 04, 2024 19:09
Weblate also has an API for statistics, so no need to reinvent the wheel. If a mod offers a Weblate URL, the CDB could fetch the statistics there, using the Weblate API:

https://hosted.weblate.org/exports/stat ... ormat=json

This gives you all relevant statistics to build graphs for each language the project has translations for :)
Thanks for pointing this out! That's very useful, I've made a note of it on the ContentDB translation epic.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Linuxdirk
Member
Posts: 3222
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: ContentDB - now with package translation support

by Linuxdirk » Post

rubenwardy wrote:
Mon Mar 04, 2024 19:18
Well, you can translate NodeCore, Piranesi, and Exile on Weblate. They convert to and from other formats to achieve this. For other packages, there's the PR route but that's a bit lame
Both variants are not ideal. Converting back and forth adds one more layer on where things could go wrong and also makes it less automatic and intuitive. And as you mentioned already: translators should not have to deal with PR's and stuff.

PR’s are also not ideal for translations because they’re file-based and firing up a Weblate instance (or use an existing one) and adding your translations there automatically makes the translations fully string based.

I think I’ll wait once this PR was merged and MT had a new release with this functionality implemented before I’ll convert all translations to Gettext and make them easily available for translators.

Thanks for the heads-up on this anyways :)

User avatar
Mantar
Member
Posts: 598
Joined: Thu Oct 05, 2017 18:46
Contact:

Re: ContentDB - now with package translation support

by Mantar » Post

Exile isn't doing conversion, weblate actually kinda sorta works on Minetest .tr files, using its text format option.
Lead dev of Exile, git repo: https://codeberg.org/Mantar/Exile

User avatar
rudzik8
Member
Posts: 210
Joined: Wed Jun 02, 2021 04:13
GitHub: rudzik8
In-game: db75c and rudzik8
Location: Siberia

Re: ContentDB - now with package translation support

by rudzik8 » Post

[no more relevant]
Lead dev of Voxelgarden (revived) and MineClone2 dev and modder || Codeberg

User avatar
TPH
Member
Posts: 82
Joined: Sun Jul 23, 2023 00:49
IRC: TPH
In-game: TubberPupper-TubberPupperHusker-TPH
Location: Ontario, Canada
Contact:

Re: ContentDB - now with package translation support

by TPH » Post

rubenwardy wrote:
Sun Mar 03, 2024 18:20

ContentDB now supports package translations!

The title and short description of a package can now be translated into other languages. This is shown both on the web and inside Minetest (from v5.9+).
Necro-ish bump but I'm having issues with this and I'm not sure where else to comment this
translation.PNG
translation.PNG (23.13 KiB) Viewed 420 times
It says it has no translation for the description...
Despite me providing one here (German):
translation2.PNG
translation2.PNG (8.83 KiB) Viewed 420 times
I've tried having no spaces between the "=", and did that newline recently to see if it would fix it. It has not fixed it... What can I do to get this to work?

Unrelated, but yes, the translations are likely not too good - I used google translate + tons of referencing loool (had a French friend verify my French translation so :D).
Your fellow anthro-therian (copper) husky furry :D (hopefully not too cringe lol). How do ye' do?

User avatar
rubenwardy
Moderator
Posts: 6985
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: ContentDB - now with package translation support

by rubenwardy » Post

TPH wrote:
Mon May 13, 2024 06:45
rubenwardy wrote:
Sun Mar 03, 2024 18:20

ContentDB now supports package translations!

The title and short description of a package can now be translated into other languages. This is shown both on the web and inside Minetest (from v5.9+).
Necro-ish bump but I'm having issues with this and I'm not sure where else to comment this
translation.PNG
It says it has no translation for the description...
Despite me providing one here (German):
translation2.PNG

I've tried having no spaces between the "=", and did that newline recently to see if it would fix it. It has not fixed it... What can I do to get this to work?

Unrelated, but yes, the translations are likely not too good - I used google translate + tons of referencing loool (had a French friend verify my French translation so :D).
You need to edit `description` in `mod.conf` to match the english source. It currently has this:

Code: Select all

description = Minecraft-like Eating for Minetest
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
TPH
Member
Posts: 82
Joined: Sun Jul 23, 2023 00:49
IRC: TPH
In-game: TubberPupper-TubberPupperHusker-TPH
Location: Ontario, Canada
Contact:

Re: ContentDB - now with package translation support

by TPH » Post

rubenwardy wrote:
Mon May 13, 2024 10:51

You need to edit `description` in `mod.conf` to match the english source. It currently has this:

Code: Select all

description = Minecraft-like Eating for Minetest
Oooh omg did I not remove that??? I thought I did ugh, thank you so much.
Your fellow anthro-therian (copper) husky furry :D (hopefully not too cringe lol). How do ye' do?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest