1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-07 09:00:22 +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.
This commit is contained in:
kaeza
2013-10-21 22:31:54 -02:00
parent ebe8adf855
commit 10cef3dda1
19 changed files with 20 additions and 143 deletions

View File

@ -27,6 +27,7 @@ if homedecor.intllib_modpath then
else
S = function ( s ) return s end
end
homedecor.gettext = S
local dbg = function(s)
if homedecor.debug == 1 then