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

Use MT5 builtin’s translation system on all the modpack #529

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},

"intllib", "VoxelArea",
"VoxelArea",
"default", "stairsplus",

"PseudoRandom", "ItemStack",
Expand All @@ -28,6 +28,8 @@ read_globals = {

"protector", "isprotect",
"homedecor_expect_infinite_stacks",

"toolranks",
}

files["concrete/init.lua"].ignore = { "steel_ingot" }
Expand Down
4 changes: 0 additions & 4 deletions concrete/depends.txt

This file was deleted.

5 changes: 3 additions & 2 deletions concrete/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
local technic = rawget(_G, "technic") or {}
technic.concrete_posts = {}

-- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
-- Translation support
local S = minetest.get_translator("concrete")

for i = 0, 31 do
minetest.register_alias("technic:concrete_post"..i,
Expand Down Expand Up @@ -63,6 +63,7 @@ minetest.register_node(":technic:blast_resistant_concrete", {

if minetest.get_modpath("moreblocks") then
stairsplus:register_all("technic","blast_resistant_concrete","technic:blast_resistant_concrete",{
-- TODO: translation
description = "Blast-resistant Concrete",
tiles = {"technic_blast_resistant_concrete_block.png",},
groups = {cracky=1, level=3, concrete=1},
Expand Down
12 changes: 12 additions & 0 deletions concrete/locale/concrete.de.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# textdomain: concrete

# German Translation for technic_concrete
# Deutsche Übersetzung von technic_concrete
# by Xanthin


### init.lua ###

Blast-resistant Concrete Block=Explosionsbestaendiger Betonblock
Concrete Post Platform=Betonpfostenplattform
Concrete Post=Betonpfosten
10 changes: 10 additions & 0 deletions concrete/locale/concrete.es.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# textdomain: concrete

# traducido por Carlos Barraza


### init.lua ###

Blast-resistant Concrete Block=Bloque de concreto resistente a explosiones
Concrete Post Platform=Plataforma de concreto
Concrete Post=Postes de concreto
9 changes: 9 additions & 0 deletions concrete/locale/concrete.fr.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# textdomain: concrete



### init.lua ###

Blast-resistant Concrete Block=Bloc de béton anti explosions
Concrete Post Platform=Plateforme en béton
Concrete Post=Pilier en béton
12 changes: 12 additions & 0 deletions concrete/locale/concrete.pl.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# textdomain: concrete

# Polish Translation for technic_concrete
# Polskie tłumaczenie technic_concrete
# by mat9117


### init.lua ###

Blast-resistant Concrete Block=Przeciwwybuchowy blok betonu
Concrete Post Platform=Betonowa platforma
Concrete Post=Betonowy słup
12 changes: 12 additions & 0 deletions concrete/locale/concrete.pt_BR.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# textdomain: concrete

# Braziliam portuguese translation for concrete
# Tradução portuguesa brasileira para concrete
# By Sires


### init.lua ###

Blast-resistant Concrete Block=Bloco de Concreto resistente-a-explosões
Concrete Post Platform=Plataforma para Poste de Concreto
Concrete Post=Poste de Concreto
10 changes: 10 additions & 0 deletions concrete/locale/concrete.tr.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# textdomain: concrete

# turkish translation by mahmutelmas06


### init.lua ###

Blast-resistant Concrete Block=Patlamaya dayanıklı beton blok
Concrete Post Platform=Beton direk platformu
Concrete Post=Beton direk
10 changes: 0 additions & 10 deletions concrete/locale/de.txt

This file was deleted.

8 changes: 0 additions & 8 deletions concrete/locale/es.txt

This file was deleted.

7 changes: 0 additions & 7 deletions concrete/locale/fr.txt

This file was deleted.

10 changes: 0 additions & 10 deletions concrete/locale/pl.txt

This file was deleted.

10 changes: 0 additions & 10 deletions concrete/locale/pt_BR.txt

This file was deleted.

13 changes: 7 additions & 6 deletions concrete/locale/template.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# technic_concrete translation template
# textdomain: concrete

Rebar =
Concrete Block =
Blast-resistant Concrete Block =
Concrete Post Platform =
Concrete Post =


### init.lua ###

Blast-resistant Concrete Block=
Concrete Post Platform=
Concrete Post=
7 changes: 0 additions & 7 deletions concrete/locale/tr.txt

This file was deleted.

3 changes: 2 additions & 1 deletion concrete/mod.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name = concrete
depends = default
optional_depends = basic_materials, intllib, moreblocks
optional_depends = basic_materials, moreblocks
min_minetest_version = 5.0.0
9 changes: 0 additions & 9 deletions extranodes/depends.txt

This file was deleted.

4 changes: 2 additions & 2 deletions extranodes/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Minetest 0.4.6 mod: extranodes
-- namespace: technic
-- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
-- Translation support
local S = minetest.get_translator("extranodes")

if minetest.get_modpath("moreblocks") then

Expand Down
9 changes: 0 additions & 9 deletions extranodes/locale/de.txt

This file was deleted.

7 changes: 0 additions & 7 deletions extranodes/locale/es.txt

This file was deleted.

19 changes: 19 additions & 0 deletions extranodes/locale/extranodes.de.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# textdomain: extranodes

# German Translation for technic_extranodes
# Deutsche Übersetzung von technic_extranodes
# by Xanthin


### init.lua ###

Marble=Marmor
Marble Bricks=Marmorziegel
Granite=Granit
Concrete=Beton
Zinc Block=Zinkblock
Cast Iron Block=Gusseisenblock
Carbon Steel Block=Kohlenstoffstahlblock
Stainless Steel Block=Edelstahlblock
Insulator/cable clip=
Steel strut with insulator/cable clip=
17 changes: 17 additions & 0 deletions extranodes/locale/extranodes.es.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# textdomain: extranodes

# traducido por Carlos Barraza


### init.lua ###

Marble=Mármol
Marble Bricks=Ladrillos de mármol
Granite=Granito
Concrete=Concreto
Zinc Block=Bloque de Zinc
Cast Iron Block=Bloque de Hierro Fundido
Carbon Steel Block=Bloque de Acero al Carbon
Stainless Steel Block=Bloque de Acero Inoxidable
Insulator/cable clip=
Steel strut with insulator/cable clip=
16 changes: 16 additions & 0 deletions extranodes/locale/extranodes.fr.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# textdomain: extranodes



### init.lua ###

Marble=Marbre
Marble Bricks=Briques en marbre
Granite=Granite
Concrete=Béton
Zinc Block=Bloc de zinc
Cast Iron Block=Bloc de fonte
Carbon Steel Block=Bloc d’acier au carbone
Stainless Steel Block=Bloc d’acier inoxydable
Insulator/cable clip=Isolateur/pince câble
Steel strut with insulator/cable clip=
19 changes: 19 additions & 0 deletions extranodes/locale/extranodes.pl.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# textdomain: extranodes

# Polish Translation for extranodes
# Polskie tłumaczenie extranodes
# by mat9117


### init.lua ###

Marble=Marmur
Marble Bricks=Marmurowe cegły
Granite=Granit
Concrete=Beton
Zinc Block=Blok cynku
Cast Iron Block=Blok żelaziwa
Carbon Steel Block=Blok stali węglowej
Stainless Steel Block=Blok stali nierdzewnej
Insulator/cable clip=
Steel strut with insulator/cable clip=
19 changes: 19 additions & 0 deletions extranodes/locale/extranodes.pt_BR.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# textdomain: extranodes

# Braziliam portuguese translation for extranodes
# Tradução portuguesa brasileira para extranodes
# By Sires


### init.lua ###

Marble=Mármore
Marble Bricks=Tijolos de Mármore
Granite=Granito
Concrete=Concreto
Zinc Block=Bloco de Zinco
Cast Iron Block=Bloco de Ferro Fundido
Carbon Steel Block=Bloco de Aço Carbono
Stainless Steel Block=Bloco de Aço Inoxidável
Insulator/cable clip=
Steel strut with insulator/cable clip=
17 changes: 17 additions & 0 deletions extranodes/locale/extranodes.tr.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# textdomain: extranodes

# turkish translation by mahmutelmas06


### init.lua ###

Marble=Mermer
Marble Bricks=Mermer tuğla
Granite=Granit
Concrete=Beton
Zinc Block=Çinko blok
Cast Iron Block=Döküm demir blok
Carbon Steel Block=
Stainless Steel Block=Paslanmaz çelik blok
Insulator/cable clip=
Steel strut with insulator/cable clip=
7 changes: 0 additions & 7 deletions extranodes/locale/fr.txt

This file was deleted.

9 changes: 0 additions & 9 deletions extranodes/locale/pl.txt

This file was deleted.

9 changes: 0 additions & 9 deletions extranodes/locale/pt_BR.txt

This file was deleted.

20 changes: 15 additions & 5 deletions extranodes/locale/template.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# technic_extranodes translation template
# textdomain: extranodes

Marble =
Marble Bricks =
Granite =
Concrete =
# extranodes translation template


### init.lua ###

Marble=
Marble Bricks=
Granite=
Concrete=
Zinc Block=
Cast Iron Block=
Carbon Steel Block=
Stainless Steel Block=
Insulator/cable clip=
Steel strut with insulator/cable clip=
Loading