[Mod] Minetest Game I18n [mtg_i18n]

Post Reply
LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

[Mod] Minetest Game I18n [mtg_i18n]

by LNJ » Post

Minetest Game Internationalization Mod

A Minetest mod adding translations to the default game of Minetest. Currently only item descriptions will be translated. The language is your system's language (or the language set in your Minetest settings), but of course only as long your language is supported.

Currently fully supported languages:
  • Belarusian
  • Esperanto
  • French (~40%)
  • German
  • Indonesian
  • Italian (~45%)
  • Japanese (~55%)
  • Malay
  • Polish
  • Russian (~60%)
  • Serbian (~5%)
  • Spanish
  • Turkish
Dependencies:

This mod needs all Minetest Game default mods and the Internationalization library intllib.


License:

The code of this mod is licensed under MIT, the translations under CC0.
See LICENSE.txt for more details.


Download:

You can browse the code on GitHub.

Or clone & install (Linux only):

Code: Select all

cd ~/.minetest/mods/
git clone https://github.com/minetest-mods/mtg_i18n
Rolling-release Version (.zip)

New translations:
You can help translating this mod into your language on Weblate:
https://hosted.weblate.org/projects/minetest/mtg_i18n/
Last edited by LNJ on Sun Jun 18, 2017 16:46, edited 14 times in total.
Storage Drawers - The simplest item storage in Minetest

User avatar
Doloment
Member
Posts: 17
Joined: Wed Apr 19, 2017 18:31
GitHub: Doloment
IRC: Doloment
In-game: Doloment
Location: Novosibirsk, Russia

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by Doloment » Post

Can i help to translate it to Russian?

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by LNJ » Post

Doloment wrote:Can i help to translate it to Russian?
Of course! Please help me. (I can't speak ALL languages :D)

You can open a pull request on GitHub. (or alternatively, if you don't know how to use git, you can give me the .po file on other ways).

If you have any questions, ask! :)


PS: Sorry for the late answer..
Storage Drawers - The simplest item storage in Minetest

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by azekill_DIABLO » Post

i may do it in french, good translations assured!

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by LNJ » Post

azekill_DIABLO wrote:i may do it in french, good translations assured!
That would be nice! :)


@all If you have any questions about how you can translate, please ask!
Storage Drawers - The simplest item storage in Minetest

User avatar
Casimir
Member
Posts: 1173
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by Casimir » Post

You can also pull the translations out of vortoj, no need to do the work twice.

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by LNJ » Post

Casimir wrote:You can also pull the translations out of vortoj, no need to do the work twice.
Ah, I didn't know that something as this already exists. But I need to find a way to convert the old translation files to the new gettext files.
Storage Drawers - The simplest item storage in Minetest

bell07
Member
Posts: 598
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by bell07 » Post

But I need to find a way to convert the old translation files to the new gettext files.
I did such conversion for smart_inventory group texts only a few days ago using my qa_block mod (to call any lua code) viewtopic.php?t=15759 and a small script: (modified to match vortoj, untested, maybe some adjustments required to get it working.)

Code: Select all

local filename = minetest.get_worldpath().."/en.po"
local vortoj = dofile(minetest.get_modpath("vortoj").."/EN.lua")
local file = io.open(filename, "w")

for _,item in ipairs(vortoj) do
	file:write('msgid "'..item[1]..'"\n')
	file:write('msgstr "'..item[2]..'"\n')
	file:write('\n')
end
file:close()

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by LNJ » Post

bell07 wrote:
But I need to find a way to convert the old translation files to the new gettext files.
I did such conversion for smart_inventory group texts only a few days ago using my qa_block mod (to call any lua code) viewtopic.php?t=15759 and a small script: (modified to match vortoj, untested, maybe some adjustments required to get it working.)

Code: Select all

local filename = minetest.get_worldpath().."/en.po"
local vortoj = dofile(minetest.get_modpath("vortoj").."/EN.lua")
local file = io.open(filename, "w")

