New upstream version 0.4.10
Julien Puydt
6 years ago
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | ||
0 | 3 | local skin_previews = {} |
1 | 4 | local use_player_monoids = minetest.global_exists("player_monoids") |
2 | 5 | local use_armor_monoid = minetest.global_exists("armor_monoid") |
68 | 71 | on_damage = {}, |
69 | 72 | on_destroy = {}, |
70 | 73 | }, |
71 | version = "0.4.9", | |
74 | version = "0.4.10", | |
72 | 75 | } |
73 | 76 | |
74 | 77 | armor.config = { |
166 | 169 | self.textures[name].wielditem, |
167 | 170 | }) |
168 | 171 | end |
172 | self:run_callbacks("on_update", player) | |
169 | 173 | end |
170 | 174 | |
171 | 175 | armor.set_player_armor = function(self, player) |
195 | 199 | levels[group] = 0 |
196 | 200 | end |
197 | 201 | local list = player_inv:get_list("armor") |
202 | if type(list) ~= "table" then | |
203 | return | |
204 | end | |
198 | 205 | for i, stack in pairs(list) do |
199 | 206 | if stack:get_count() == 1 then |
200 | 207 | local def = stack:get_definition() |
285 | 292 | self.def[name].state = state |
286 | 293 | self.def[name].count = count |
287 | 294 | self:update_player_visuals(player) |
288 | self:run_callbacks("on_update", player) | |
289 | 295 | end |
290 | 296 | |
291 | 297 | armor.punch = function(self, player, hitter, time_from_last_punch, tool_capabilities) |
365 | 371 | armor.damage = function(self, player, index, stack, use) |
366 | 372 | local old_stack = ItemStack(stack) |
367 | 373 | stack:add_wear(use) |
368 | self:run_callbacks("on_damage", player, i, stack) | |
374 | self:run_callbacks("on_damage", player, index, stack) | |
369 | 375 | self:set_inventory_stack(player, index, stack) |
370 | 376 | if stack:get_count() == 0 then |
371 | 377 | self:run_callbacks("on_unequip", player, index, old_stack) |
375 | 381 | end |
376 | 382 | |
377 | 383 | armor.get_player_skin = function(self, name) |
378 | local skin = nil | |
379 | if self.skin_mod == "skins" or self.skin_mod == "simple_skins" then | |
380 | skin = skins.skins[name] | |
381 | elseif self.skin_mod == "u_skins" then | |
382 | skin = u_skins.u_skins[name] | |
383 | elseif self.skin_mod == "wardrobe" then | |
384 | local skins = wardrobe.playerSkins or {} | |
385 | if skins[name] then | |
386 | skin = string.gsub(skins[name], "%.png$","") | |
387 | end | |
388 | end | |
389 | return skin or armor.default_skin | |
384 | if (self.skin_mod == "skins" or self.skin_mod == "simple_skins") and skins.skins[name] then | |
385 | return skins.skins[name]..".png" | |
386 | elseif self.skin_mod == "u_skins" and u_skins.u_skins[name] then | |
387 | return u_skins.u_skins[name]..".png" | |
388 | elseif self.skin_mod == "wardrobe" and wardrobe.playerSkins and wardrobe.playerSkins[name] then | |
389 | return wardrobe.playerSkins[name] | |
390 | end | |
391 | return armor.default_skin..".png" | |
390 | 392 | end |
391 | 393 | |
392 | 394 | armor.add_preview = function(self, preview) |
394 | 396 | end |
395 | 397 | |
396 | 398 | armor.get_preview = function(self, name) |
397 | local preview = armor:get_player_skin(name).."_preview.png" | |
399 | local preview = string.gsub(armor:get_player_skin(name), ".png", "_preview.png") | |
398 | 400 | if skin_previews[preview] then |
399 | 401 | return preview |
400 | 402 | end |
430 | 432 | local msg = "[set_inventory_stack]" |
431 | 433 | local name = player:get_player_name() |
432 | 434 | if not name then |
433 | minetest.log("warning", "3d_armor: Player name is nil "..msg) | |
435 | minetest.log("warning", S("3d_armor: Player name is nil @1", msg)) | |
434 | 436 | return |
435 | 437 | end |
436 | 438 | local player_inv = player:get_inventory() |
437 | 439 | local armor_inv = minetest.get_inventory({type="detached", name=name.."_armor"}) |
438 | 440 | if not player_inv then |
439 | minetest.log("warning", "3d_armor: Player inventory is nil "..msg) | |
441 | minetest.log("warning", S("3d_armor: Player inventory is nil @1", msg)) | |
440 | 442 | return |
441 | 443 | elseif not armor_inv then |
442 | minetest.log("warning", "3d_armor: Detached armor inventory is nil "..msg) | |
444 | minetest.log("warning", S("3d_armor: Detached armor inventory is nil @1", msg)) | |
443 | 445 | return |
444 | 446 | end |
445 | 447 | player_inv:set_stack("armor", i, stack) |
449 | 451 | armor.get_valid_player = function(self, player, msg) |
450 | 452 | msg = msg or "" |
451 | 453 | if not player then |
452 | minetest.log("warning", "3d_armor: Player reference is nil "..msg) | |
454 | minetest.log("warning", S("3d_armor: Player reference is nil @1", msg)) | |
453 | 455 | return |
454 | 456 | end |
455 | 457 | local name = player:get_player_name() |
456 | 458 | if not name then |
457 | minetest.log("warning", "3d_armor: Player name is nil "..msg) | |
459 | minetest.log("warning", S("3d_armor: Player name is nil @1", msg)) | |
458 | 460 | return |
459 | 461 | end |
460 | 462 | local inv = player:get_inventory() |
461 | 463 | if not inv then |
462 | minetest.log("warning", "3d_armor: Player inventory is nil "..msg) | |
464 | minetest.log("warning", S("3d_armor: Player inventory is nil @1", msg)) | |
463 | 465 | return |
464 | 466 | end |
465 | 467 | return name, inv |
466 | 468 | end |
467 | 469 | |
468 | 470 | armor.drop_armor = function(pos, stack) |
469 | local obj = minetest.add_item(pos, stack) | |
470 | if obj then | |
471 | obj:setvelocity({x=math.random(-1, 1), y=5, z=math.random(-1, 1)}) | |
472 | end | |
473 | end | |
471 | local node = minetest.get_node_or_nil(pos) | |
472 | if node then | |
473 | local obj = minetest.add_item(pos, stack) | |
474 | if obj then | |
475 | obj:setvelocity({x=math.random(-1, 1), y=5, z=math.random(-1, 1)}) | |
476 | end | |
477 | end | |
478 | end |
0 | local S = function(s) return s end | |
1 | if minetest.global_exists("intllib") then | |
2 | S = intllib.Getter() | |
3 | end | |
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
4 | 2 | |
5 | 3 | armor:register_armor("3d_armor:helmet_admin", { |
6 | 4 | description = S("Admin Helmet"), |
0 | local S = function(s) return s end | |
1 | if minetest.global_exists("intllib") then | |
2 | S = intllib.Getter() | |
3 | end | |
0 | -- support for i18n | |
1 | armor_i18n = { } | |
2 | local MP = minetest.get_modpath(minetest.get_current_modname()) | |
3 | armor_i18n.gettext, armor_i18n.ngettext = dofile(MP.."/intllib.lua") | |
4 | -- escaping formspec | |
5 | armor_i18n.fgettext = function(...) return minetest.formspec_escape(armor_i18n.gettext(...)) end | |
6 | -- local functions | |
7 | local S = armor_i18n.gettext | |
8 | local F = armor_i18n.fgettext | |
9 | ||
4 | 10 | local modname = minetest.get_current_modname() |
5 | 11 | local modpath = minetest.get_modpath(modname) |
6 | 12 | local worldpath = minetest.get_worldpath() |
40 | 46 | -- Load Configuration |
41 | 47 | |
42 | 48 | for name, config in pairs(armor.config) do |
43 | local setting = minetest.setting_get("armor_"..name) | |
49 | local setting = minetest.settings:get("armor_"..name) | |
44 | 50 | if type(config) == "number" then |
45 | 51 | setting = tonumber(setting) |
46 | 52 | elseif type(config) == "boolean" then |
47 | setting = minetest.setting_getbool("armor_"..name) | |
53 | setting = minetest.settings:get_bool("armor_"..name) | |
48 | 54 | end |
49 | 55 | if setting ~= nil then |
50 | 56 | armor.config[name] = setting |
57 | 63 | end |
58 | 64 | end |
59 | 65 | |
60 | dofile(modpath.."/armor.lua") | |
61 | ||
62 | 66 | -- Mod Compatibility |
63 | 67 | |
64 | 68 | if minetest.get_modpath("technic") then |
65 | 69 | armor.formspec = armor.formspec.. |
66 | "label[5,2.5;"..S("Radiation")..": armor_group_radiation]" | |
70 | "label[5,2.5;"..F("Radiation")..": armor_group_radiation]" | |
67 | 71 | armor:register_armor_group("radiation") |
68 | 72 | end |
69 | 73 | local skin_mods = {"skins", "u_skins", "simple_skins", "wardrobe"} |
86 | 90 | armor.materials.crystal = nil |
87 | 91 | end |
88 | 92 | |
93 | dofile(modpath.."/armor.lua") | |
94 | ||
89 | 95 | -- Armor Initialization |
90 | 96 | |
91 | 97 | armor.formspec = armor.formspec.. |
92 | "label[5,1;"..S("Level")..": armor_level]".. | |
93 | "label[5,1.5;"..S("Heal")..": armor_attr_heal]" | |
98 | "label[5,1;"..F("Level")..": armor_level]".. | |
99 | "label[5,1.5;"..F("Heal")..": armor_attr_heal]" | |
94 | 100 | if armor.config.fire_protect then |
95 | armor.formspec = armor.formspec.."label[5,2;"..S("Fire")..": armor_fire]" | |
101 | armor.formspec = armor.formspec.."label[5,2;"..F("Fire")..": armor_fire]" | |
96 | 102 | end |
97 | 103 | armor:register_on_destroy(function(player, index, stack) |
98 | 104 | local name = player:get_player_name() |
99 | 105 | local def = stack:get_definition() |
100 | 106 | if name and def and def.description then |
101 | minetest.chat_send_player(name, S("Your").." "..def.description.." ".. | |
102 | S("got destroyed").."!") | |
107 | minetest.chat_send_player(name, S("Your @1 got destroyed!", def.description)) | |
103 | 108 | end |
104 | 109 | end) |
105 | 110 | |
176 | 181 | end |
177 | 182 | local skin = armor:get_player_skin(name) |
178 | 183 | armor.textures[name] = { |
179 | skin = skin..".png", | |
184 | skin = skin, | |
180 | 185 | armor = "3d_armor_trans.png", |
181 | 186 | wielditem = "3d_armor_trans.png", |
182 | 187 | preview = armor.default_skin.."_preview.png", |
223 | 228 | if string.find(field, "skins_set") then |
224 | 229 | minetest.after(0, function(player) |
225 | 230 | local skin = armor:get_player_skin(name) |
226 | armor.textures[name].skin = skin..".png" | |
231 | armor.textures[name].skin = skin | |
227 | 232 | armor:set_player_armor(player) |
228 | 233 | end, player) |
229 | 234 | end |
334 | 339 | local remove = init_player_armor(player) == true |
335 | 340 | pending_players[player] = count + 1 |
336 | 341 | if remove == false and count > armor.config.init_times then |
337 | minetest.log("warning", "3d_armor: Failed to initialize player") | |
342 | minetest.log("warning", S("3d_armor: Failed to initialize player")) | |
338 | 343 | remove = true |
339 | 344 | end |
340 | 345 | if remove == true then |
355 | 360 | end |
356 | 361 | end |
357 | 362 | else |
358 | print ("[3d_armor] Fire Nodes disabled") | |
363 | print (S("[3d_armor] Fire Nodes disabled")) | |
359 | 364 | end |
360 | 365 | |
361 | 366 | if armor.config.water_protect == true or armor.config.fire_protect == true then |
0 | ||
1 | -- Fallback functions for when `intllib` is not installed. | |
2 | -- Code released under Unlicense <http://unlicense.org>. | |
3 | ||
4 | -- Get the latest version of this file at: | |
5 | -- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua | |
6 | ||
7 | local function format(str, ...) | |
8 | local args = { ... } | |
9 | local function repl(escape, open, num, close) | |
10 | if escape == "" then | |
11 | local replacement = tostring(args[tonumber(num)]) | |
12 | if open == "" then | |
13 | replacement = replacement..close | |
14 | end | |
15 | return replacement | |
16 | else | |
17 | return "@"..open..num..close | |
18 | end | |
19 | end | |
20 | return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl)) | |
21 | end | |
22 | ||
23 | local gettext, ngettext | |
24 | if minetest.get_modpath("intllib") then | |
25 | if intllib.make_gettext_pair then | |
26 | -- New method using gettext. | |
27 | gettext, ngettext = intllib.make_gettext_pair() | |
28 | else | |
29 | -- Old method using text files. | |
30 | gettext = intllib.Getter() | |
31 | end | |
32 | end | |
33 | ||
34 | -- Fill in missing functions. | |
35 | ||
36 | gettext = gettext or function(msgid, ...) | |
37 | return format(msgid, ...) | |
38 | end | |
39 | ||
40 | ngettext = ngettext or function(msgid, msgid_plural, n, ...) | |
41 | return format(n==1 and msgid or msgid_plural, ...) | |
42 | end | |
43 | ||
44 | return gettext, ngettext |
0 | # SOME DESCRIPTIVE TITLE. | |
1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PACKAGE package. | |
3 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
4 | # | |
5 | msgid "" | |
6 | msgstr "" | |
7 | "Project-Id-Version: \n" | |
8 | "Report-Msgid-Bugs-To: \n" | |
9 | "POT-Creation-Date: 2017-08-06 18:20+0200\n" | |
10 | "PO-Revision-Date: 2017-08-06 18:20+0200\n" | |
11 | "Last-Translator: fat115 <fat115@framasoft.org>\n" | |
12 | "Language-Team: \n" | |
13 | "Language: fr\n" | |
14 | "MIME-Version: 1.0\n" | |
15 | "Content-Type: text/plain; charset=UTF-8\n" | |
16 | "Content-Transfer-Encoding: 8bit\n" | |
17 | "X-Generator: Poedit 1.8.12\n" | |
18 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" | |
19 | ||
20 | #: ../3d_armor/api.lua | |
21 | msgid "3d_armor: Player name is nil @1" | |
22 | msgstr "3d_armor : Nom du joueur non trouvé @1" | |
23 | ||
24 | #: ../3d_armor/api.lua | |
25 | msgid "3d_armor: Player inventory is nil @1" | |
26 | msgstr "3d_armor : Inventaire du joueur non trouvé @1" | |
27 | ||
28 | #: ../3d_armor/api.lua | |
29 | msgid "3d_armor: Detached armor inventory is nil @1" | |
30 | msgstr "3d_armor : Inventaire détaché pour l'armure non trouvé @1" | |
31 | ||
32 | #: ../3d_armor/api.lua | |
33 | msgid "3d_armor: Player reference is nil @1" | |
34 | msgstr "3d_armor : Référence au joueur non trouvée @1" | |
35 | ||
36 | #: ../3d_armor/armor.lua | |
37 | msgid "Admin Helmet" | |
38 | msgstr "Casque d'admin" | |
39 | ||
40 | #: ../3d_armor/armor.lua | |
41 | msgid "Admin Chestplate" | |
42 | msgstr "Cuirasse d'admin" | |
43 | ||
44 | #: ../3d_armor/armor.lua | |
45 | msgid "Admin Leggings" | |
46 | msgstr "Jambières d'admin" | |
47 | ||
48 | #: ../3d_armor/armor.lua | |
49 | msgid "Admin Boots" | |
50 | msgstr "Bottes d'admin" | |
51 | ||
52 | #: ../3d_armor/armor.lua | |
53 | msgid "Wood Helmet" | |
54 | msgstr "Casque en bois" | |
55 | ||
56 | #: ../3d_armor/armor.lua | |
57 | msgid "Wood Chestplate" | |
58 | msgstr "Cuirasse en bois" | |
59 | ||
60 | #: ../3d_armor/armor.lua | |
61 | msgid "Wood Leggings" | |
62 | msgstr "Jambières en bois" | |
63 | ||
64 | #: ../3d_armor/armor.lua | |
65 | msgid "Wood Boots" | |
66 | msgstr "Bottes en bois" | |
67 | ||
68 | #: ../3d_armor/armor.lua | |
69 | msgid "Cactus Helmet" | |
70 | msgstr "Casque en cactus" | |
71 | ||
72 | #: ../3d_armor/armor.lua | |
73 | msgid "Cactus Chestplate" | |
74 | msgstr "Cuirasse en cactus" | |
75 | ||
76 | #: ../3d_armor/armor.lua | |
77 | msgid "Cactus Leggings" | |
78 | msgstr "Jambières en cactus" | |
79 | ||
80 | #: ../3d_armor/armor.lua | |
81 | msgid "Cactus Boots" | |
82 | msgstr "Bottes en cactus" | |
83 | ||
84 | #: ../3d_armor/armor.lua | |
85 | msgid "Steel Helmet" | |
86 | msgstr "Casque en acier" | |
87 | ||
88 | #: ../3d_armor/armor.lua | |
89 | msgid "Steel Chestplate" | |
90 | msgstr " = Cuirasse en acier" | |
91 | ||
92 | #: ../3d_armor/armor.lua | |
93 | msgid "Steel Leggings" | |
94 | msgstr "Jambières en acier" | |
95 | ||
96 | #: ../3d_armor/armor.lua | |
97 | msgid "Steel Boots" | |
98 | msgstr "Bottes en acier" | |
99 | ||
100 | #: ../3d_armor/armor.lua | |
101 | msgid "Bronze Helmet" | |
102 | msgstr "Casque en bronze" | |
103 | ||
104 | #: ../3d_armor/armor.lua | |
105 | msgid "Bronze Chestplate" | |
106 | msgstr "Cuirasse en bronze" | |
107 | ||
108 | #: ../3d_armor/armor.lua | |
109 | msgid "Bronze Leggings" | |
110 | msgstr "Jambières en bronze" | |
111 | ||
112 | #: ../3d_armor/armor.lua | |
113 | msgid "Bronze Boots" | |
114 | msgstr "Bottes en bronze" | |
115 | ||
116 | #: ../3d_armor/armor.lua | |
117 | msgid "Diamond Helmet" | |
118 | msgstr "Casque en diamant" | |
119 | ||
120 | #: ../3d_armor/armor.lua | |
121 | msgid "Diamond Chestplate" | |
122 | msgstr "Cuirasse en diamant" | |
123 | ||
124 | #: ../3d_armor/armor.lua | |
125 | msgid "Diamond Leggings" | |
126 | msgstr "Jambières en diamant" | |
127 | ||
128 | #: ../3d_armor/armor.lua | |
129 | msgid "Diamond Boots" | |
130 | msgstr "Bottes en diamant" | |
131 | ||
132 | #: ../3d_armor/armor.lua | |
133 | msgid "Gold Helmet" | |
134 | msgstr "Casque en or" | |
135 | ||
136 | #: ../3d_armor/armor.lua | |
137 | msgid "Gold Chestplate" | |
138 | msgstr "Cuirasse en or" | |
139 | ||
140 | #: ../3d_armor/armor.lua | |
141 | msgid "Gold Leggings" | |
142 | msgstr "Jambières en or" | |
143 | ||
144 | #: ../3d_armor/armor.lua | |
145 | msgid "Gold Boots" | |
146 | msgstr "Bottes en or" | |
147 | ||
148 | #: ../3d_armor/armor.lua | |
149 | msgid "Mithril Helmet" | |
150 | msgstr "Casque en mithril" | |
151 | ||
152 | #: ../3d_armor/armor.lua | |
153 | msgid "Mithril Chestplate" | |
154 | msgstr "Cuirasse en mithril" | |
155 | ||
156 | #: ../3d_armor/armor.lua | |
157 | msgid "Mithril Leggings" | |
158 | msgstr "Jambières en mithril" | |
159 | ||
160 | #: ../3d_armor/armor.lua | |
161 | msgid "Mithril Boots" | |
162 | msgstr "Bottes en mithril" | |
163 | ||
164 | #: ../3d_armor/armor.lua | |
165 | msgid "Crystal Helmet" | |
166 | msgstr "Casque en cristal" | |
167 | ||
168 | #: ../3d_armor/armor.lua | |
169 | msgid "Crystal Chestplate" | |
170 | msgstr "Cuirasse en cristal" | |
171 | ||
172 | #: ../3d_armor/armor.lua | |
173 | msgid "Crystal Leggings" | |
174 | msgstr "Jambières en cristal" | |
175 | ||
176 | #: ../3d_armor/armor.lua | |
177 | msgid "Crystal Boots" | |
178 | msgstr "Bottes en cristal" | |
179 | ||
180 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
181 | msgid "Radiation" | |
182 | msgstr "Radiation" | |
183 | ||
184 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
185 | msgid "Level" | |
186 | msgstr "Niveau" | |
187 | ||
188 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
189 | msgid "Heal" | |
190 | msgstr "Soins" | |
191 | ||
192 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
193 | msgid "Fire" | |
194 | msgstr "Fire" | |
195 | ||
196 | #: ../3d_armor/init.lua | |
197 | msgid "Your @1 got destroyed!" | |
198 | msgstr "Une partie de votre armure a été détruite : @1 !" | |
199 | ||
200 | #: ../3d_armor/init.lua | |
201 | msgid "3d_armor: Failed to initialize player" | |
202 | msgstr "3d_armor : Impossible d'initialiser le joueur" | |
203 | ||
204 | #: ../3d_armor/init.lua | |
205 | msgid "[3d_armor] Fire Nodes disabled" | |
206 | msgstr "[3d_armor] Noeuds de type feu désactivés" | |
207 | ||
208 | #: ../3d_armor_ip/init.lua | |
209 | msgid "3d_armor_ip: Mod loaded but unused." | |
210 | msgstr "3d_armor_ip : Mod chargé mais inutilisé." | |
211 | ||
212 | #: ../3d_armor_ip/init.lua | |
213 | msgid "Back" | |
214 | msgstr "Retour" | |
215 | ||
216 | #: ../3d_armor_ip/init.lua ../3d_armor_sfinv/init.lua ../3d_armor_ui/init.lua | |
217 | msgid "Armor" | |
218 | msgstr "Armure" | |
219 | ||
220 | #: ../3d_armor_sfinv/init.lua | |
221 | msgid "3d_armor_sfinv: Mod loaded but unused." | |
222 | msgstr "3d_armor_sfinv : Mod chargé mais inutilisé." | |
223 | ||
224 | #: ../3d_armor_stand/init.lua | |
225 | msgid "Armor stand top" | |
226 | msgstr "Haut de support d'armure" | |
227 | ||
228 | #: ../3d_armor_stand/init.lua | |
229 | msgid "Armor stand" | |
230 | msgstr "Support d'armure" | |
231 | ||
232 | #: ../3d_armor_stand/init.lua | |
233 | msgid "Armor Stand" | |
234 | msgstr "Support d'armure" | |
235 | ||
236 | #: ../3d_armor_stand/init.lua | |
237 | msgid "Locked Armor stand" | |
238 | msgstr "Support d'armure verrouillé" | |
239 | ||
240 | #: ../3d_armor_stand/init.lua | |
241 | msgid "Armor Stand (owned by @1)" | |
242 | msgstr "Support d'armure (propriété de @1)" | |
243 | ||
244 | #: ../3d_armor_ui/init.lua | |
245 | msgid "3d_armor_ui: Mod loaded but unused." | |
246 | msgstr "3d_armor_ui : Mod chargé mais inutilisé." | |
247 | ||
248 | #: ../3d_armor_ui/init.lua | |
249 | msgid "3d Armor" | |
250 | msgstr "Armure 3d" | |
251 | ||
252 | #: ../3d_armor_ui/init.lua | |
253 | msgid "Armor not initialized!" | |
254 | msgstr "Armure non initialisée !" | |
255 | ||
256 | #: ../hazmat_suit/init.lua | |
257 | msgid "hazmat_suit: Mod loaded but unused." | |
258 | msgstr "hazmat_suit : Mod chargé mais non utilisé." | |
259 | ||
260 | #: ../hazmat_suit/init.lua | |
261 | msgid "Hazmat Helmet" | |
262 | msgstr "Casque 'Hazmat'" | |
263 | ||
264 | #: ../hazmat_suit/init.lua | |
265 | msgid "Hazmat Chestplate" | |
266 | msgstr "Cuirasse 'Hazmat'" | |
267 | ||
268 | #: ../hazmat_suit/init.lua | |
269 | msgid "Hazmat Sleeve" | |
270 | msgstr "Manches 'Hazmat'" | |
271 | ||
272 | #: ../hazmat_suit/init.lua | |
273 | msgid "Hazmat Leggins" | |
274 | msgstr "Jambières 'Hazmat'" | |
275 | ||
276 | #: ../hazmat_suit/init.lua | |
277 | msgid "Hazmat Boots" | |
278 | msgstr "Bottes 'Hazmat'" | |
279 | ||
280 | #: ../hazmat_suit/init.lua | |
281 | msgid "Hazmat Suit" | |
282 | msgstr "Combinaison 'Hazmat'" | |
283 | ||
284 | #: ../shields/init.lua | |
285 | msgid "Admin Shield" | |
286 | msgstr "Bouclier d'admin" | |
287 | ||
288 | #: ../shields/init.lua | |
289 | msgid "Wooden Shield" | |
290 | msgstr "Bouclier en bois" | |
291 | ||
292 | #: ../shields/init.lua | |
293 | msgid "Enhanced Wood Shield" | |
294 | msgstr "Bouclier en bois amélioré" | |
295 | ||
296 | #: ../shields/init.lua | |
297 | msgid "Cactus Shield" | |
298 | msgstr "Bouclier en cactus" | |
299 | ||
300 | #: ../shields/init.lua | |
301 | msgid "Enhanced Cactus Shield" | |
302 | msgstr "Bouclier en cactus amélioré" | |
303 | ||
304 | #: ../shields/init.lua | |
305 | msgid "Steel Shield" | |
306 | msgstr "Bouclier en acier" | |
307 | ||
308 | #: ../shields/init.lua | |
309 | msgid "Bronze Shield" | |
310 | msgstr "Bouclier en bronze" | |
311 | ||
312 | #: ../shields/init.lua | |
313 | msgid "Diamond Shield" | |
314 | msgstr "Bouclier en diamant" | |
315 | ||
316 | #: ../shields/init.lua | |
317 | msgid "Gold Shield" | |
318 | msgstr "Bouclier en or" | |
319 | ||
320 | #: ../shields/init.lua | |
321 | msgid "Mithril Shield" | |
322 | msgstr "Bouclier en mithril" | |
323 | ||
324 | #: ../shields/init.lua | |
325 | msgid "Crystal Shield" | |
326 | msgstr "Bouclier en cristal" | |
327 | ||
328 | #: ../technic_armor/init.lua | |
329 | msgid "technic_armor: Mod loaded but unused." | |
330 | msgstr "technic_armor : Mod chargé mais non utilisé." | |
331 | ||
332 | #: ../technic_armor/init.lua | |
333 | msgid "Lead" | |
334 | msgstr "plomb" | |
335 | ||
336 | #: ../technic_armor/init.lua | |
337 | msgid "Brass" | |
338 | msgstr "laiton" | |
339 | ||
340 | #: ../technic_armor/init.lua | |
341 | msgid "Cast Iron" | |
342 | msgstr "fonte" | |
343 | ||
344 | #: ../technic_armor/init.lua | |
345 | msgid "Carbon Steel" | |
346 | msgstr "acier au carbone" | |
347 | ||
348 | #: ../technic_armor/init.lua | |
349 | msgid "Stainless Steel" | |
350 | msgstr "acier inoxydable" | |
351 | ||
352 | #: ../technic_armor/init.lua | |
353 | msgid "Tin" | |
354 | msgstr "étain" | |
355 | ||
356 | #: ../technic_armor/init.lua | |
357 | msgid "Silver" | |
358 | msgstr "argent" | |
359 | ||
360 | #: ../technic_armor/init.lua | |
361 | msgid "Helmet" | |
362 | msgstr "Casque" | |
363 | ||
364 | #: ../technic_armor/init.lua | |
365 | msgid "Chestplate" | |
366 | msgstr "Cuirasse" | |
367 | ||
368 | #: ../technic_armor/init.lua | |
369 | msgid "Leggings" | |
370 | msgstr "Jambières" | |
371 | ||
372 | #: ../technic_armor/init.lua | |
373 | msgid "Boots" | |
374 | msgstr "Bottes" | |
375 | ||
376 | #: ../technic_armor/init.lua | |
377 | msgid "Shield" | |
378 | msgstr "Bouclier" | |
379 | ||
380 | #. Translators: @1 stands for material and @2 for part of the armor, so that you could use a conjunction if in your language part name comes first then material (e.g. in french 'Silver Boots' is translated in 'Bottes en argent' by using '@2 en @1' as translated string) | |
381 | #: ../technic_armor/init.lua | |
382 | msgid "@1 @2" | |
383 | msgstr "@2 en @1" |
0 | # ITALIAN LOCALE FILE FOR THE 3D ARMOR MODULE | |
1 | # Copyright (C) 2012-2017 Stuart Jones | |
2 | # This file is distributed under the same license as the 3D ARMOR package. | |
3 | # Hamlet <h4mlet@riseup.net>, 2017. | |
4 | # | |
5 | msgid "" | |
6 | msgstr "" | |
7 | "Project-Id-Version: Italian localization file for the 3D Armor module\n" | |
8 | "Report-Msgid-Bugs-To: \n" | |
9 | "POT-Creation-Date: 2017-08-06 18:20+0200\n" | |
10 | "PO-Revision-Date: 2017-08-18 00:36+0100\n" | |
11 | "Last-Translator: H4mlet <h4mlet@riseup.net>\n" | |
12 | "Language-Team: ITALIANO\n" | |
13 | "Language: it\n" | |
14 | "MIME-Version: 1.0\n" | |
15 | "Content-Type: text/plain; charset=UTF-8\n" | |
16 | "Content-Transfer-Encoding: 8bit\n" | |
17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" | |
18 | "X-Generator: Poedit 1.6.10\n" | |
19 | ||
20 | #: ../3d_armor/api.lua | |
21 | msgid "3d_armor: Player name is nil @1" | |
22 | msgstr "3d_armor: Il nome della/del gicatrice/tore è nullo @1" | |
23 | ||
24 | #: ../3d_armor/api.lua | |
25 | msgid "3d_armor: Player inventory is nil @1" | |
26 | msgstr "3d_armor: L'inventario della/del giocatrice/tore è nullo @1" | |
27 | ||
28 | #: ../3d_armor/api.lua | |
29 | msgid "3d_armor: Detached armor inventory is nil @1" | |
30 | msgstr "3d_armor: L'inventario staccato dell'armatura è nullo @1" | |
31 | ||
32 | #: ../3d_armor/api.lua | |
33 | msgid "3d_armor: Player reference is nil @1" | |
34 | msgstr "3d_armor: Il riferimento alla/al giocatrice/tore è nullo @1" | |
35 | ||
36 | #: ../3d_armor/armor.lua | |
37 | msgid "Admin Helmet" | |
38 | msgstr "Elmo dell'amministratrice/tore" | |
39 | ||
40 | #: ../3d_armor/armor.lua | |
41 | msgid "Admin Chestplate" | |
42 | msgstr "Corazza dell'amministratrice/tore" | |
43 | ||
44 | #: ../3d_armor/armor.lua | |
45 | msgid "Admin Leggings" | |
46 | msgstr "Gambali dell'amministratrice/tore" | |
47 | ||
48 | #: ../3d_armor/armor.lua | |
49 | msgid "Admin Boots" | |
50 | msgstr "Stivali dell'amministratrice/tore" | |
51 | ||
52 | #: ../3d_armor/armor.lua | |
53 | msgid "Wood Helmet" | |
54 | msgstr "Elmo di legno" | |
55 | ||
56 | #: ../3d_armor/armor.lua | |
57 | msgid "Wood Chestplate" | |
58 | msgstr "Corazza di legno" | |
59 | ||
60 | #: ../3d_armor/armor.lua | |
61 | msgid "Wood Leggings" | |
62 | msgstr "Gambali di legno" | |
63 | ||
64 | #: ../3d_armor/armor.lua | |
65 | msgid "Wood Boots" | |
66 | msgstr "Stivali di legno" | |
67 | ||
68 | #: ../3d_armor/armor.lua | |
69 | msgid "Cactus Helmet" | |
70 | msgstr "Elmo di cactus" | |
71 | ||
72 | #: ../3d_armor/armor.lua | |
73 | msgid "Cactus Chestplate" | |
74 | msgstr "Corazza di cactus" | |
75 | ||
76 | #: ../3d_armor/armor.lua | |
77 | msgid "Cactus Leggings" | |
78 | msgstr "Gambali di cactus" | |
79 | ||
80 | #: ../3d_armor/armor.lua | |
81 | msgid "Cactus Boots" | |
82 | msgstr "Stivali di cactus" | |
83 | ||
84 | #: ../3d_armor/armor.lua | |
85 | msgid "Steel Helmet" | |
86 | msgstr "Elmo di acciaio" | |
87 | ||
88 | #: ../3d_armor/armor.lua | |
89 | msgid "Steel Chestplate" | |
90 | msgstr "Corazza di acciaio" | |
91 | ||
92 | #: ../3d_armor/armor.lua | |
93 | msgid "Steel Leggings" | |
94 | msgstr "Gambali di acciaio" | |
95 | ||
96 | #: ../3d_armor/armor.lua | |
97 | msgid "Steel Boots" | |
98 | msgstr "Stivali di acciaio" | |
99 | ||
100 | #: ../3d_armor/armor.lua | |
101 | msgid "Bronze Helmet" | |
102 | msgstr "Elmo di bronzo" | |
103 | ||
104 | #: ../3d_armor/armor.lua | |
105 | msgid "Bronze Chestplate" | |
106 | msgstr "Corazza di bronzo" | |
107 | ||
108 | #: ../3d_armor/armor.lua | |
109 | msgid "Bronze Leggings" | |
110 | msgstr "Gambali di bronzo" | |
111 | ||
112 | #: ../3d_armor/armor.lua | |
113 | msgid "Bronze Boots" | |
114 | msgstr "Stivali di bronzo" | |
115 | ||
116 | #: ../3d_armor/armor.lua | |
117 | msgid "Diamond Helmet" | |
118 | msgstr "Elmo di diamante" | |
119 | ||
120 | #: ../3d_armor/armor.lua | |
121 | msgid "Diamond Chestplate" | |
122 | msgstr "Corazza di diamante" | |
123 | ||
124 | #: ../3d_armor/armor.lua | |
125 | msgid "Diamond Leggings" | |
126 | msgstr "Gambali di diamante" | |
127 | ||
128 | #: ../3d_armor/armor.lua | |
129 | msgid "Diamond Boots" | |
130 | msgstr "Stivali di diamante" | |
131 | ||
132 | #: ../3d_armor/armor.lua | |
133 | msgid "Gold Helmet" | |
134 | msgstr "Elmo d'oro" | |
135 | ||
136 | #: ../3d_armor/armor.lua | |
137 | msgid "Gold Chestplate" | |
138 | msgstr "Corazza d'oro" | |
139 | ||
140 | #: ../3d_armor/armor.lua | |
141 | msgid "Gold Leggings" | |
142 | msgstr "Gambali d'oro" | |
143 | ||
144 | #: ../3d_armor/armor.lua | |
145 | msgid "Gold Boots" | |
146 | msgstr "Stivali d'oro" | |
147 | ||
148 | #: ../3d_armor/armor.lua | |
149 | msgid "Mithril Helmet" | |
150 | msgstr "Elmo di mithril" | |
151 | ||
152 | #: ../3d_armor/armor.lua | |
153 | msgid "Mithril Chestplate" | |
154 | msgstr "Corazza di mithril" | |
155 | ||
156 | #: ../3d_armor/armor.lua | |
157 | msgid "Mithril Leggings" | |
158 | msgstr "Gambali di mithril" | |
159 | ||
160 | #: ../3d_armor/armor.lua | |
161 | msgid "Mithril Boots" | |
162 | msgstr "Stivali di mithril" | |
163 | ||
164 | #: ../3d_armor/armor.lua | |
165 | msgid "Crystal Helmet" | |
166 | msgstr "Elmo di cristallo" | |
167 | ||
168 | #: ../3d_armor/armor.lua | |
169 | msgid "Crystal Chestplate" | |
170 | msgstr "Corazza di cristallo" | |
171 | ||
172 | #: ../3d_armor/armor.lua | |
173 | msgid "Crystal Leggings" | |
174 | msgstr "Gambali di cristallo" | |
175 | ||
176 | #: ../3d_armor/armor.lua | |
177 | msgid "Crystal Boots" | |
178 | msgstr "Stivali di cristallo" | |
179 | ||
180 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
181 | msgid "Radiation" | |
182 | msgstr "Radiazione" | |
183 | ||
184 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
185 | msgid "Level" | |
186 | msgstr "Livello" | |
187 | ||
188 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
189 | msgid "Heal" | |
190 | msgstr "Guarigione" | |
191 | ||
192 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
193 | msgid "Fire" | |
194 | msgstr "Fuoco" | |
195 | ||
196 | #: ../3d_armor/init.lua | |
197 | msgid "Your @1 got destroyed!" | |
198 | msgstr "Il/i vostro/i @1 è/sono stato/i distrutto/i!" | |
199 | ||
200 | #: ../3d_armor/init.lua | |
201 | msgid "3d_armor: Failed to initialize player" | |
202 | msgstr "3d_armor: Inizializzazione della/del giocatrice/tore fallita" | |
203 | ||
204 | #: ../3d_armor/init.lua | |
205 | msgid "[3d_armor] Fire Nodes disabled" | |
206 | msgstr "[3d_armor] Nodi fuoco disabilitati" | |
207 | ||
208 | #: ../3d_armor_ip/init.lua | |
209 | msgid "3d_armor_ip: Mod loaded but unused." | |
210 | msgstr "3d_armor_ip: Mod caricato ma inutilizzato." | |
211 | ||
212 | #: ../3d_armor_ip/init.lua | |
213 | msgid "Back" | |
214 | msgstr "Indietro" | |
215 | ||
216 | #: ../3d_armor_ip/init.lua ../3d_armor_sfinv/init.lua ../3d_armor_ui/init.lua | |
217 | msgid "Armor" | |
218 | msgstr "Armatura" | |
219 | ||
220 | #: ../3d_armor_sfinv/init.lua | |
221 | msgid "3d_armor_sfinv: Mod loaded but unused." | |
222 | msgstr "3d_armor_sfinv: Mod caricato ma inutilizzato." | |
223 | ||
224 | #: ../3d_armor_stand/init.lua | |
225 | msgid "Armor stand top" | |
226 | msgstr "Parte superiore del supporto per armatura" | |
227 | ||
228 | #: ../3d_armor_stand/init.lua | |
229 | msgid "Armor stand" | |
230 | msgstr "Supporto per armatura" | |
231 | ||
232 | #: ../3d_armor_stand/init.lua | |
233 | msgid "Armor Stand" | |
234 | msgstr "Supporto per armatura" | |
235 | ||
236 | #: ../3d_armor_stand/init.lua | |
237 | msgid "Locked Armor stand" | |
238 | msgstr "Supporto per armatura chiuso a chiave" | |
239 | ||
240 | #: ../3d_armor_stand/init.lua | |
241 | msgid "Armor Stand (owned by @1)" | |
242 | msgstr "Supporto per armatura (di proprietà di @1)" | |
243 | ||
244 | #: ../3d_armor_ui/init.lua | |
245 | msgid "3d_armor_ui: Mod loaded but unused." | |
246 | msgstr "3d_armor_ui: Mod caricato ma inutilizzato." | |
247 | ||
248 | #: ../3d_armor_ui/init.lua | |
249 | msgid "3d Armor" | |
250 | msgstr "Armatura 3D" | |
251 | ||
252 | #: ../3d_armor_ui/init.lua | |
253 | msgid "Armor not initialized!" | |
254 | msgstr "Armatura non inizializzata!" | |
255 | ||
256 | #: ../hazmat_suit/init.lua | |
257 | msgid "hazmat_suit: Mod loaded but unused." | |
258 | msgstr "hazmat_suit: Mod caricato ma inutilizzato." | |
259 | ||
260 | #: ../hazmat_suit/init.lua | |
261 | msgid "Hazmat Helmet" | |
262 | msgstr "Elmo hazmat" | |
263 | ||
264 | #: ../hazmat_suit/init.lua | |
265 | msgid "Hazmat Chestplate" | |
266 | msgstr "Corazza hazmat" | |
267 | ||
268 | #: ../hazmat_suit/init.lua | |
269 | msgid "Hazmat Sleeve" | |
270 | msgstr "Manica hazmat" | |
271 | ||
272 | #: ../hazmat_suit/init.lua | |
273 | msgid "Hazmat Leggins" | |
274 | msgstr "Gambali hazmat" | |
275 | ||
276 | #: ../hazmat_suit/init.lua | |
277 | msgid "Hazmat Boots" | |
278 | msgstr "Stivali hazmat" | |
279 | ||
280 | #: ../hazmat_suit/init.lua | |
281 | msgid "Hazmat Suit" | |
282 | msgstr "Completo hazmat" | |
283 | ||
284 | #: ../shields/init.lua | |
285 | msgid "Admin Shield" | |
286 | msgstr "Scudo dell'amministratrice/tore" | |
287 | ||
288 | #: ../shields/init.lua | |
289 | msgid "Wooden Shield" | |
290 | msgstr "Scudo di legno" | |
291 | ||
292 | #: ../shields/init.lua | |
293 | msgid "Enhanced Wood Shield" | |
294 | msgstr "Scudo di legno migliorato" | |
295 | ||
296 | #: ../shields/init.lua | |
297 | msgid "Cactus Shield" | |
298 | msgstr "Scudo di cactus" | |
299 | ||
300 | #: ../shields/init.lua | |
301 | msgid "Enhanced Cactus Shield" | |
302 | msgstr "Scudo di cactus migliorato" | |
303 | ||
304 | #: ../shields/init.lua | |
305 | msgid "Steel Shield" | |
306 | msgstr "Scudo di acciaio" | |
307 | ||
308 | #: ../shields/init.lua | |
309 | msgid "Bronze Shield" | |
310 | msgstr "Scudo di bronzo" | |
311 | ||
312 | #: ../shields/init.lua | |
313 | msgid "Diamond Shield" | |
314 | msgstr "Scudo di diamante" | |
315 | ||
316 | #: ../shields/init.lua | |
317 | msgid "Gold Shield" | |
318 | msgstr "Scudo d'oro" | |
319 | ||
320 | #: ../shields/init.lua | |
321 | msgid "Mithril Shield" | |
322 | msgstr "Scudo di mithril" | |
323 | ||
324 | #: ../shields/init.lua | |
325 | msgid "Crystal Shield" | |
326 | msgstr "Scudo di cristallo" | |
327 | ||
328 | #: ../technic_armor/init.lua | |
329 | msgid "technic_armor: Mod loaded but unused." | |
330 | msgstr "technic_armor: Mod caricato ma inutilizzato." | |
331 | ||
332 | #: ../technic_armor/init.lua | |
333 | msgid "Lead" | |
334 | msgstr "Piombo" | |
335 | ||
336 | #: ../technic_armor/init.lua | |
337 | msgid "Brass" | |
338 | msgstr "Ottone" | |
339 | ||
340 | #: ../technic_armor/init.lua | |
341 | msgid "Cast Iron" | |
342 | msgstr "Ghisa" | |
343 | ||
344 | #: ../technic_armor/init.lua | |
345 | msgid "Carbon Steel" | |
346 | msgstr "Acciaio al carbonio" | |
347 | ||
348 | #: ../technic_armor/init.lua | |
349 | msgid "Stainless Steel" | |
350 | msgstr "Acciaio inossidabile" | |
351 | ||
352 | #: ../technic_armor/init.lua | |
353 | msgid "Tin" | |
354 | msgstr "Stagno" | |
355 | ||
356 | #: ../technic_armor/init.lua | |
357 | msgid "Silver" | |
358 | msgstr "Argento" | |
359 | ||
360 | #: ../technic_armor/init.lua | |
361 | msgid "Helmet" | |
362 | msgstr "Elmo" | |
363 | ||
364 | #: ../technic_armor/init.lua | |
365 | msgid "Chestplate" | |
366 | msgstr "Corazza" | |
367 | ||
368 | #: ../technic_armor/init.lua | |
369 | msgid "Leggings" | |
370 | msgstr "Gambali" | |
371 | ||
372 | #: ../technic_armor/init.lua | |
373 | msgid "Boots" | |
374 | msgstr "Stivali" | |
375 | ||
376 | #: ../technic_armor/init.lua | |
377 | msgid "Shield" | |
378 | msgstr "Scudo" | |
379 | ||
380 | #. Translators: @1 stands for material and @2 for part of the armor, so that you could use a conjunction if in your language part name comes first then material (e.g. in french 'Silver Boots' is translated in 'Bottes en argent' by using '@2 en @1' as translated string) | |
381 | #: ../technic_armor/init.lua | |
382 | msgid "@1 @2" | |
383 | msgstr "@2 di @1" |
0 | # SOME DESCRIPTIVE TITLE. | |
1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PACKAGE package. | |
3 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
4 | # | |
5 | #, fuzzy | |
6 | msgid "" | |
7 | msgstr "" | |
8 | "Project-Id-Version: PACKAGE VERSION\n" | |
9 | "Report-Msgid-Bugs-To: \n" | |
10 | "POT-Creation-Date: 2017-08-06 18:20+0200\n" | |
11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | |
12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
13 | "Language-Team: LANGUAGE <LL@li.org>\n" | |
14 | "Language: \n" | |
15 | "MIME-Version: 1.0\n" | |
16 | "Content-Type: text/plain; charset=CHARSET\n" | |
17 | "Content-Transfer-Encoding: 8bit\n" | |
18 | ||
19 | #: ../3d_armor/api.lua | |
20 | msgid "3d_armor: Player name is nil @1" | |
21 | msgstr "" | |
22 | ||
23 | #: ../3d_armor/api.lua | |
24 | msgid "3d_armor: Player inventory is nil @1" | |
25 | msgstr "" | |
26 | ||
27 | #: ../3d_armor/api.lua | |
28 | msgid "3d_armor: Detached armor inventory is nil @1" | |
29 | msgstr "" | |
30 | ||
31 | #: ../3d_armor/api.lua | |
32 | msgid "3d_armor: Player reference is nil @1" | |
33 | msgstr "" | |
34 | ||
35 | #: ../3d_armor/armor.lua | |
36 | msgid "Admin Helmet" | |
37 | msgstr "" | |
38 | ||
39 | #: ../3d_armor/armor.lua | |
40 | msgid "Admin Chestplate" | |
41 | msgstr "" | |
42 | ||
43 | #: ../3d_armor/armor.lua | |
44 | msgid "Admin Leggings" | |
45 | msgstr "" | |
46 | ||
47 | #: ../3d_armor/armor.lua | |
48 | msgid "Admin Boots" | |
49 | msgstr "" | |
50 | ||
51 | #: ../3d_armor/armor.lua | |
52 | msgid "Wood Helmet" | |
53 | msgstr "" | |
54 | ||
55 | #: ../3d_armor/armor.lua | |
56 | msgid "Wood Chestplate" | |
57 | msgstr "" | |
58 | ||
59 | #: ../3d_armor/armor.lua | |
60 | msgid "Wood Leggings" | |
61 | msgstr "" | |
62 | ||
63 | #: ../3d_armor/armor.lua | |
64 | msgid "Wood Boots" | |
65 | msgstr "" | |
66 | ||
67 | #: ../3d_armor/armor.lua | |
68 | msgid "Cactus Helmet" | |
69 | msgstr "" | |
70 | ||
71 | #: ../3d_armor/armor.lua | |
72 | msgid "Cactus Chestplate" | |
73 | msgstr "" | |
74 | ||
75 | #: ../3d_armor/armor.lua | |
76 | msgid "Cactus Leggings" | |
77 | msgstr "" | |
78 | ||
79 | #: ../3d_armor/armor.lua | |
80 | msgid "Cactus Boots" | |
81 | msgstr "" | |
82 | ||
83 | #: ../3d_armor/armor.lua | |
84 | msgid "Steel Helmet" | |
85 | msgstr "" | |
86 | ||
87 | #: ../3d_armor/armor.lua | |
88 | msgid "Steel Chestplate" | |
89 | msgstr "" | |
90 | ||
91 | #: ../3d_armor/armor.lua | |
92 | msgid "Steel Leggings" | |
93 | msgstr "" | |
94 | ||
95 | #: ../3d_armor/armor.lua | |
96 | msgid "Steel Boots" | |
97 | msgstr "" | |
98 | ||
99 | #: ../3d_armor/armor.lua | |
100 | msgid "Bronze Helmet" | |
101 | msgstr "" | |
102 | ||
103 | #: ../3d_armor/armor.lua | |
104 | msgid "Bronze Chestplate" | |
105 | msgstr "" | |
106 | ||
107 | #: ../3d_armor/armor.lua | |
108 | msgid "Bronze Leggings" | |
109 | msgstr "" | |
110 | ||
111 | #: ../3d_armor/armor.lua | |
112 | msgid "Bronze Boots" | |
113 | msgstr "" | |
114 | ||
115 | #: ../3d_armor/armor.lua | |
116 | msgid "Diamond Helmet" | |
117 | msgstr "" | |
118 | ||
119 | #: ../3d_armor/armor.lua | |
120 | msgid "Diamond Chestplate" | |
121 | msgstr "" | |
122 | ||
123 | #: ../3d_armor/armor.lua | |
124 | msgid "Diamond Leggings" | |
125 | msgstr "" | |
126 | ||
127 | #: ../3d_armor/armor.lua | |
128 | msgid "Diamond Boots" | |
129 | msgstr "" | |
130 | ||
131 | #: ../3d_armor/armor.lua | |
132 | msgid "Gold Helmet" | |
133 | msgstr "" | |
134 | ||
135 | #: ../3d_armor/armor.lua | |
136 | msgid "Gold Chestplate" | |
137 | msgstr "" | |
138 | ||
139 | #: ../3d_armor/armor.lua | |
140 | msgid "Gold Leggings" | |
141 | msgstr "" | |
142 | ||
143 | #: ../3d_armor/armor.lua | |
144 | msgid "Gold Boots" | |
145 | msgstr "" | |
146 | ||
147 | #: ../3d_armor/armor.lua | |
148 | msgid "Mithril Helmet" | |
149 | msgstr "" | |
150 | ||
151 | #: ../3d_armor/armor.lua | |
152 | msgid "Mithril Chestplate" | |
153 | msgstr "" | |
154 | ||
155 | #: ../3d_armor/armor.lua | |
156 | msgid "Mithril Leggings" | |
157 | msgstr "" | |
158 | ||
159 | #: ../3d_armor/armor.lua | |
160 | msgid "Mithril Boots" | |
161 | msgstr "" | |
162 | ||
163 | #: ../3d_armor/armor.lua | |
164 | msgid "Crystal Helmet" | |
165 | msgstr "" | |
166 | ||
167 | #: ../3d_armor/armor.lua | |
168 | msgid "Crystal Chestplate" | |
169 | msgstr "" | |
170 | ||
171 | #: ../3d_armor/armor.lua | |
172 | msgid "Crystal Leggings" | |
173 | msgstr "" | |
174 | ||
175 | #: ../3d_armor/armor.lua | |
176 | msgid "Crystal Boots" | |
177 | msgstr "" | |
178 | ||
179 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
180 | msgid "Radiation" | |
181 | msgstr "" | |
182 | ||
183 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
184 | msgid "Level" | |
185 | msgstr "" | |
186 | ||
187 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
188 | msgid "Heal" | |
189 | msgstr "" | |
190 | ||
191 | #: ../3d_armor/init.lua ../3d_armor_ui/init.lua | |
192 | msgid "Fire" | |
193 | msgstr "" | |
194 | ||
195 | #: ../3d_armor/init.lua | |
196 | msgid "Your @1 got destroyed!" | |
197 | msgstr "" | |
198 | ||
199 | #: ../3d_armor/init.lua | |
200 | msgid "3d_armor: Failed to initialize player" | |
201 | msgstr "" | |
202 | ||
203 | #: ../3d_armor/init.lua | |
204 | msgid "[3d_armor] Fire Nodes disabled" | |
205 | msgstr "" | |
206 | ||
207 | #: ../3d_armor_ip/init.lua | |
208 | msgid "3d_armor_ip: Mod loaded but unused." | |
209 | msgstr "" | |
210 | ||
211 | #: ../3d_armor_ip/init.lua | |
212 | msgid "Back" | |
213 | msgstr "" | |
214 | ||
215 | #: ../3d_armor_ip/init.lua ../3d_armor_sfinv/init.lua ../3d_armor_ui/init.lua | |
216 | msgid "Armor" | |
217 | msgstr "" | |
218 | ||
219 | #: ../3d_armor_sfinv/init.lua | |
220 | msgid "3d_armor_sfinv: Mod loaded but unused." | |
221 | msgstr "" | |
222 | ||
223 | #: ../3d_armor_stand/init.lua | |
224 | msgid "Armor stand top" | |
225 | msgstr "" | |
226 | ||
227 | #: ../3d_armor_stand/init.lua | |
228 | msgid "Armor stand" | |
229 | msgstr "" | |
230 | ||
231 | #: ../3d_armor_stand/init.lua | |
232 | msgid "Armor Stand" | |
233 | msgstr "" | |
234 | ||
235 | #: ../3d_armor_stand/init.lua | |
236 | msgid "Locked Armor stand" | |
237 | msgstr "" | |
238 | ||
239 | #: ../3d_armor_stand/init.lua | |
240 | msgid "Armor Stand (owned by @1)" | |
241 | msgstr "" | |
242 | ||
243 | #: ../3d_armor_ui/init.lua | |
244 | msgid "3d_armor_ui: Mod loaded but unused." | |
245 | msgstr "" | |
246 | ||
247 | #: ../3d_armor_ui/init.lua | |
248 | msgid "3d Armor" | |
249 | msgstr "" | |
250 | ||
251 | #: ../3d_armor_ui/init.lua | |
252 | msgid "Armor not initialized!" | |
253 | msgstr "" | |
254 | ||
255 | #: ../hazmat_suit/init.lua | |
256 | msgid "hazmat_suit: Mod loaded but unused." | |
257 | msgstr "" | |
258 | ||
259 | #: ../hazmat_suit/init.lua | |
260 | msgid "Hazmat Helmet" | |
261 | msgstr "" | |
262 | ||
263 | #: ../hazmat_suit/init.lua | |
264 | msgid "Hazmat Chestplate" | |
265 | msgstr "" | |
266 | ||
267 | #: ../hazmat_suit/init.lua | |
268 | msgid "Hazmat Sleeve" | |
269 | msgstr "" | |
270 | ||
271 | #: ../hazmat_suit/init.lua | |
272 | msgid "Hazmat Leggins" | |
273 | msgstr "" | |
274 | ||
275 | #: ../hazmat_suit/init.lua | |
276 | msgid "Hazmat Boots" | |
277 | msgstr "" | |
278 | ||
279 | #: ../hazmat_suit/init.lua | |
280 | msgid "Hazmat Suit" | |
281 | msgstr "" | |
282 | ||
283 | #: ../shields/init.lua | |
284 | msgid "Admin Shield" | |
285 | msgstr "" | |
286 | ||
287 | #: ../shields/init.lua | |
288 | msgid "Wooden Shield" | |
289 | msgstr "" | |
290 | ||
291 | #: ../shields/init.lua | |
292 | msgid "Enhanced Wood Shield" | |
293 | msgstr "" | |
294 | ||
295 | #: ../shields/init.lua | |
296 | msgid "Cactus Shield" | |
297 | msgstr "" | |
298 | ||
299 | #: ../shields/init.lua | |
300 | msgid "Enhanced Cactus Shield" | |
301 | msgstr "" | |
302 | ||
303 | #: ../shields/init.lua | |
304 | msgid "Steel Shield" | |
305 | msgstr "" | |
306 | ||
307 | #: ../shields/init.lua | |
308 | msgid "Bronze Shield" | |
309 | msgstr "" | |
310 | ||
311 | #: ../shields/init.lua | |
312 | msgid "Diamond Shield" | |
313 | msgstr "" | |
314 | ||
315 | #: ../shields/init.lua | |
316 | msgid "Gold Shield" | |
317 | msgstr "" | |
318 | ||
319 | #: ../shields/init.lua | |
320 | msgid "Mithril Shield" | |
321 | msgstr "" | |
322 | ||
323 | #: ../shields/init.lua | |
324 | msgid "Crystal Shield" | |
325 | msgstr "" | |
326 | ||
327 | #: ../technic_armor/init.lua | |
328 | msgid "technic_armor: Mod loaded but unused." | |
329 | msgstr "" | |
330 | ||
331 | #: ../technic_armor/init.lua | |
332 | msgid "Lead" | |
333 | msgstr "" | |
334 | ||
335 | #: ../technic_armor/init.lua | |
336 | msgid "Brass" | |
337 | msgstr "" | |
338 | ||
339 | #: ../technic_armor/init.lua | |
340 | msgid "Cast Iron" | |
341 | msgstr "" | |
342 | ||
343 | #: ../technic_armor/init.lua | |
344 | msgid "Carbon Steel" | |
345 | msgstr "" | |
346 | ||
347 | #: ../technic_armor/init.lua | |
348 | msgid "Stainless Steel" | |
349 | msgstr "" | |
350 | ||
351 | #: ../technic_armor/init.lua | |
352 | msgid "Tin" | |
353 | msgstr "" | |
354 | ||
355 | #: ../technic_armor/init.lua | |
356 | msgid "Silver" | |
357 | msgstr "" | |
358 | ||
359 | #: ../technic_armor/init.lua | |
360 | msgid "Helmet" | |
361 | msgstr "" | |
362 | ||
363 | #: ../technic_armor/init.lua | |
364 | msgid "Chestplate" | |
365 | msgstr "" | |
366 | ||
367 | #: ../technic_armor/init.lua | |
368 | msgid "Leggings" | |
369 | msgstr "" | |
370 | ||
371 | #: ../technic_armor/init.lua | |
372 | msgid "Boots" | |
373 | msgstr "" | |
374 | ||
375 | #: ../technic_armor/init.lua | |
376 | msgid "Shield" | |
377 | msgstr "" | |
378 | ||
379 | #. Translators: @1 stands for material and @2 for part of the armor, so that you could use a conjunction if in your language part name comes first then material (e.g. in french 'Silver Boots' is translated in 'Bottes en argent' by using '@2 en @1' as translated string) | |
380 | #: ../technic_armor/init.lua | |
381 | msgid "@1 @2" | |
382 | msgstr "" |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | #! /bin/bash | |
1 | ||
2 | # To create a new translation: | |
3 | # msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot | |
4 | ||
5 | cd "$(dirname "${BASH_SOURCE[0]}")/.."; | |
6 | ||
7 | # Extract translatable strings. | |
8 | xgettext --from-code=UTF-8 \ | |
9 | --language=Lua \ | |
10 | --sort-by-file \ | |
11 | --keyword=S \ | |
12 | --keyword=NS:1,2 \ | |
13 | --keyword=N_ \ | |
14 | --keyword=F \ | |
15 | --add-comments='Translators:' \ | |
16 | --add-location=file \ | |
17 | -o locale/template.pot \ | |
18 | $(find .. -name '*.lua') | |
19 | ||
20 | # Update translations. | |
21 | find locale -name '*.po' | while read -r file; do | |
22 | echo $file | |
23 | msgmerge --update $file locale/template.pot; | |
24 | done |
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | local F = armor_i18n.fgettext | |
3 | ||
0 | 4 | if not minetest.global_exists("inventory_plus") then |
1 | minetest.log("warning", "3d_armor_ip: Mod loaded but unused.") | |
5 | minetest.log("warning", S("3d_armor_ip: Mod loaded but unused.")) | |
2 | 6 | return |
3 | 7 | end |
4 | 8 | |
5 | armor.formspec = "size[8,8.5]button[6,0;2,0.5;main;Back]"..armor.formspec | |
9 | armor.formspec = "size[8,8.5]button[6,0;2,0.5;main;"..F("Back").."]"..armor.formspec | |
6 | 10 | armor:register_on_update(function(player) |
7 | 11 | local name = player:get_player_name() |
8 | 12 | local formspec = armor:get_armor_formspec(name, true) |
18 | 22 | end |
19 | 23 | |
20 | 24 | minetest.register_on_joinplayer(function(player) |
21 | inventory_plus.register_button(player,"armor", "Armor") | |
25 | inventory_plus.register_button(player,"armor", S("Armor")) | |
22 | 26 | end) |
23 | 27 | |
24 | 28 | minetest.register_on_player_receive_fields(function(player, formname, fields) |
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | ||
0 | 3 | if not minetest.global_exists("sfinv") then |
1 | minetest.log("warning", "3d_armor_sfinv: Mod loaded but unused.") | |
4 | minetest.log("warning", S("3d_armor_sfinv: Mod loaded but unused.")) | |
2 | 5 | return |
3 | 6 | end |
4 | 7 | |
5 | 8 | sfinv.register_page("3d_armor:armor", { |
6 | title = "Armor", | |
9 | title = S("Armor"), | |
7 | 10 | get = function(self, player, context) |
8 | 11 | local name = player:get_player_name() |
9 | 12 | local formspec = armor:get_armor_formspec(name, true) |
0 | local S = function(s) return s end | |
1 | if minetest.global_exists("intllib") then | |
2 | S = intllib.Getter() | |
3 | end | |
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | ||
4 | 3 | local armor_stand_formspec = "size[8,7]" .. |
5 | 4 | default.gui_bg .. |
6 | 5 | default.gui_bg_img .. |
165 | 164 | on_construct = function(pos) |
166 | 165 | local meta = minetest.get_meta(pos) |
167 | 166 | meta:set_string("formspec", armor_stand_formspec) |
168 | meta:set_string("infotext", "Armor Stand") | |
167 | meta:set_string("infotext", S("Armor Stand")) | |
169 | 168 | local inv = meta:get_inventory() |
170 | 169 | for _, element in pairs(elements) do |
171 | 170 | inv:set_size("armor_"..element, 1) |
233 | 232 | on_construct = function(pos) |
234 | 233 | local meta = minetest.get_meta(pos) |
235 | 234 | meta:set_string("formspec", armor_stand_formspec) |
236 | meta:set_string("infotext", "Armor Stand") | |
235 | meta:set_string("infotext", S("Armor Stand")) | |
237 | 236 | meta:set_string("owner", "") |
238 | 237 | local inv = meta:get_inventory() |
239 | 238 | for _, element in pairs(elements) do |
254 | 253 | minetest.add_entity(pos, "3d_armor_stand:armor_entity") |
255 | 254 | local meta = minetest.get_meta(pos) |
256 | 255 | meta:set_string("owner", placer:get_player_name() or "") |
257 | meta:set_string("infotext", "Armor Stand (owned by " .. | |
258 | meta:get_string("owner") .. ")") | |
256 | meta:set_string("infotext", S("Armor Stand (owned by @1)", meta:get_string("owner"))) | |
259 | 257 | add_hidden_node(pos, placer) |
260 | 258 | end, |
261 | 259 | allow_metadata_inventory_put = function(pos, listname, index, stack, player) |
337 | 335 | {"3d_armor_stand:armor_stand", "default:steel_ingot"}, |
338 | 336 | } |
339 | 337 | }) |
340 |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | local F = armor_i18n.fgettext | |
3 | ||
0 | 4 | if not minetest.global_exists("unified_inventory") then |
1 | minetest.log("warning", "3d_armor_ui: Mod loaded but unused.") | |
5 | minetest.log("warning", S("3d_armor_ui: Mod loaded but unused.")) | |
2 | 6 | return |
3 | end | |
4 | local S = function(s) return s end | |
5 | if minetest.global_exists("intllib") then | |
6 | S = intllib.Getter() | |
7 | 7 | end |
8 | 8 | |
9 | 9 | if unified_inventory.sfinv_compat_layer then |
20 | 20 | unified_inventory.register_button("armor", { |
21 | 21 | type = "image", |
22 | 22 | image = "inventory_plus_armor.png", |
23 | tooltip = S("3d Armor") | |
23 | 24 | }) |
24 | 25 | |
25 | 26 | unified_inventory.register_page("armor", { |
27 | 28 | local fy = perplayer_formspec.formspec_y |
28 | 29 | local name = player:get_player_name() |
29 | 30 | if armor.def[name].init_time == 0 then |
30 | return {formspec="label[0,0;Armor not initialized!]"} | |
31 | return {formspec="label[0,0;"..F("Armor not initialized!").."]"} | |
31 | 32 | end |
32 | 33 | local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]".. |
33 | "label[0,0;Armor]".. | |
34 | "label[0,0;"..F("Armor").."]".. | |
34 | 35 | "list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]".. |
35 | 36 | "image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]".. |
36 | "label[5.0,"..(fy + 0.0)..";"..S("Level")..": "..armor.def[name].level.."]".. | |
37 | "label[5.0,"..(fy + 0.5)..";"..S("Heal")..": "..armor.def[name].heal.."]".. | |
37 | "label[5.0,"..(fy + 0.0)..";"..F("Level")..": "..armor.def[name].level.."]".. | |
38 | "label[5.0,"..(fy + 0.5)..";"..F("Heal")..": "..armor.def[name].heal.."]".. | |
38 | 39 | "listring[current_player;main]".. |
39 | 40 | "listring[detached:"..name.."_armor;armor]" |
40 | 41 | if armor.config.fire_protect then |
41 | 42 | formspec = formspec.."label[5.0,"..(fy + 1.0)..";".. |
42 | S("Fire")..": "..armor.def[name].fire.."]" | |
43 | F("Fire")..": "..armor.def[name].fire.."]" | |
43 | 44 | end |
44 | 45 | if minetest.global_exists("technic") then |
45 | 46 | formspec = formspec.."label[5.0,"..(fy + 1.5)..";".. |
46 | S("Radiation")..": "..armor.def[name].groups["radiation"].."]" | |
47 | F("Radiation")..": "..armor.def[name].groups["radiation"].."]" | |
47 | 48 | end |
48 | 49 | return {formspec=formspec} |
49 | 50 | end, |
0 | Modpack - 3d Armor [0.4.9] | |
0 | Modpack - 3d Armor [0.4.10] | |
1 | 1 | ========================== |
2 | 2 | |
3 | 3 | ### Table of Contents |
45 | 45 | Armor can be configured by adding a file called armor.conf in 3d_armor mod or world directory. |
46 | 46 | see armor.conf.example for all available options. |
47 | 47 | |
48 | For mod installation instructions, please visit: http://wiki.minetest.com/wiki/Installing_Mods | |
49 | ||
48 | 50 | [mod] Visible Wielded Items [wieldview] |
49 | 51 | --------------------------------------- |
50 | 52 |
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | ||
0 | 3 | if not minetest.get_modpath("technic") then |
1 | minetest.log("warning", "hazmat_suit: Mod loaded but unused.") | |
4 | minetest.log("warning", S("hazmat_suit: Mod loaded but unused.")) | |
2 | 5 | return |
3 | end | |
4 | local S = function(s) return s end | |
5 | if minetest.global_exists("intllib") then | |
6 | S = intllib.Getter() | |
7 | 6 | end |
8 | 7 | |
9 | 8 | minetest.register_craftitem("hazmat_suit:helmet_hazmat", { |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | local S = function(s) return s end | |
1 | if minetest.global_exists("intllib") then | |
2 | S = intllib.Getter() | |
3 | end | |
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | ||
4 | 3 | local use_moreores = minetest.get_modpath("moreores") |
5 | 4 | local function play_sound_effect(player, name) |
6 | 5 | if player then |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | -- support for i18n | |
1 | local S = armor_i18n.gettext | |
2 | local F = armor_i18n.fgettext | |
3 | ||
0 | 4 | if not minetest.get_modpath("technic_worldgen") then |
1 | minetest.log("warning", "technic_armor: Mod loaded but unused.") | |
5 | minetest.log("warning", S("technic_armor: Mod loaded but unused.")) | |
2 | 6 | return |
3 | end | |
4 | local S = function(s) return s end | |
5 | if minetest.global_exists("intllib") then | |
6 | S = intllib.Getter() | |
7 | 7 | end |
8 | 8 | |
9 | 9 | local stats = { |
51 | 51 | for partkey, part in pairs(parts) do |
52 | 52 | local partname = "technic_armor:"..partkey.."_"..key |
53 | 53 | minetest.register_tool(partname, { |
54 | description = armor.name.." "..part.name, | |
54 | -- Translators: @1 stands for material and @2 for part of the armor, so that you could use a conjunction if in your language part name comes first then material (e.g. in french 'Silver Boots' is translated in 'Bottes en argent' by using '@2 en @1' as translated string) | |
55 | description = S("@1 @2", armor.name, part.name), | |
55 | 56 | inventory_image = "technic_armor_inv_"..partkey.."_"..key..".png", |
56 | 57 | groups = {["armor_"..part.place]=math.floor(part.level*armor.armor), armor_heal=armor.heal, armor_use=armor.use, armor_radiation=math.floor(part.radlevel*armor.radiation)}, |
57 | 58 | wear = 0, |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | 0 | local time = 0 |
1 | local update_time = tonumber(minetest.setting_get("wieldview_update_time")) | |
1 | local update_time = tonumber(minetest.settings:get("wieldview_update_time")) | |
2 | 2 | if not update_time then |
3 | 3 | update_time = 2 |
4 | minetest.setting_set("wieldview_update_time", tostring(update_time)) | |
4 | minetest.settings:set("wieldview_update_time", tostring(update_time)) | |
5 | 5 | end |
6 | local node_tiles = minetest.setting_getbool("wieldview_node_tiles") | |
6 | local node_tiles = minetest.settings:get_bool("wieldview_node_tiles") | |
7 | 7 | if not node_tiles then |
8 | 8 | node_tiles = false |
9 | minetest.setting_set("wieldview_node_tiles", "false") | |
9 | minetest.settings:set("wieldview_node_tiles", "false") | |
10 | 10 | end |
11 | 11 | |
12 | 12 | wieldview = { |