mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
starting to add basic translate ui adjustments.
This commit is contained in:
@@ -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..."
|
||||
|
||||
Vendored
+1
@@ -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...",
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user