mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-10 17:20:27 +01:00
Use MT-5 translation system for chests mod
This commit is contained in:
parent
f63f0a24a9
commit
25eb55f786
@ -1,3 +1,6 @@
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
technic.chests.groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||
tubedevice=1, tubedevice_receiver=1}
|
||||
technic.chests.groups_noinv = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||
@ -47,20 +50,14 @@ function technic.chests.inv_take(pos, listname, index, stack, player)
|
||||
end
|
||||
|
||||
function technic.chests.on_inv_move(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", player:get_player_name()..
|
||||
" moves stuff in chest at "
|
||||
..minetest.pos_to_string(pos))
|
||||
minetest.log("action", S("@1 moves stuff in chest at @2", player:get_player_name(), minetest.pos_to_string(pos)))
|
||||
end
|
||||
|
||||
function technic.chests.on_inv_put(pos, listname, index, stack, player)
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" moves " .. stack:get_name() ..
|
||||
" to chest at " .. minetest.pos_to_string(pos))
|
||||
minetest.log("action", S("@1 moves @2 to chest at @3", player:get_player_name(), stack:get_name(), minetest.pos_to_string(pos)))
|
||||
end
|
||||
|
||||
function technic.chests.on_inv_take(pos, listname, index, stack, player)
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" takes " .. stack:get_name() ..
|
||||
" from chest at " .. minetest.pos_to_string(pos))
|
||||
minetest.log("action", S("@1 takes @2 from chest at @3", player:get_player_name(), stack:get_name(), minetest.pos_to_string(pos)))
|
||||
end
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:copper_chest 1',
|
||||
recipe = {
|
||||
@ -25,7 +28,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
technic.chests:register("Copper", {
|
||||
technic.chests:register(S("Copper"), {
|
||||
width = 12,
|
||||
height = 5,
|
||||
sort = true,
|
||||
@ -33,9 +36,9 @@ technic.chests:register("Copper", {
|
||||
infotext = false,
|
||||
color = false,
|
||||
locked = false,
|
||||
})
|
||||
}, "copper")
|
||||
|
||||
technic.chests:register("Copper", {
|
||||
technic.chests:register(S("Copper"), {
|
||||
width = 12,
|
||||
height = 5,
|
||||
sort = true,
|
||||
@ -43,5 +46,5 @@ technic.chests:register("Copper", {
|
||||
infotext = false,
|
||||
color = false,
|
||||
locked = true,
|
||||
})
|
||||
}, "copper")
|
||||
|
||||
|
@ -3,5 +3,4 @@ basic_materials
|
||||
moreblocks?
|
||||
moreores?
|
||||
pipeworks?
|
||||
intllib?
|
||||
tubelib?
|
||||
|
@ -1,3 +1,5 @@
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
local material_list
|
||||
if minetest.get_modpath("moreores") then
|
||||
@ -36,7 +38,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
technic.chests:register("Gold", {
|
||||
technic.chests:register(S("Gold"), {
|
||||
width = 15,
|
||||
height = 6,
|
||||
sort = true,
|
||||
@ -44,9 +46,9 @@ technic.chests:register("Gold", {
|
||||
infotext = true,
|
||||
color = true,
|
||||
locked = false,
|
||||
})
|
||||
}, "gold")
|
||||
|
||||
technic.chests:register("Gold", {
|
||||
technic.chests:register(S("Gold"), {
|
||||
width = 15,
|
||||
height = 6,
|
||||
sort = true,
|
||||
@ -54,5 +56,5 @@ technic.chests:register("Gold", {
|
||||
infotext = true,
|
||||
color = true,
|
||||
locked = true,
|
||||
})
|
||||
}, "gold")
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
local cast_iron_ingot
|
||||
if minetest.get_modpath("technic_worldgen") then
|
||||
cast_iron_ingot = "technic:cast_iron_ingot"
|
||||
@ -32,7 +35,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
technic.chests:register("Iron", {
|
||||
technic.chests:register(S("Iron"), {
|
||||
width = 9,
|
||||
height = 5,
|
||||
sort = true,
|
||||
@ -40,9 +43,9 @@ technic.chests:register("Iron", {
|
||||
infotext = false,
|
||||
color = false,
|
||||
locked = false,
|
||||
})
|
||||
}, "iron")
|
||||
|
||||
technic.chests:register("Iron", {
|
||||
technic.chests:register(S("Iron"), {
|
||||
width = 9,
|
||||
height = 5,
|
||||
sort = true,
|
||||
@ -50,5 +53,5 @@ technic.chests:register("Iron", {
|
||||
infotext = false,
|
||||
color = false,
|
||||
locked = true,
|
||||
})
|
||||
}, "iron")
|
||||
|
||||
|
@ -1,41 +0,0 @@
|
||||
# German Translation for technic_chests
|
||||
# Deutsche Übersetzung von technic_chests
|
||||
# by Xanthin
|
||||
|
||||
%s Chest = %struhe
|
||||
%s Locked Chest = Verschlossene %struhe
|
||||
%s Locked Chest (owned by %s) = Verschlossene %struhe (gehoert %s)
|
||||
Color Filter: %s = Farbfilter: %s
|
||||
Edit chest description: = Bearbeite die Beschreibung
|
||||
|
||||
# Colors
|
||||
Black = Schwarz
|
||||
Blue = Blau
|
||||
Brown = Braun
|
||||
Cyan = Tuerkis
|
||||
Dark Green = Dunkelgruen
|
||||
Dark Grey = Dunkelgrau
|
||||
Green = Gruen
|
||||
Grey = Grau
|
||||
Magenta = Magenta
|
||||
Orange = Orange
|
||||
Pink = Rosa
|
||||
Red = Rot
|
||||
Violet = Violett
|
||||
White = Weiss
|
||||
Yellow = Gelb
|
||||
None = Farblos
|
||||
|
||||
# Materials
|
||||
Copper = Kupfer
|
||||
Gold = Gold
|
||||
Iron = Eisen
|
||||
Mithril = Mithril
|
||||
Silver = Silber
|
||||
Wooden = Holz
|
||||
|
||||
# Sorting
|
||||
Sort =
|
||||
Auto-sort is %s =
|
||||
Off =
|
||||
On =
|
@ -1,39 +0,0 @@
|
||||
# technic_chests translation template
|
||||
|
||||
%s Chest = Cofre de %s
|
||||
%s Locked Chest = Cofre de %s Bloqueado
|
||||
%s Locked Chest (owned by %s) = Cofre de %s Bloqueado (propiedad de %s)
|
||||
Color Filter: %s = Filtro por Color: %s
|
||||
Edit chest description: = Editar la descripción del cofre
|
||||
|
||||
# Colors
|
||||
Black = Negro
|
||||
Blue = Azul
|
||||
Brown = Café
|
||||
Cyan = Cian
|
||||
Dark Green = Verde Oscuro
|
||||
Dark Grey = Gris Oscuro
|
||||
Green = Verde
|
||||
Grey = Gris
|
||||
Magenta = Magenta
|
||||
Orange = Naranja
|
||||
Pink = Rosado
|
||||
Red = Rojo
|
||||
Violet = Violeta
|
||||
White = Blanco
|
||||
Yellow = Amarillo
|
||||
None = Ninguno
|
||||
|
||||
# Materials
|
||||
Copper = Cobre
|
||||
Gold = Oro
|
||||
Iron = Hierro
|
||||
Mithril = Mitrilo
|
||||
Silver = Plata
|
||||
Wooden = Madera
|
||||
|
||||
# Sorting
|
||||
Sort = Ordenar
|
||||
Auto-sort is %s = El orden Automático esta %s
|
||||
Off = Apagado
|
||||
On = Encendido
|
@ -1,39 +0,0 @@
|
||||
# technic_chests translation template
|
||||
|
||||
%s Chest = Coffre en %s
|
||||
%s Locked Chest = Coffre verrouillé en %s
|
||||
%s Locked Chest (owned by %s) = Coffre verrouillé en %s (appartient à %s)
|
||||
Color Filter: %s = Filtre couleur : %s
|
||||
Edit chest description: = Editer la description du coffre
|
||||
|
||||
# Colors
|
||||
Black = Noir
|
||||
Blue = Bleu
|
||||
Brown = Marron
|
||||
Cyan = Cyan
|
||||
Dark Green = Vert foncé
|
||||
Dark Grey = Gris foncé
|
||||
Green = Vert
|
||||
Grey = Gris
|
||||
Magenta = Magenta
|
||||
Orange = Orange
|
||||
Pink = Rose
|
||||
Red = Rouge
|
||||
Violet = Violet
|
||||
White = Blanc
|
||||
Yellow = Jaune
|
||||
None = Rien
|
||||
|
||||
# Materials
|
||||
Copper = cuivre
|
||||
Gold = or
|
||||
Iron = fer
|
||||
Mithril = mithril
|
||||
Silver = argent
|
||||
Wooden = bois
|
||||
|
||||
# Sorting
|
||||
Sort = Tri
|
||||
Auto-sort is %s = Tri automatique %s
|
||||
Off = désactivé
|
||||
On = activé
|
@ -1,41 +0,0 @@
|
||||
# Polish Translation for technic_chests
|
||||
# Polskie tłumaczenie technic_chests
|
||||
# by mat9117
|
||||
|
||||
%s Chest = %s Skrzynia
|
||||
%s Locked Chest = %s Zamknięta skrzynia
|
||||
%s Locked Chest (owned by %s) = %s Zamknięta skrzynia (należy do %s)
|
||||
Color Filter: %s = Filtr kolorów: %s
|
||||
Edit chest description: = Edytuj opis skrzyni
|
||||
|
||||
# Colors
|
||||
Black = Czarny
|
||||
Blue = Niebieski
|
||||
Brown = Brązowy
|
||||
Cyan = Cyan
|
||||
Dark Green = Ciemnozielony
|
||||
Dark Grey = Ciemnoszary
|
||||
Green = Zielony
|
||||
Grey = Szary
|
||||
Magenta = Magenta
|
||||
Orange = Pomarańczowy
|
||||
Pink = Różowy
|
||||
Red = Czerwony
|
||||
Violet = Fioletowy
|
||||
White = Biały
|
||||
Yellow = Żółty
|
||||
None = Żaden
|
||||
|
||||
# Materials
|
||||
Copper = Miedziana
|
||||
Gold = Złota
|
||||
Iron = Żelazna
|
||||
Mithril = Mithrilowa
|
||||
Silver = Srebrna
|
||||
Wooden = Drewniana
|
||||
|
||||
# Sorting
|
||||
Sort = Sortuj
|
||||
Auto-sort is %s = Autosortowanie jest %s
|
||||
Off = Wyłaczone
|
||||
On = Włączone
|
@ -1,41 +0,0 @@
|
||||
# Braziliam portuguese translation for technic_chests
|
||||
# Tradução portuguesa brasileira para technic_chests
|
||||
# By Sires
|
||||
|
||||
%s Chest = Baú %s
|
||||
%s Locked Chest = Baú Trancado %s
|
||||
%s Locked Chest (owned by %s) = Baú Trancado %s (pertence a/à %s)
|
||||
Color Filter: %s = Filtro de Cor: %s
|
||||
Edit chest description: = Editar descrição do baú:
|
||||
|
||||
# Colors
|
||||
Black = Preto
|
||||
Blue = Azul
|
||||
Brown = Marrom
|
||||
Cyan = Ciano
|
||||
Dark Green = Verde Escuro
|
||||
Dark Grey = Cinza Escuro
|
||||
Green = Verde
|
||||
Grey = Cinza
|
||||
Magenta = Magenta
|
||||
Orange = Laranja
|
||||
Pink = Rosa
|
||||
Red = Vermelho
|
||||
Violet = Violeta
|
||||
White = Branco
|
||||
Yellow = Amarelo
|
||||
None = Nada
|
||||
|
||||
# Materials
|
||||
Copper = Cobre
|
||||
Gold = Ouro
|
||||
Iron = Ferro
|
||||
Mithril = Mithril
|
||||
Silver = Prata
|
||||
Wooden = de Madeira
|
||||
|
||||
# Sorting
|
||||
Sort = Ordenar
|
||||
Auto-sort is %s = Auto-ordenação está %s
|
||||
Off = Desligada
|
||||
On = Ligada
|
37
technic_chests/locale/technic_chests.de.tr
Normal file
37
technic_chests/locale/technic_chests.de.tr
Normal file
@ -0,0 +1,37 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# German Translation for technic_chests
|
||||
# Deutsche Übersetzung von technic_chests
|
||||
# by Xanthin
|
||||
|
||||
@1 Chest=@1truhe
|
||||
@1 Locked Chest=Verschlossene @1truhe
|
||||
@1 Locked Chest (owned by @2)=Verschlossene @1truhe (gehoert @2)
|
||||
Color Filter: @1=Farbfilter: @1
|
||||
Edit chest description:=Bearbeite die Beschreibung
|
||||
|
||||
# Colors
|
||||
Black=Schwarz
|
||||
Blue=Blau
|
||||
Brown=Braun
|
||||
Cyan=Tuerkis
|
||||
Dark Green=Dunkelgruen
|
||||
Dark Grey=Dunkelgrau
|
||||
Green=Gruen
|
||||
Grey=Grau
|
||||
Magenta=Magenta
|
||||
Orange=Orange
|
||||
Pink=Rosa
|
||||
Red=Rot
|
||||
Violet=Violett
|
||||
White=Weiss
|
||||
Yellow=Gelb
|
||||
None=Farblos
|
||||
|
||||
# Materials
|
||||
Copper=Kupfer
|
||||
Gold=Gold
|
||||
Iron=Eisen
|
||||
Mithril=Mithril
|
||||
Silver=Silber
|
||||
Wooden=Holz
|
41
technic_chests/locale/technic_chests.es.tr
Normal file
41
technic_chests/locale/technic_chests.es.tr
Normal file
@ -0,0 +1,41 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# technic_chests translation template
|
||||
|
||||
@1 Chest=Cofre de @1
|
||||
@1 Locked Chest=Cofre de @1 Bloqueado
|
||||
@1 Locked Chest (owned by @2)=Cofre de @1 Bloqueado (propiedad de @2)
|
||||
Color Filter: @1=Filtro por Color: @1
|
||||
Edit chest description:=Editar la descripción del cofre
|
||||
|
||||
# Colors
|
||||
Black=Negro
|
||||
Blue=Azul
|
||||
Brown=Café
|
||||
Cyan=Cian
|
||||
Dark Green=Verde Oscuro
|
||||
Dark Grey=Gris Oscuro
|
||||
Green=Verde
|
||||
Grey=Gris
|
||||
Magenta=Magenta
|
||||
Orange=Naranja
|
||||
Pink=Rosado
|
||||
Red=Rojo
|
||||
Violet=Violeta
|
||||
White=Blanco
|
||||
Yellow=Amarillo
|
||||
None=Ninguno
|
||||
|
||||
# Materials
|
||||
Copper=Cobre
|
||||
Gold=Oro
|
||||
Iron=Hierro
|
||||
Mithril=Mitrilo
|
||||
Silver=Plata
|
||||
Wooden=Madera
|
||||
|
||||
# Sorting
|
||||
Sort=Ordenar
|
||||
Auto-sort is @1=El orden Automático esta @1
|
||||
Off=Apagado
|
||||
On=Encendido
|
48
technic_chests/locale/technic_chests.fr.tr
Normal file
48
technic_chests/locale/technic_chests.fr.tr
Normal file
@ -0,0 +1,48 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# technic_chests translation template
|
||||
|
||||
@1 Chest=Coffre en @1
|
||||
@1 Locked Chest=Coffre verrouillé en @1
|
||||
@1 Locked Chest (owned by @2)=Coffre verrouillé en @1 (appartient à @2)
|
||||
Color Filter: @1=Filtre couleur : @1
|
||||
Edit chest description:=Éditer la description du coffre :
|
||||
|
||||
# Colors
|
||||
Black=Noir
|
||||
Blue=Bleu
|
||||
Brown=Marron
|
||||
Cyan=Cyan
|
||||
Dark Green=Vert foncé
|
||||
Dark Grey=Gris foncé
|
||||
Green=Vert
|
||||
Grey=Gris
|
||||
Magenta=Magenta
|
||||
Orange=Orange
|
||||
Pink=Rose
|
||||
Red=Rouge
|
||||
Violet=Violet
|
||||
White=Blanc
|
||||
Yellow=Jaune
|
||||
None=Rien
|
||||
|
||||
# Materials
|
||||
Copper=cuivre
|
||||
Gold=or
|
||||
Iron=fer
|
||||
Mithril=mithril
|
||||
Silver=argent
|
||||
Wooden=bois
|
||||
|
||||
# Sorting
|
||||
Sort=Trier
|
||||
Auto-sort is @1=Tri automatique @1
|
||||
Off=désactivé
|
||||
On=activé
|
||||
|
||||
@1 moves stuff in chest at @2=@1 déplace des affaires dans le coffre à @2
|
||||
@1 moves @2 to chest at @3=@1 déplace @2 vers le coffre à @3
|
||||
@1 takes @2 from chest at @3=@1 prend @2 du coffre à @3
|
||||
[technic_chests] WARNING: variable or method '@1' not present in dummy pipeworks table - assuming it is a method…=[technic_chests] AVERTISSEMENT : la variable ou la méthode '@1' n’est pas présente dans la table factice - en considérant que c’est une méthode…
|
||||
Allow splitting incoming stacks from tubes=Séparer les piles venant des tuyaux
|
||||
|
43
technic_chests/locale/technic_chests.pl.tr
Normal file
43
technic_chests/locale/technic_chests.pl.tr
Normal file
@ -0,0 +1,43 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# Polish Translation for technic_chests
|
||||
# Polskie tłumaczenie technic_chests
|
||||
# by mat9117
|
||||
|
||||
@1 Chest=@1 Skrzynia
|
||||
@1 Locked Chest=@1 Zamknięta skrzynia
|
||||
@1 Locked Chest (owned by @2)=@1 Zamknięta skrzynia (należy do @2)
|
||||
Color Filter: @1=Filtr kolorów: @1
|
||||
Edit chest description:=Edytuj opis skrzyni
|
||||
|
||||
# Colors
|
||||
Black=Czarny
|
||||
Blue=Niebieski
|
||||
Brown=Brązowy
|
||||
Cyan=Cyan
|
||||
Dark Green=Ciemnozielony
|
||||
Dark Grey=Ciemnoszary
|
||||
Green=Zielony
|
||||
Grey=Szary
|
||||
Magenta=Magenta
|
||||
Orange=Pomarańczowy
|
||||
Pink=Różowy
|
||||
Red=Czerwony
|
||||
Violet=Fioletowy
|
||||
White=Biały
|
||||
Yellow=Żółty
|
||||
None=Żaden
|
||||
|
||||
# Materials
|
||||
Copper=Miedziana
|
||||
Gold=Złota
|
||||
Iron=Żelazna
|
||||
Mithril=Mithrilowa
|
||||
Silver=Srebrna
|
||||
Wooden=Drewniana
|
||||
|
||||
# Sorting
|
||||
Sort=Sortuj
|
||||
Auto-sort is @1=Autosortowanie jest @1
|
||||
Off=Wyłaczone
|
||||
On=Włączone
|
43
technic_chests/locale/technic_chests.pt_BR.tr
Normal file
43
technic_chests/locale/technic_chests.pt_BR.tr
Normal file
@ -0,0 +1,43 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# Braziliam portuguese translation for technic_chests
|
||||
# Tradução portuguesa brasileira para technic_chests
|
||||
# By Sires
|
||||
|
||||
@1 Chest=Baú @1
|
||||
@1 Locked Chest=Baú Trancado @1
|
||||
@1 Locked Chest (owned by @2)=Baú Trancado @1 (pertence a/à @2)
|
||||
Color Filter: @1=Filtro de Cor: @1
|
||||
Edit chest description:=Editar descrição do baú:
|
||||
|
||||
# Colors
|
||||
Black=Preto
|
||||
Blue=Azul
|
||||
Brown=Marrom
|
||||
Cyan=Ciano
|
||||
Dark Green=Verde Escuro
|
||||
Dark Grey=Cinza Escuro
|
||||
Green=Verde
|
||||
Grey=Cinza
|
||||
Magenta=Magenta
|
||||
Orange=Laranja
|
||||
Pink=Rosa
|
||||
Red=Vermelho
|
||||
Violet=Violeta
|
||||
White=Branco
|
||||
Yellow=Amarelo
|
||||
None=Nada
|
||||
|
||||
# Materials
|
||||
Copper=Cobre
|
||||
Gold=Ouro
|
||||
Iron=Ferro
|
||||
Mithril=Mithril
|
||||
Silver=Prata
|
||||
Wooden=de Madeira
|
||||
|
||||
# Sorting
|
||||
Sort=Ordenar
|
||||
Auto-sort is @1=Auto-ordenação está @1
|
||||
Off=Desligada
|
||||
On=Ligada
|
43
technic_chests/locale/technic_chests.tr.tr
Normal file
43
technic_chests/locale/technic_chests.tr.tr
Normal file
@ -0,0 +1,43 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# Turkish translation
|
||||
# mahmutelmas06@hotmail.com
|
||||
# Türkçe çeviri
|
||||
|
||||
@1 Chest=@1 Sandık
|
||||
@1 Locked Chest=@1 Kilitli sandık
|
||||
@1 Locked Chest (owned by @2)=@1 Kilitli sandık (Sahibi @2)
|
||||
Color Filter: @1=Renk süzgeci: @1
|
||||
Edit chest description:=Sandık bilgilerini düzenle
|
||||
|
||||
# Colors - Renkler
|
||||
Black=Siyah
|
||||
Blue=Mavi
|
||||
Brown=Kahverengi
|
||||
Cyan=Cam göbeği
|
||||
Dark Green=Koyu yeşil
|
||||
Dark Grey=Koyu gri
|
||||
Green=Yeşil
|
||||
Grey=Gri
|
||||
Magenta=Mor
|
||||
Orange=Turuncu
|
||||
Pink=Pembe
|
||||
Red=Kırmızı
|
||||
Violet=Koyu mor
|
||||
White=Beyaz
|
||||
Yellow=Sarı
|
||||
None=Hiç
|
||||
|
||||
# Materials - Metaryeller
|
||||
Copper=Bakır
|
||||
Gold=Altın
|
||||
Iron=Demir
|
||||
Mithril=Mithril
|
||||
Silver=Gümüş
|
||||
Wooden=Ahşap
|
||||
|
||||
# Sorting - Sıralama
|
||||
Sort=Sırala
|
||||
Auto-sort is @1=Otomatik sıralama @1
|
||||
Off=Kapalı
|
||||
On=Açık
|
@ -1,39 +1,47 @@
|
||||
# textdomain: technic_chests
|
||||
|
||||
# technic_chests translation template
|
||||
|
||||
%s Chest =
|
||||
%s Locked Chest =
|
||||
%s Locked Chest (owned by %s) =
|
||||
Color Filter: %s =
|
||||
Edit chest description: =
|
||||
@1 Chest=
|
||||
@1 Locked Chest=
|
||||
@1 Locked Chest (owned by @2)=
|
||||
Color Filter: @1=
|
||||
Edit chest description:=
|
||||
|
||||
# Colors
|
||||
Black =
|
||||
Blue =
|
||||
Brown =
|
||||
Cyan =
|
||||
Dark Green =
|
||||
Dark Grey =
|
||||
Green =
|
||||
Grey =
|
||||
Magenta =
|
||||
Orange =
|
||||
Pink =
|
||||
Red =
|
||||
Violet =
|
||||
White =
|
||||
Yellow =
|
||||
None =
|
||||
Black=
|
||||
Blue=
|
||||
Brown=
|
||||
Cyan=
|
||||
Dark Green=
|
||||
Dark Grey=
|
||||
Green=
|
||||
Grey=
|
||||
Magenta=
|
||||
Orange=
|
||||
Pink=
|
||||
Red=
|
||||
Violet=
|
||||
White=
|
||||
Yellow=
|
||||
None=
|
||||
|
||||
# Materials
|
||||
Copper =
|
||||
Gold =
|
||||
Iron =
|
||||
Mithril =
|
||||
Silver =
|
||||
Wooden =
|
||||
Copper=
|
||||
Gold=
|
||||
Iron=
|
||||
Mithril=
|
||||
Silver=
|
||||
Wooden=
|
||||
|
||||
# Sorting
|
||||
Sort =
|
||||
Auto-sort is %s =
|
||||
Off =
|
||||
On =
|
||||
Sort=
|
||||
Auto-sort is @1=
|
||||
Off=
|
||||
On=
|
||||
|
||||
@1 moves stuff in chest at @2=
|
||||
@1 moves @2 to chest at @3=
|
||||
@1 takes @2 from chest at @3=
|
||||
[technic_chests] WARNING: variable or method '@1' not present in dummy pipeworks table - assuming it is a method…=
|
||||
Allow splitting incoming stacks from tubes=
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Turkish translation
|
||||
# mahmutelmas06@hotmail.com
|
||||
# Türkçe çeviri
|
||||
|
||||
%s Chest = %s Sandık
|
||||
%s Locked Chest = %s Kilitli sandık
|
||||
%s Locked Chest (owned by %s) = %s Kilitli sandık (Sahibi %s)
|
||||
Color Filter: %s = Renk süzgeci: %s
|
||||
Edit chest description: = Sandık bilgilerini düzenle
|
||||
|
||||
# Colors - Renkler
|
||||
Black = Siyah
|
||||
Blue = Mavi
|
||||
Brown = Kahverengi
|
||||
Cyan = Cam göbeği
|
||||
Dark Green = Koyu yeşil
|
||||
Dark Grey = Koyu gri
|
||||
Green = Yeşil
|
||||
Grey = Gri
|
||||
Magenta = Mor
|
||||
Orange = Turuncu
|
||||
Pink = Pembe
|
||||
Red = Kırmızı
|
||||
Violet = Koyu mor
|
||||
White = Beyaz
|
||||
Yellow = Sarı
|
||||
None = Hiç
|
||||
|
||||
# Materials - Metaryeller
|
||||
Copper = Bakır
|
||||
Gold = Altın
|
||||
Iron = Demir
|
||||
Mithril = Mithril
|
||||
Silver = Gümüş
|
||||
Wooden = Ahşap
|
||||
|
||||
# Sorting - Sıralama
|
||||
Sort = Sırala
|
||||
Auto-sort is %s = Otomatik sıralama %s
|
||||
Off = Kapalı
|
||||
On = Açık
|
@ -1,3 +1,6 @@
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_craft({
|
||||
output = 'technic:mithril_chest 1',
|
||||
@ -27,7 +30,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
technic.chests:register("Mithril", {
|
||||
technic.chests:register(S("Mithril"), {
|
||||
width = 15,
|
||||
height = 6,
|
||||
sort = true,
|
||||
@ -35,9 +38,9 @@ technic.chests:register("Mithril", {
|
||||
infotext = false,
|
||||
color = false,
|
||||
locked = false,
|
||||
})
|
||||
}, "mithril")
|
||||
|
||||
technic.chests:register("Mithril", {
|
||||
technic.chests:register(S("Mithril"), {
|
||||
width = 15,
|
||||
height = 6,
|
||||
sort = true,
|
||||
@ -45,5 +48,5 @@ technic.chests:register("Mithril", {
|
||||
infotext = false,
|
||||
color = false,
|
||||
locked = true,
|
||||
})
|
||||
}, "mithril")
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = technic_chests
|
||||
depends = default, basic_materials
|
||||
optional_depends = moreblocks, moreores, pipeworks, intllib, tubelib
|
||||
optional_depends = moreblocks, moreores, pipeworks, tubelib
|
||||
|
@ -1,4 +1,6 @@
|
||||
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
|
||||
local pipeworks = rawget(_G, "pipeworks")
|
||||
local fs_helpers = rawget(_G, "fs_helpers")
|
||||
@ -17,7 +19,7 @@ if not minetest.get_modpath("pipeworks") then
|
||||
local dummy = function()
|
||||
end
|
||||
pipeworks_meta.__index = function(table, key)
|
||||
print("[technic_chests] WARNING: variable or method '"..key.."' not present in dummy pipeworks table - assuming it is a method...")
|
||||
print(S("[technic_chests] WARNING: variable or method '@1' not present in dummy pipeworks table - assuming it is a method…", key))
|
||||
pipeworks[key] = dummy
|
||||
return dummy
|
||||
end
|
||||
@ -26,7 +28,7 @@ if not minetest.get_modpath("pipeworks") then
|
||||
fs_helpers.cycling_button = function() return "" end
|
||||
else
|
||||
fs_helpers = pipeworks.fs_helpers
|
||||
allow_label = "label[0.9,0.36;Allow splitting incoming stacks from tubes]"
|
||||
allow_label = "label[0.9,0.36;"..S("Allow splitting incoming stacks from tubes").."]"
|
||||
shift_edit_field = 3
|
||||
tube_entry = "^pipeworks_tube_connection_metallic.png"
|
||||
end
|
||||
@ -97,18 +99,18 @@ local function set_formspec(pos, data, page)
|
||||
|
||||
if data.autosort then
|
||||
local status = meta:get_int("autosort")
|
||||
formspec = formspec.."button["..(data.hileft+2)..","..(data.height+1.1)..";3,0.8;autosort_to_"..(1-status)..";"..S("Auto-sort is %s"):format(status == 1 and S("On") or S("Off")).."]"
|
||||
formspec = formspec.."button["..(data.hileft+2)..","..(data.height+1.1)..";5,0.8;autosort_to_"..(1-status)..";"..S("Auto-sort is @1", (status == 1) and S("On") or S("Off")).."]"
|
||||
end
|
||||
if data.infotext then
|
||||
local formspec_infotext = minetest.formspec_escape(meta:get_string("infotext"))
|
||||
if page == "main" then
|
||||
formspec = formspec.."image_button["..(shift_edit_field+data.hileft+2.1)..",0.1;0.8,0.8;"
|
||||
formspec = formspec.."image_button["..(shift_edit_field+data.hileft+3.1)..",0.1;0.8,0.8;"
|
||||
.."technic_pencil_icon.png;edit_infotext;]"
|
||||
.."label["..(shift_edit_field+data.hileft+3)..",0;"..formspec_infotext.."]"
|
||||
.."label["..(shift_edit_field+data.hileft+4)..",0;"..formspec_infotext.."]"
|
||||
elseif page == "edit_infotext" then
|
||||
formspec = formspec.."image_button["..(shift_edit_field+data.hileft+2.1)..",0.1;0.8,0.8;"
|
||||
formspec = formspec.."image_button["..(shift_edit_field+data.hileft+3.1)..",0.1;0.8,0.8;"
|
||||
.."technic_checkmark_icon.png;save_infotext;]"
|
||||
.."field["..(shift_edit_field+data.hileft+3.3)..",0.2;4.8,1;"
|
||||
.."field["..(shift_edit_field+data.hileft+4.3)..",0.2;4.8,1;"
|
||||
.."infotext_box;"..S("Edit chest description:")..";"
|
||||
..formspec_infotext.."]"
|
||||
end
|
||||
@ -121,7 +123,7 @@ local function set_formspec(pos, data, page)
|
||||
else
|
||||
colorName = S("None")
|
||||
end
|
||||
formspec = formspec.."label["..(data.coleft+0.2)..","..(data.lotop+3)..";"..S("Color Filter: %s"):format(colorName).."]"
|
||||
formspec = formspec.."label["..(data.coleft+0.2)..","..(data.lotop+3)..";"..S("Color Filter: @1", colorName).."]"
|
||||
end
|
||||
meta:set_string("formspec", formspec)
|
||||
end
|
||||
@ -195,9 +197,9 @@ local function get_receive_fields(name, data)
|
||||
end
|
||||
end
|
||||
|
||||
function technic.chests:definition(name, data)
|
||||
function technic.chests:definition(description, data, name)
|
||||
local lname = name:lower()
|
||||
name = S(name)
|
||||
name = description
|
||||
local d = {}
|
||||
for k, v in pairs(data) do d[k] = v end
|
||||
data = d
|
||||
@ -224,7 +226,7 @@ function technic.chests:definition(name, data)
|
||||
local locked_after_place = nil
|
||||
local front = {"technic_"..lname.."_chest_front.png"}
|
||||
data.base_formspec = "size["..data.ovwidth..","..data.ovheight.."]"..
|
||||
"label[0,0;"..S("%s Chest"):format(name).."]"..
|
||||
"label[0,0;"..S("@1 Chest", name).."]"..
|
||||
"list[context;main;"..data.hileft..",1;"..data.width..","..data.height..";]"..
|
||||
"list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]"..
|
||||
"background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_chest_form_bg.png]"..
|
||||
@ -233,7 +235,7 @@ function technic.chests:definition(name, data)
|
||||
"listring[]"
|
||||
|
||||
if data.sort then
|
||||
data.base_formspec = data.base_formspec.."button["..data.hileft..","..(data.height+1.1)..";1,0.8;sort;"..S("Sort").."]"
|
||||
data.base_formspec = data.base_formspec.."button["..data.hileft..","..(data.height+1.1)..";1,1;sort;"..S("Sort").."]"
|
||||
end
|
||||
if data.color then
|
||||
data.base_formspec = data.base_formspec..get_color_buttons(data.coleft, data.lotop)
|
||||
@ -243,9 +245,7 @@ function technic.chests:definition(name, data)
|
||||
locked_after_place = function(pos, placer)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("owner", placer:get_player_name() or "")
|
||||
meta:set_string("infotext",
|
||||
S("%s Locked Chest (owned by %s)")
|
||||
:format(name, meta:get_string("owner")))
|
||||
meta:set_string("infotext", S("@1 Locked Chest (owned by @2)", name, meta:get_string("owner")))
|
||||
pipeworks.after_place(pos)
|
||||
end
|
||||
table.insert(front, "technic_"..lname.."_chest_lock_overlay.png")
|
||||
@ -255,9 +255,9 @@ function technic.chests:definition(name, data)
|
||||
|
||||
local desc
|
||||
if data.locked then
|
||||
desc = S("%s Locked Chest"):format(name)
|
||||
desc = S("@1 Locked Chest", name)
|
||||
else
|
||||
desc = S("%s Chest"):format(name)
|
||||
desc = S("@1 Chest", name)
|
||||
end
|
||||
|
||||
local tentry = tube_entry
|
||||
@ -288,20 +288,20 @@ function technic.chests:definition(name, data)
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", S("%s Chest"):format(name))
|
||||
meta:set_string("infotext", S("@1 Chest", name))
|
||||
set_formspec(pos, data, "main")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", data.width * data.height)
|
||||
end,
|
||||
can_dig = self.can_dig,
|
||||
on_receive_fields = get_receive_fields(name, data),
|
||||
on_receive_fields = get_receive_fields(lname, data),
|
||||
on_metadata_inventory_move = self.on_inv_move,
|
||||
on_metadata_inventory_put = self.on_inv_put,
|
||||
on_metadata_inventory_take = self.on_inv_take,
|
||||
on_blast = function(pos)
|
||||
local drops = {}
|
||||
default.get_inventory_drops(pos, "main", drops)
|
||||
drops[#drops+1] = "technic:"..name:lower()..(data.locked and "_locked" or "").."_chest"
|
||||
drops[#drops+1] = "technic:"..lname..(data.locked and "_locked" or "").."_chest"
|
||||
minetest.remove_node(pos)
|
||||
return drops
|
||||
end,
|
||||
@ -370,8 +370,8 @@ local _TUBELIB_CALLBACKS = {
|
||||
end,
|
||||
}
|
||||
|
||||
function technic.chests:register(name, data)
|
||||
local def = technic.chests:definition(name, data)
|
||||
function technic.chests:register(description, data, name)
|
||||
local def = technic.chests:definition(description, data, name)
|
||||
|
||||
local nn = "technic:"..name:lower()..(data.locked and "_locked" or "").."_chest"
|
||||
minetest.register_node(":"..nn, def)
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- Translation support
|
||||
local S = minetest.get_translator("technic_chests")
|
||||
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_craft({
|
||||
output = 'technic:silver_chest',
|
||||
@ -27,7 +30,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
technic.chests:register("Silver", {
|
||||
technic.chests:register(S("Silver"), {
|
||||
width = 12,
|
||||
height = 6,
|
||||
sort = true,
|
||||
@ -35,9 +38,9 @@ technic.chests:register("Silver", {
|
||||
infotext = true,
|
||||
color = false,
|
||||
locked = false,
|
||||
})
|
||||
}, "silver")
|
||||
|
||||
technic.chests:register("Silver", {
|
||||
technic.chests:register(S("Silver"), {
|
||||
width = 12,
|
||||
height = 6,
|
||||
sort = true,
|
||||
@ -45,5 +48,5 @@ technic.chests:register("Silver", {
|
||||
infotext = true,
|
||||
color = false,
|
||||
locked = true,
|
||||
})
|
||||
}, "silver")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user