for _,item in ipairs(vortoj) do
	file:write('msgid "'..item[1]..'"\n')
	file:write('msgstr "'..item[2]..'"\n')
	file:write('\n')
end
file:close()
Ah, that's great! Thank you.

But I can only use the translations if the license is at least LGPL (currently it's GPLv3).
Storage Drawers - The simplest item storage in Minetest

User avatar
Casimir
Member
Posts: 1173
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

Re: [Mod] Minetest Game I18n [2017.04.16] [mtg_i18n]

by Casimir » Post

m( (That's a facepalm) My mistake. I should have had the data licenced separate under the public domain. However, I'm not sure if one can licence translation strings anyway. Someone should research this. (Not me, I'm going to bed now.)

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

[Update] Version 2017.05.10

by LNJ » Post

v2017.05.10:
  • Translated new (German) strings from MTG
  • Fixed dependency problems (pbj_pup)
Storage Drawers - The simplest item storage in Minetest

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Minetest Game I18n [2017.05.10] [mtg_i18n]

by azekill_DIABLO » Post

sorry to take time translating, french, i wait for the week-end finishing it!

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.05.10] [mtg_i18n]

by LNJ » Post

You can now translate it to your language here:
https://hosted.weblate.org/projects/minetest/mtg_i18n/
Storage Drawers - The simplest item storage in Minetest

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Minetest Game I18n [2017.05.10] [mtg_i18n]

by azekill_DIABLO » Post

french has a great progression, around 43%

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.05.10] [mtg_i18n]

by LNJ » Post

azekill_DIABLO wrote:french has a great progression, around 43%
Please share them on Weblate or manually open a pull-request. You can also first submit these 43% and then continue working on it.

Thanks for your contributions. :)
Storage Drawers - The simplest item storage in Minetest

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Minetest Game I18n [2017.05.16] [mtg_i18n]

by azekill_DIABLO » Post

i'll first corretc them a bit and then i'll send you! it's a pleasure working with you.

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [2017.05.22] [mtg_i18n]

by LNJ » Post

Latest changes:
Storage Drawers - The simplest item storage in Minetest

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [mtg_i18n]

by LNJ » Post

Latest changes:
  • I converted some translations from vortoj (by Casimir) and added them:
  • Added French locale from vortoj (translated by Casimir)
  • Added Indonesian locale from vortoj (translated by Muhammad Rifqi Priyo Susanto)
  • Added Italian locale from vortoj (translated by Enki)
  • Added Japanese locale from vortoj (translated by Rui)
But as you can see on Weblate the new languages aren't in a good state anymore, so it would be very nice if you could help completing them again (anyone can help on Weblate).
Storage Drawers - The simplest item storage in Minetest

LNJ
Member
Posts: 251
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] Minetest Game I18n [mtg_i18n]

by LNJ » Post

Latest changes:
Storage Drawers - The simplest item storage in Minetest

User avatar
Andrey01
Member
Posts: 2415
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Minetest Game I18n [mtg_i18n]

by Andrey01 » Post

I know Internationalization Library mod has already existed (by kaeza). I can translate item descriptions to Russian in ru.po file. What do i need to do first?

User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Minetest Game I18n [mtg_i18n]

by Hamlet » Post

Andrey01 wrote:I can translate item descriptions to Russian in ru.po file. What do i need to do first?
You can translate the descriptions online or offline.

Online:
https://hosted.weblate.org/projects/min ... g_i18n/ru/

Offline:
../mtg_i18n/locale/ru.po

Edit ru.po using a text editor, or better, using PoEdit:
https://ru.wikipedia.org/wiki/Poedit
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
runs
Member
Posts: 1801
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Minetest Game I18n [mtg_i18n]

by runs » Post

An update for 5.0?
Day 42 of the quarantine

User avatar
Jat
Member
Posts: 229
Joined: Fri Nov 11, 2011 16:15

Re: [Mod] Minetest Game I18n [mtg_i18n]

by Jat » Post

runs wrote:An update for 5.0?
I fork to make a version with the 5.0.
But I think the basic project was not going in that direction.
The translation with minetest API does not use file POs.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 7 guests