summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-06 16:43:27 +0200
committerWuzzy <almikes@aol.com>2016-08-06 16:43:27 +0200
commit2a18e7357d809b3c6f6fe1b160c2251945b9afcb (patch)
tree44954985b415c6bdff6899f220ad47605f628419
parent8ffc8e9323723b8b96b6a0495ac9be8d0d701f9b (diff)
Make default waypoint names translatable
-rw-r--r--locale/de.txt1
-rw-r--r--locale/template.txt1
-rw-r--r--waypoints.lua2
3 files changed, 3 insertions, 1 deletions
diff --git a/locale/de.txt b/locale/de.txt
index 346ff40..437e2c9 100644
--- a/locale/de.txt
+++ b/locale/de.txt
@@ -69,6 +69,7 @@ Red = Rot
Green = GrĂ¼n
Blue = Blau
Waypoints = Markierungen
+Waypoint %d = Wegpunkt Nr. %d
Waypoint active = Markierung aktiv
Waypoint inactive = Markierung inaktiv
World position = Weltposition
diff --git a/locale/template.txt b/locale/template.txt
index 4f1eb2e..a741acf 100644
--- a/locale/template.txt
+++ b/locale/template.txt
@@ -71,6 +71,7 @@ Red =
Green =
Blue =
Waypoints =
+Waypoint %d =
Waypoint active =
Waypoint inactive =
World position =
diff --git a/waypoints.lua b/waypoints.lua
index a8e4762..5e6081f 100644
--- a/waypoints.lua
+++ b/waypoints.lua
@@ -40,7 +40,7 @@ unified_inventory.register_page("waypoints", {
local i = waypoints.selected or 1
local waypoint = waypoints[i] or {}
local temp = waypoints_temp[player_name][i] or {}
- local default_name = "Waypoint "..i
+ local default_name = string.format(S("Waypoint %d"), i)
-- Main buttons:
formspec = formspec ..