[Mod] Minetest Game I18n [mtg_i18n]

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

[Mod] Minetest Game I18n [mtg_i18n]

by LNJ » Sun Apr 16, 2017 10:45

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sun Apr 23, 2017 14:12

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 29, 2017 09:17

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

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

by Casimir » Sat Apr 29, 2017 10:39

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 29, 2017 14:17

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

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

by bell07 » Sat Apr 29, 2017 19:01

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) https://forum.minetest.net/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()
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 29, 2017 21:51

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) https://forum.minetest.net/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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

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

by Casimir » Sat Apr 29, 2017 22:27

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.)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

[Update] Version 2017.05.10

by LNJ » Wed May 10, 2017 12:04

v2017.05.10:
  • Translated new (German) strings from MTG
  • Fixed dependency problems (pbj_pup)
Storage Drawers - The simplest item storage method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Mon May 15, 2017 14:37

You can now translate it to your language here:
https://hosted.weblate.org/projects/minetest/mtg_i18n/
Storage Drawers - The simplest item storage method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Mon May 15, 2017 19:20

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Mon May 22, 2017 17:08

Latest changes:
Storage Drawers - The simplest item storage method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

Re: [Mod] Minetest Game I18n [mtg_i18n]

by LNJ » Tue May 30, 2017 15:01

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

Re: [Mod] Minetest Game I18n [mtg_i18n]

by LNJ » Sun Jun 18, 2017 16:42

Latest changes:
Storage Drawers - The simplest item storage method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

Re: [Mod] Minetest Game I18n [mtg_i18n]

by Andrey01 » Mon Aug 28, 2017 11:27

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?
DL9Eh7xVBw7DXwLAMX1lStE21bSD2XUQ
 

User avatar
Hamlet
Member
 
Posts: 463
Joined: Sat Jul 29, 2017 21:09
Location: Italia
IRC: H4mlet

Re: [Mod] Minetest Game I18n [mtg_i18n]

by Hamlet » Thu Aug 31, 2017 13:13

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
 


Return to WIP Mods



Who is online

Users browsing this forum: Teslov and 1 guest