Add customization/translation for "Players" and "Map Types" UI labels
This commit is contained in:
parent
1946bb92ab
commit
18df91878c
3 changed files with 9 additions and 2 deletions
|
|
@ -31,6 +31,8 @@ public class ClientConfigurationComponent extends Component {
|
||||||
if(sn.equals("Unknown Server"))
|
if(sn.equals("Unknown Server"))
|
||||||
sn = "Minecraft Dynamic Map";
|
sn = "Minecraft Dynamic Map";
|
||||||
s(t, "title", c.getString("webpage-title", sn));
|
s(t, "title", c.getString("webpage-title", sn));
|
||||||
|
s(t, "msg-maptypes", c.getString("msg/maptypes", "Map Types"));
|
||||||
|
s(t, "msg-players", c.getString("msg/players", "Players"));
|
||||||
|
|
||||||
DynmapWorld defaultWorld = null;
|
DynmapWorld defaultWorld = null;
|
||||||
String defmap = null;
|
String defmap = null;
|
||||||
|
|
|
||||||
|
|
@ -299,6 +299,11 @@ cyrillic-support: false
|
||||||
# If true, make persistent record of IP addresses used by player logins, to support web IP to player matching
|
# If true, make persistent record of IP addresses used by player logins, to support web IP to player matching
|
||||||
persist-ids-by-ip: true
|
persist-ids-by-ip: true
|
||||||
|
|
||||||
|
# Messages to customize
|
||||||
|
msg:
|
||||||
|
maptypes: "Map Types"
|
||||||
|
players: "Players"
|
||||||
|
|
||||||
# NOTE: the 'templates' section is now found in the 'templates' directory
|
# NOTE: the 'templates' section is now found in the 'templates' directory
|
||||||
# Templates CAN still be defined in configuration.txt, as before 0.20
|
# Templates CAN still be defined in configuration.txt, as before 0.20
|
||||||
templates:
|
templates:
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ DynMap.prototype = {
|
||||||
// Worlds
|
// Worlds
|
||||||
var worldlist;
|
var worldlist;
|
||||||
$('<fieldset/>')
|
$('<fieldset/>')
|
||||||
.append($('<legend/>').text('Map Types'))
|
.append($('<legend/>').text(me.options['msg-maptypes']))
|
||||||
.append(upbtn_world)
|
.append(upbtn_world)
|
||||||
.append(me.worldlist = worldlist = $('<ul/>').addClass('worldlist')
|
.append(me.worldlist = worldlist = $('<ul/>').addClass('worldlist')
|
||||||
.bind('mousewheel', function(event, delta){
|
.bind('mousewheel', function(event, delta){
|
||||||
|
|
@ -279,7 +279,7 @@ DynMap.prototype = {
|
||||||
// The Player List
|
// The Player List
|
||||||
var playerlist;
|
var playerlist;
|
||||||
$('<fieldset/>')
|
$('<fieldset/>')
|
||||||
.append($('<legend/>').text('Players'))
|
.append($('<legend/>').text(me.options['msg-players']))
|
||||||
.append(upbtn)
|
.append(upbtn)
|
||||||
.append(me.playerlist = playerlist = $('<ul/>').addClass('playerlist')
|
.append(me.playerlist = playerlist = $('<ul/>').addClass('playerlist')
|
||||||
.bind('mousewheel', function(event, delta){
|
.bind('mousewheel', function(event, delta){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue