Skip to content

Commit

Permalink
#2351: Make strings in offline.as translatable
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.openstreetmap.org/applications/editors/potlatch@18171 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
  • Loading branch information
avar committed Oct 15, 2009
1 parent 91e4c14 commit f5e1ed0
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions offline.as
Expand Up @@ -161,30 +161,42 @@

function uploadPOIs(list) {
for (var id in list) {
var n=getName(_root.map.pois[id].attr,nodenames); if (n!='') { n=", "+n; }
_root.windows.upload.box.progress.text+="Uploading POI "+id+n+"\n";
var n=getName(_root.map.pois[id].attr,nodenames);
if (n!='') {
_root.windows.upload.box.progress.text += iText('uploading_poi_name', id, n) + "\n";
} else {
_root.windows.upload.box.progress.text += iText('uploading_poi', id) + "\n";
}
_root.map.pois[id].upload();
}
}

function uploadWays(list) {
for (var id in list) {
var n=getName(_root.map.ways[id].attr,waynames); if (n!='') { n=", "+n; }
_root.windows.upload.box.progress.text+="Uploading way "+id+n+"\n";
var n=getName(_root.map.ways[id].attr,waynames);
if (n!='') {
_root.windows.upload.box.progress.text += iText('uploading_way_name', id, n) + "\n";
} else {
_root.windows.upload.box.progress.text += iText('uploading_way', id) + "\n";
}
_root.map.ways[id].upload();
}
}

function uploadRelations(list) {
for (var id in list) {
var n=getName(_root.map.relations[id].attr,[]); if (n!='') { n=", "+n; }
_root.windows.upload.box.progress.text+="Uploading relation "+id+n+"\n";
var n=getName(_root.map.relations[id].attr,[]);
if (n!='') {
_root.windows.upload.box.progress.text += iText('uploading_relation_name', id, n) + "\n";
} else {
_root.windows.upload.box.progress.text += iText('uploading_relation', id) + "\n";
}
_root.map.relations[id].upload();
}
}

function uploadDeletedWays(list) {
_root.windows.upload.box.progress.text+="Deleting ways";
_root.windows.upload.box.progress.text+=iText('uploading_deleting_ways');
for (var id in list) {
_root.windows.upload.box.progress.text+=".";
deleteresponder = function() { };
Expand All @@ -196,7 +208,7 @@
}

function uploadDeletedPOIs(list) {
_root.windows.upload.box.progress.text+="Deleting POIs";
_root.windows.upload.box.progress.text+=iText('uploading_deleting_pois');
for (var id in list) {
_root.windows.upload.box.progress.text+=".";
poidelresponder = function() { };
Expand Down

0 comments on commit f5e1ed0

Please sign in to comment.