Use Minetest's built-in translation library

master
Jordan Irwin 2021-06-05 07:12:36 -07:00
parent dde368cc83
commit 47749e91cd
6 changed files with 134 additions and 151 deletions

View File

@ -7,18 +7,7 @@
local growing_wall_maps=false
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.global_exists("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
if (intllib.make_gettext_pair) then
S = intllib.make_gettext_pair(minetest.get_current_modname())
else
S = intllib.Getter(minetest.get_current_modname())
end
else
S = function ( s ) return s end
end
local S = minetest.get_translator(minetest.get_current_modname())
local selected_cgpsmap = {}

View File

@ -14,17 +14,7 @@
--added pos and distance to display list
--added hud showing current pos -> target pos : distance
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.global_exists("intllib")) then
if (intllib.make_gettext_pair) then
S = intllib.make_gettext_pair()
else
S = intllib.Getter()
end
else
S = function ( s ) return s end
end
local S = minetest.get_translator(minetest.get_current_modname())
local hud_default_x=0.4
local hud_default_y=0.01

66
locale/compassgps.de.tr Normal file
View File

@ -0,0 +1,66 @@
Can create shared bookmarks for use by anyone with a compassgps=
bkmrkidx\=nil=bkmrkidx\=nil
playername\=%s=playername\=%s
playername\=nil=playername\=nil
%s's map=Karte von %s
A bookmark with the name '%s' can't be created.=Ein weiterer Wegpunkt mit dem Namen '%s' kann nicht erstellt werden.
Admin=Administrator
Bookmark '%s' added at %s type\=%s=Wegpunkt '%s' wurde bei %s vom Typ %s erstellt.
Change hud:=Ändere HUD:
Color:=Farbe:
Dist:=Entfernung:
Compass Type:=Kompasstyp:
Give the bookmark a name.=Geben Sie dem Wegpunkt einen Namen
Lets the compassgps point to the bookmark=Lässt den Kompass auf den Wegpunkt zeigen.
No=Nein
No bookmark was specified.=Kein Wegpunkt wurde angegegeben.
Pointing at %s.=Zeige auf %s.
Pointing at default location.=Zeige auf die Standardposition.
Private=Privat
Remove bookmark: =Entferne Wegpunkt:
Removes the bookmark specified by <bookmark_name>=Entfernt den Wegpunkt der mit <bookmark_name> angegeben ist.
Settings=Einstellungen
Shared=Geteilt
Show:=Zeige:
Sort by:=Sortiere nach:
Teleporting to %s=Teleportiere zu %s
The bookmark =Der Wegpunkt
The maximum number of shared bookmarks any user can create is %d.=Jeder Nutzer kann nur %d geteilte Wegpunkte erstellen.
Yes=Ja
You already have a bookmark with that name.=Sie haben bereits einen Wegpunkt mit diesem Namen.
You have no bookmark with this name.=Sie haben keinen Wegpunkt mit diesem Namen.
bookmark=Wegpunkt
compassgps reading bookmarks=compassgps liest die Wegpunkte.
compassgps reading settings=compassgps liest die Einstellungen.
compassgps=Kompass
compassgps teleporting player %s to %s=compassgps teleportiert Spieler %s nach %s.
compassgps writing settings=compassgps schreibt die Einstellungen.
compassgps.%s invalid bkrmkidx=compassgps.%s ungültige bkmrkidx.
compassgps.%s invalid bookmark playername\=%s bkmrkid\=%s=compassgps.%s ungültiger Wegpunkt Spielername\=%s bkmrkidx\=%s.
compassgps.%s player not found=compassgps.%s Spieler nicht gefunden.
compassgps: hud color not valid hex number=compassgps: HUD Farbe ist keine zulässige Hexadezimalzahl.
compassgps: hud coords are not numeric. Change to between 0 and 1=compassgps: HUD Koordinaten sind keine Zahlen. Ändern sie diese zu Werten zwischen 0 und 1.
compassgps: hud coords out of range, hud will not be displayed. Change to between 0 and 1 to restore=compassgps: HUD Koordinaten sind außerhalb des zulässigen Bereichs. Ändern sie diese zu Werten zwischen 0 und 1 um das HUD wiederherzustellen.
compassgps:%s invalid bookmark=compassgps.%s ungültiger Wegpunkt
Create admin=Erstelle Administratorwegpunkt
Create bookmark=Erstelle Wegpunkt
Create shared=Erstelle geteilten Wegpunkt
current position : =Momentane Position :
distance=Entfernung
Show selected bookmark=Zeigen den ausgewählten Wegpunkt
list_bookmarks: Lists all bookmarks of a player=list_bookmarks: Zeigt alle Wegpunkte eines Spielers.
name=Name
Remove bookmark=Entferne den Wegpunkt
remove bookmark playername\=%s bkmrkidx\=%s=Entferne den Wegpunkt Spielername\=%s bkmrkidx\=%s
removed %s=%s entfernt.
set_bookmark: Sets a location bookmark for the player=set_bookmark: Setzt einen Wegpunkt für den Spieler.
teleport to bookmark=Teleportiere zu dem Wegpunkt.
you can not remove someone elses bookmark:=Sie können den Wegpunkt eines anderen Spielers nicht entfernen:
CompassGPS Map (blank)=CompassGPS Karte (leer)
CompassGPS Map (marked)=CompassGPS Karte (markiert)
Write to cgpsmap=Schreibe auf die Karte
Copy bookmark to compassgps=Kopiere den Wegpunkt in Kompass.
Bookmark name:=Name des Wegpunkts:
Bookmark pos:=Position des Wegpunkts:
Rename bookmark=Lesezeichen umbenennen

