mirror of
https://github.com/TeTpaAka/quests.git
synced 2025-02-02 05:10:22 +01:00
Use Luanti's built-in translator instead of deprecated intllib mod
This commit is contained in:
parent
7537024407
commit
cf62312bbd
1
README
1
README
@ -3,7 +3,6 @@ quests 1.1
|
|||||||
quests is a simple quest framework for Luanti (Minetest) that lets you define your own quests and handles the representation.
|
quests is a simple quest framework for Luanti (Minetest) that lets you define your own quests and handles the representation.
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
intllib (optional)
|
|
||||||
unified_inventory or inventory_plus (optional)
|
unified_inventory or inventory_plus (optional)
|
||||||
central_message (optional)
|
central_message (optional)
|
||||||
|
|
||||||
|
10
core.lua
10
core.lua
@ -1,11 +1,5 @@
|
|||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
||||||
local S
|
local S = core.get_translator("quests")
|
||||||
if core.get_modpath("intllib") then
|
|
||||||
S = intllib.Getter()
|
|
||||||
else
|
|
||||||
-- If you don't use insertions (@1, @2, etc) you can use this:
|
|
||||||
S = function(s) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- registers a quest for later use
|
-- registers a quest for later use
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
intllib?
|
|
||||||
unified_inventory?
|
unified_inventory?
|
||||||
inventory_plus?
|
inventory_plus?
|
||||||
central_message?
|
central_message?
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
||||||
local S
|
local S = core.get_translator("quests")
|
||||||
if core.get_modpath("intllib") then
|
|
||||||
S = intllib.Getter()
|
|
||||||
else
|
|
||||||
-- If you don't use insertions (@1, @2, etc) you can use this:
|
|
||||||
S = function(s) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- construct the questlog
|
-- construct the questlog
|
||||||
|
10
hud.lua
10
hud.lua
@ -1,11 +1,5 @@
|
|||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
||||||
local S
|
local S = core.get_translator("quests")
|
||||||
if core.get_modpath("intllib") then
|
|
||||||
S = intllib.Getter()
|
|
||||||
else
|
|
||||||
-- If you don't use insertions (@1, @2, etc) you can use this:
|
|
||||||
S = function(s) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
local show_max = 10 -- the maximum visible quests.
|
local show_max = 10 -- the maximum visible quests.
|
||||||
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
missing description = fehlende Beschreibung
|
|
||||||
missing title = fehlender Titel
|
|
||||||
Quests: = Quests:
|
|
||||||
No more Quests = Keine weiteren Quests
|
|
||||||
Abort quest = Quest abbrechen
|
|
||||||
Configure = Konfigurieren
|
|
||||||
Enable HUD = HUD einschalten
|
|
||||||
Autohide HUD = HUD automatisch verstecken
|
|
||||||
Exit = Verlassen
|
|
||||||
Failed quests = Gescheiterte Quests
|
|
||||||
Finished quests = Beendete Quests
|
|
||||||
Info = Info
|
|
||||||
No quest specified. = Keine Quest ausgewählt.
|
|
||||||
Open quests = Offene Quests
|
|
||||||
Return = Zurück
|
|
||||||
Show all open quests = Zeige alle offenen Quests
|
|
||||||
There are no quests in this category. = Es gibt keine Quests in dieser Kategorie.
|
|
||||||
New quest: = Neue Quest:
|
|
||||||
Quest completed: = Quest beendet:
|
|
||||||
Quest failed: = Quest gescheitert:
|
|
22
locale/quests.de.tr
Normal file
22
locale/quests.de.tr
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# textdomain:quests
|
||||||
|
|
||||||
|
missing description=fehlende Beschreibung
|
||||||
|
missing title=fehlender Titel
|
||||||
|
#Quests:=
|
||||||
|
No more Quests=Keine weiteren Quests
|
||||||
|
Abort quest=Quest abbrechen
|
||||||
|
Configure=Konfigurieren
|
||||||
|
Enable HUD=HUD einschalten
|
||||||
|
Autohide HUD=HUD automatisch verstecken
|
||||||
|
Exit=Verlassen
|
||||||
|
Failed quests=Gescheiterte Quests
|
||||||
|
Finished quests=Beendete Quests
|
||||||
|
Info=Info
|
||||||
|
No quest specified.=Keine Quest ausgewählt.
|
||||||
|
Open quests=Offene Quests
|
||||||
|
Return=Zurück
|
||||||
|
Show all open quests=Zeige alle offenen Quests
|
||||||
|
There are no quests in this category.=Es gibt keine Quests in dieser Kategorie.
|
||||||
|
New quest:=Neue Quest:
|
||||||
|
Quest completed:=Quest beendet:
|
||||||
|
Quest failed:=Quest gescheitert:
|
@ -1,3 +1,5 @@
|
|||||||
|
# textdomain:quests
|
||||||
|
|
||||||
missing description=
|
missing description=
|
||||||
missing title=
|
missing title=
|
||||||
Quests:=
|
Quests:=
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
|||||||
name = quests
|
name = quests
|
||||||
description = Simple framework to define quests.
|
description = Simple framework to define quests.
|
||||||
author = TeTpaAka
|
author = TeTpaAka
|
||||||
optional_depends = intllib, unified_inventory, inventory_plus, central_message
|
optional_depends = unified_inventory, inventory_plus, central_message
|
||||||
|
Loading…
Reference in New Issue
Block a user