starting to add basic translate ui adjustments.

This commit is contained in:
Saman Bemel-Benrud
2013-05-15 14:23:30 -04:00
parent a88deef839
commit 6423455c66
3 changed files with 13 additions and 6 deletions
+1
View File
@@ -126,6 +126,7 @@ en:
just_edited: "You just edited OpenStreetMap!"
browser_notice: "This editor is supported in Firefox, Chrome, Safari, Opera, and Internet Explorer 9 and above. Please upgrade your browser or use Potlatch 2 to edit the map."
view_on_osm: "View on OSM"
translate: Translate
zoom_in_edit: zoom in to edit the map
logout: logout
loading_auth: "Connecting to OpenStreetMap..."
+1
View File
@@ -160,6 +160,7 @@
"just_edited": "You just edited OpenStreetMap!",
"browser_notice": "This editor is supported in Firefox, Chrome, Safari, Opera, and Internet Explorer 9 and above. Please upgrade your browser or use Potlatch 2 to edit the map.",
"view_on_osm": "View on OSM",
"translate": "Translate",
"zoom_in_edit": "zoom in to edit the map",
"logout": "logout",
"loading_auth": "Connecting to OpenStreetMap...",
+11 -6
View File
@@ -15,15 +15,20 @@ iD.ui.preset.localized = function(field, context) {
.on('change', change)
.call(iD.behavior.accept().on('accept', event.close));
selection.append('button')
.attr('class', 'localized-add')
.on('click', addBlank)
.append('span')
.attr('class', 'icon plus-dark');
localizedInputs = selection.append('div')
.attr('class', 'localized-wrap');
var translateButton = selection.append('button')
.attr('class', 'localized-add')
.on('click', addBlank);
translateButton.append('span')
.attr('class', 'icon translate');
translateButton.call(bootstrap.tooltip()
.title(t('translate'))
.placement('top'));
}
function addBlank() {