View File

@ -1,64 +0,0 @@
bkmrkidx\=nil = bkmrkidx\=nil
playername\=%s = playername\=%s
playername\=nil = playername\=nil
%s's map = Karte von %s
A bookmark with the name '%s' can't be created. = Ein weiterer Wegpunkt mit dem Namen '%s' kann nicht erstellt werden.
Admin = Administrator
Bookmark '%s' added at %s type\=%s = Wegpunkt '%s' wurde bei %s vom Typ %s erstellt.
Change hud: = Ändere HUD:
Color: = Farbe:
Dist: = Entfernung:
Compass Type: = Kompasstyp:
Give the bookmark a name. = Geben Sie dem Wegpunkt einen Namen
Lets the compassgps point to the bookmark = Lässt den Kompass auf den Wegpunkt zeigen.
No = Nein
No bookmark was specified. = Kein Wegpunkt wurde angegegeben.
Pointing at %s. = Zeige auf %s.
Pointing at default location. = Zeige auf die Standardposition.
Private = Privat
Remove bookmark: = Entferne Wegpunkt:
Removes the bookmark specified by <bookmark_name> = Entfernt den Wegpunkt der mit <bookmark_name> angegeben ist.
Settings = Einstellungen
Shared = Geteilt
Show: = Zeige:
Sort by: = Sortiere nach:
Teleporting to %s = Teleportiere zu %s
The bookmark = Der Wegpunkt
The maximum number of shared bookmarks any user can create is %d. = Jeder Nutzer kann nur %d geteilte Wegpunkte erstellen.
Yes = Ja
You already have a bookmark with that name. = Sie haben bereits einen Wegpunkt mit diesem Namen.
You have no bookmark with this name. = Sie haben keinen Wegpunkt mit diesem Namen.
bookmark = Wegpunkt
compassgps reading bookmarks = compassgps liest die Wegpunkte.
compassgps reading settings = compassgps liest die Einstellungen.
compassgps = Kompass
compassgps teleporting player %s to %s = compassgps teleportiert Spieler %s nach %s.
compassgps writing settings = compassgps schreibt die Einstellungen.
compassgps.%s invalid bkrmkidx = compassgps.%s ungültige bkmrkidx.
compassgps.%s invalid bookmark playername\=%s bkmrkid\=%s = compassgps.%s ungültiger Wegpunkt Spielername\=%s bkmrkidx\=%s.
compassgps.%s player not found = compassgps.%s Spieler nicht gefunden.
compassgps: hud color not valid hex number = compassgps: HUD Farbe ist keine zulässige Hexadezimalzahl.
compassgps: hud coords are not numeric. Change to between 0 and 1 = compassgps: HUD Koordinaten sind keine Zahlen. Ändern sie diese zu Werten zwischen 0 und 1.
compassgps: hud coords out of range, hud will not be displayed. Change to between 0 and 1 to restore = compassgps: HUD Koordinaten sind außerhalb des zulässigen Bereichs. Ändern sie diese zu Werten zwischen 0 und 1 um das HUD wiederherzustellen.
compassgps:%s invalid bookmark = compassgps.%s ungültiger Wegpunkt
Create admin = Erstelle Administratorwegpunkt
Create bookmark = Erstelle Wegpunkt
Create shared = Erstelle geteilten Wegpunkt
current position : = Momentane Position :
distance = Entfernung
Show selected bookmark = Zeigen den ausgewählten Wegpunkt
list_bookmarks: Lists all bookmarks of a player = list_bookmarks: Zeigt alle Wegpunkte eines Spielers.
name = Name
Remove bookmark = Entferne den Wegpunkt
remove bookmark playername\=%s bkmrkidx\=%s = Entferne den Wegpunkt Spielername\=%s bkmrkidx\=%s
removed %s = %s entfernt.
set_bookmark: Sets a location bookmark for the player = set_bookmark: Setzt einen Wegpunkt für den Spieler.
teleport to bookmark = Teleportiere zu dem Wegpunkt.
you can not remove someone elses bookmark: = Sie können den Wegpunkt eines anderen Spielers nicht entfernen:
CompassGPS Map (blank) = CompassGPS Karte (leer)
CompassGPS Map (marked) = CompassGPS Karte (markiert)
Write to cgpsmap = Schreibe auf die Karte
Copy bookmark to compassgps = Kopiere den Wegpunkt in Kompass.
Bookmark name: = Name des Wegpunkts:
Bookmark pos: = Position des Wegpunkts:
Rename bookmark = Lesezeichen umbenennen

