1
0
mirror of https://github.com/TeTpaAka/quests.git synced 2025-02-01 20:50:21 +01:00

Use Luanti's built-in translator instead of deprecated intllib mod

This commit is contained in:
Jordan Irwin 2025-01-17 23:13:51 -08:00 committed by TeTpaAka
parent 7537024407
commit cf62312bbd
9 changed files with 51 additions and 67 deletions

1
README
View File

@ -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.
Dependencies:
intllib (optional)
unified_inventory or inventory_plus (optional)
central_message (optional)

View File

@ -1,11 +1,5 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S
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 S = core.get_translator("quests")
-- registers a quest for later use

View File

@ -1,4 +1,3 @@
intllib?
unified_inventory?
inventory_plus?
central_message?

View File

@ -1,11 +1,5 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S
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 S = core.get_translator("quests")
-- construct the questlog

10
hud.lua
View File

@ -1,11 +1,5 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S
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 S = core.get_translator("quests")
local show_max = 10 -- the maximum visible quests.

View File

@ -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
View 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:

View File

@ -1,20 +1,22 @@
missing description =
missing title =
Quests: =
No more Quests =
Abort quest =
Configure =
Enable HUD =
Autohide HUD =
Exit =
Failed quests =
Finished quests =
Info =
No quest specified. =
Open quests =
Return =
Show all open quests =
There are no quests in this category. =
New quest: =
Quest completed: =
Quest failed: =
# textdomain:quests
missing description=
missing title=
Quests:=
No more Quests=
Abort quest=
Configure=
Enable HUD=
Autohide HUD=
Exit=
Failed quests=
Finished quests=
Info=
No quest specified.=
Open quests=
Return=
Show all open quests=
There are no quests in this category.=
New quest:=
Quest completed:=
Quest failed:=

View File

@ -1,4 +1,4 @@
name = quests
description = Simple framework to define quests.
author = TeTpaAka
optional_depends = intllib, unified_inventory, inventory_plus, central_message
optional_depends = unified_inventory, inventory_plus, central_message