Browse files

Identified remaining strings for localization

  • Loading branch information...
1 parent e2701d3 commit 1804439617917ba22f0e150234115edd0da585a9 @jonoxia committed Jan 20, 2012
Showing with 7 additions and 7 deletions.
  1. +2 −2 play.py
  2. +2 −2 webrunner-edit.js
  3. +3 −3 webrunner-world.js
View
4 play.py
@@ -18,9 +18,9 @@
if levels.count() > 0:
level = levels[0]
if (level.creator == player):
- editLink = "<a href=\"design.py?level=%s\">Edit This Level</a>" % levelName
+ editLink = "<a href=\"design.py?level=%s\">%s</a>" % (levelName, getStr(player, "_edit_this_level"))
elif (level.creator != None):
- editLink = "Created by %s." % level.creator.name
+ editLink = getStr(player, "_created_by") % level.creator.name
else:
editLink = ""
print "Content-type: text/html"
View
4 webrunner-edit.js
@@ -239,7 +239,7 @@ function redraw() {
var x = TheWorld.worldXToScreenX(TheWorld.startX);
var y = TheWorld.worldYToScreenY(TheWorld.startY);
context.strokeRect(x, y, 64, 64);
- context.strokeText("START", x + 5, y +32);
+ context.strokeText("START", x + 5, y +32); // TODO l10n
}
function saveChanges() {
@@ -303,7 +303,7 @@ function saveChanges() {
dataType: "text"
});
$("#debug").html(JSON.stringify(allData));
- $("#debug").html("Saving, don't close the page...");
+ $("#debug").html("Saving, don't close the page..."); // TODO l10n
}
$(document).ready(function() {
View
6 webrunner-world.js
@@ -44,7 +44,7 @@ ProgressBar.prototype = {
draw: function(progress) {
this._ctx.strokeStyle = "black";
this._ctx.fillStyle = "green";
- this._ctx.strokeText("LOADING...",
+ this._ctx.strokeText("LOADING...", // TODO l10n
TheWorld.canvasWidth /2,
TheWorld.canvasHeight/2 - 50);
this._ctx.fillRect(TheWorld.canvasWidth/2 - 200,
@@ -93,7 +93,7 @@ var TheWorld = {
} else {
ctx.strokeStyle = "black";
ctx.strokeRect(this.left, this.top, 64, 64);
- ctx.strokeText("GOAL", this.left + 5, this.top +32);
+ ctx.strokeText("GOAL", this.left + 5, this.top +32); // TODO l10n
}
},
setBounds: function(l, t, w, h) {
@@ -451,7 +451,7 @@ var TheWorld = {
loadFromServer: function (levelName, loader, callback) {
var url = "load-level.py";
var self = this;
- $("#debug").html("Loading level...");
+ $("#debug").html("Loading level..."); // TODO l10n
$.get(url, {levelName: levelName}, function(data, textStatus, jqXHR) {
self.loadFromString(data, loader, callback);
}, "html");

0 comments on commit 1804439

Please sign in to comment.