Make default waypoint names translatable

This commit is contained in:
Wuzzy 2016-08-06 16:43:27 +02:00
parent 8ffc8e9323
commit 2a18e7357d
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -71,6 +71,7 @@ Red =
Green =
Blue =
Waypoints =
Waypoint %d =
Waypoint active =
Waypoint inactive =
World position =

View File

@ -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 ..