New Upstream Snapshot - minetest-mod-intllib
Ready changes
Summary
Merged new upstream version: 20180811+git20210223.1.6ebdc53 (was: 20180811).
Resulting package
Built on 2022-03-10T04:05 (took 2m26s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots minetest-mod-intllib
Lintian Result
Diff
diff --git a/README.md b/README.md
index de7cfa3..c4ec318 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,14 @@
# Internationalization Lib for Minetest
+## DEPRECATED - Use Minetest's new translation API instead!
+
+You should not use this mod when writing new mods, and you should update mods to no longer depend on this mod.
+
+Minetest 5.0 has builtin support for client-side translation, accessed by `minetest.get_translator()`
+
+## Aboud
+
By Diego Martínez (kaeza).
Released under Unlicense. See `LICENSE.md` for details.
diff --git a/debian/changelog b/debian/changelog
index 44a2fdb..4aee8c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+minetest-mod-intllib (20180811+git20210223.1.6ebdc53-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Thu, 10 Mar 2022 04:03:44 -0000
+
minetest-mod-intllib (20180811-1) unstable; urgency=medium
* Initial release. (Closes: #906272)
diff --git a/init.lua b/init.lua
index 0778a73..7565e01 100644
--- a/init.lua
+++ b/init.lua
@@ -201,7 +201,8 @@ function intllib.get_strings(modname, langcode)
local modpath = minetest.get_modpath(modname)
msgstr = { }
for _, l in ipairs(get_locales(langcode)) do
- local t = intllib.load_strings(modpath.."/locale/"..l..".txt") or { }
+ local t = intllib.load_strings(modpath.."/locale/"..modname.."."..l..".tr")
+ or intllib.load_strings(modpath.."/locale/"..l..".txt") or { }
for k, v in pairs(t) do
msgstr[k] = msgstr[k] or v
end
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files