summaryrefslogtreecommitdiff
path: root/streetsmod
diff options
context:
space:
mode:
authorwebdesigner97 <Christian_D_97@gmx.de>2014-04-11 16:40:13 +0200
committerwebdesigner97 <Christian_D_97@gmx.de>2014-04-11 16:40:13 +0200
commit1425d09f782c9376a925395ee13dce87a511e683 (patch)
tree71a7a50cbf0770fa1b64b9211d9460641639b719 /streetsmod
parent73558fa596424114a916280034747019f0c6f7b0 (diff)
downloadroads-1425d09f782c9376a925395ee13dce87a511e683.tar
roads-1425d09f782c9376a925395ee13dce87a511e683.tar.gz
roads-1425d09f782c9376a925395ee13dce87a511e683.tar.bz2
roads-1425d09f782c9376a925395ee13dce87a511e683.tar.xz
roads-1425d09f782c9376a925395ee13dce87a511e683.zip
intllib
Diffstat (limited to 'streetsmod')
-rw-r--r--streetsmod/init.lua28
-rw-r--r--streetsmod/locale/de.txt3
-rw-r--r--streetsmod/locale/template.txt.txt3
3 files changed, 18 insertions, 16 deletions
diff --git a/streetsmod/init.lua b/streetsmod/init.lua
index 72f7fee..b737da7 100644
--- a/streetsmod/init.lua
+++ b/streetsmod/init.lua
@@ -5,10 +5,19 @@
Forum : http://bit.ly/12cPMeo
Depends : default
]]
+-- kaeza: intllib
+ -- Boilerplate to support localized strings if intllib mod is installed.
+ local S
+ if (minetest.get_modpath("intllib")) then
+ dofile(minetest.get_modpath("intllib").."/intllib.lua")
+ S = intllib.Getter(minetest.get_current_modname())
+ else
+ S = function ( s ) return s end
+ end
-- Create variables and tables
- print("Streets: Creating variables and tables...")
+ print("Streets: " .. S("Creating variables and tables..."))
streets = {}
- streets.version = "1.4.3"
+ streets.version = "1.4.4dev"
streets.modpath = minetest.get_modpath("streets")
streets.extendedBy = {}
streets.load = {
@@ -19,45 +28,33 @@
-- Check for mods which change this mod's beahaviour
print("Streets: Checking installed mods...")
if minetest.get_modpath("wool") then
- print("'Wool' is installed \n\t => You can craft labels for your asphalt blocks")
streets.extendedBy.wool = true
else
- print("'Wool' not installed \n\t => You can't craft any labels")
streets.extendedBy.wool = false
end
if minetest.get_modpath("technic") then
- print("'Technic' is installed \n\t => You can use its concrete also in this mod")
streets.extendedBy.technic = true
else
- print("'Technic' not installed \n\t => StreetsMod will register its own concrete block")
streets.extendedBy.technic = false
end
if minetest.get_modpath("moreblocks") then
- print("'Moreblocks' is installed \n\t => There will be stairs and slabs'")
streets.extendedBy.moreblocks = true
else
- print("'Moreblocks' not installed \n\t => There won't be stairs and slabs'")
streets.extendedBy.moreblocks = false
end
if minetest.get_modpath("mesecons") then
- print("'Mesecons' is installed \n\t => Trafficlights might be available. Checking for digilines. Streetlamps available")
streets.extendedBy.mesecons = true
else
- print("'Mesecons' not installed \n\t => No trafficlight and streetlamps, sorry.")
streets.extendedBy.mesecons = false
end
if minetest.get_modpath("digilines") then
- print("'Digilines' is installed \n\t => Trafficlights might be available")
streets.extendedBy.digilines = true
else
- print("'Digilines' not installed \n\t => No trafficlight, sorry.")
streets.extendedBy.digilines = false
end
if minetest.get_modpath("prefab") then
- print("'Prefab concrete' is installed \n\t => Use its concrete block for streets' crafting recipes.")
streets.extendedBy.prefab = true
else
- print("'Prefab concrete' not installed \n\t => Streets will register its own concrete block.")
streets.extendedBy.prefab = false
end
@@ -84,6 +81,5 @@
})
-- Done
- print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!")
- print("Streets: Special thanks to everyone who contributed to this mod (except myself): Immanuel_Kant and philipbenr!")
+ print("Streets: " .. S("Setup completed, have fun with StreetsMod") .. " " .. streets.version .. "!")
streets.load.fin = os.clock() \ No newline at end of file
diff --git a/streetsmod/locale/de.txt b/streetsmod/locale/de.txt
new file mode 100644
index 0000000..499d8f3
--- /dev/null
+++ b/streetsmod/locale/de.txt
@@ -0,0 +1,3 @@
+# Translation file GERMAN
+Setup completed, have fun with StreetsMod=Laden abgeschlossen, viel Spass mit StreetsMod
+Creating variables and tables...=Erstelle Variablen und Tabellen... \ No newline at end of file
diff --git a/streetsmod/locale/template.txt.txt b/streetsmod/locale/template.txt.txt
new file mode 100644
index 0000000..8a4c1c2
--- /dev/null
+++ b/streetsmod/locale/template.txt.txt
@@ -0,0 +1,3 @@
+# Translation file for StreetsMod might not be up-to-date.
+Setup completed, have fun with StreetsMod=
+ Creating variables and tables...= \ No newline at end of file