1
0
zrcadlo https://github.com/mt-mods/homedecor_modpack.git synchronizováno 2025-09-19 08:15:23 +02:00

Use a single `intllib.Getter' for all the texts.

Just a minimal code reduction, but big reduction in code
duplication. This could help if in the future, support for
different "internationalization" mods will be added, or in
case Minetest supports I18N/L10N internally in the engine.
Tento commit je obsažen v:
kaeza
2013-10-21 22:31:54 -02:00
rodič ebe8adf855
revize 10cef3dda1
19 změnil soubory, kde provedl 20 přidání a 143 odebrání

Zobrazit soubor

@@ -1,13 +1,6 @@
-- Various kinds of tables
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if homedecor.intllib_modpath then
dofile(homedecor.intllib_modpath.."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
local S = homedecor.gettext
materials = {
{"glass","Glass"},