View File

@ -1,63 +1,65 @@
bkmrkidx\=nil =
playername\=%s =
playername\=nil =
%s's map =
A bookmark with the name '%s' can't be created. =
Admin =
Bookmark '%s' added at %s type\=%s =
Change hud: =
Color: =
Dist: =
Compass Type: =
Give the bookmark a name. =
Lets the compassgps point to the bookmark =
No =
No bookmark was specified. =
Pointing at %s. =
Pointing at default location. =
Private =
Remove bookmark: =
Removes the bookmark specified by <bookmark_name> =
Settings =
Shared =
Show: =
Sort by: =
Teleporting to %s =
The bookmark =
The maximum number of shared bookmarks any user can create is %d. =
Yes =
You already have a bookmark with that name. =
You have no bookmark with this name. =
bookmark =
compassgps reading bookmarks =
compassgps reading settings =
compassgps =
compassgps teleporting player %s to %s =
compassgps writing settings =
compassgps.%s invalid bkrmkidx =
compassgps.%s invalid bookmark playername\=%s bkmrkid\=%s =
compassgps.%s player not found =
compassgps: hud color not valid hex number =
compassgps: hud coords are not numeric. Change to between 0 and 1 =
compassgps: hud coords out of range, hud will not be displayed. Change to between 0 and 1 to restore =
compassgps:%s invalid bookmark =
create admin =
create bookmark =
create shared =
current position : =
distance =
find selected bookmark =
list_bookmarks: Lists all bookmarks of a player =
name =
remove bookmark =
remove bookmark playername\=%s bkmrkidx\=%s =
removed %s =
set_bookmark: Sets a location bookmark for the player =
teleport to bookmark =
you can not remove someone elses bookmark: =
CompassGPS Map (blank) =
CompassGPS Map (marked) =
Write to cgpsmap =
copy bookmark to your compassgps =
bookmark name: =
bookmark pos: =
Can create shared bookmarks for use by anyone with a compassgps=
bkmrkidx\=nil=
playername\=%s=
playername\=nil=
%s's map=
A bookmark with the name '%s' can't be created.=
Admin=
Bookmark '%s' added at %s type\=%s=
Change hud:=
Color:=
Dist:=
Compass Type:=
Give the bookmark a name.=
Lets the compassgps point to the bookmark=
No=
No bookmark was specified.=
Pointing at %s.=
Pointing at default location.=
Private=
Remove bookmark: =
Removes the bookmark specified by <bookmark_name>=
Settings=
Shared=
Show:=
Sort by:=
Teleporting to %s=
The bookmark =
The maximum number of shared bookmarks any user can create is %d.=
Yes=
You already have a bookmark with that name.=
You have no bookmark with this name.=
bookmark=
compassgps reading bookmarks=
compassgps reading settings=
compassgps=
compassgps teleporting player %s to %s=
compassgps writing settings=
compassgps.%s invalid bkrmkidx=
compassgps.%s invalid bookmark playername\=%s bkmrkid\=%s=
compassgps.%s player not found=
compassgps: hud color not valid hex number=
compassgps: hud coords are not numeric. Change to between 0 and 1=
compassgps: hud coords out of range, hud will not be displayed. Change to between 0 and 1 to restore=
compassgps:%s invalid bookmark=
create admin=
create bookmark=
create shared=
current position : =
distance=
find selected bookmark=
list_bookmarks: Lists all bookmarks of a player=
name=
remove bookmark=
remove bookmark playername\=%s bkmrkidx\=%s=
removed %s=
set_bookmark: Sets a location bookmark for the player=
teleport to bookmark=
you can not remove someone elses bookmark:=
CompassGPS Map (blank)=
CompassGPS Map (marked)=
Write to cgpsmap=
copy bookmark to your compassgps=
bookmark name:=
bookmark pos:=

View File

@ -1,4 +1,4 @@
name = compassgps
description = A customizable compass with user settable bookmarks.
depends = default
optional_depends = intllib, craft_guide
optional_depends = craft_guide