better placeholder text / proper translation

This commit is contained in:
Saman Bemel-Benrud
2013-05-15 17:31:16 -04:00
parent d8308cbb6c
commit aa446c074a
3 changed files with 15 additions and 6 deletions

View File

@@ -126,8 +126,11 @@ 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
localized_translation_label: Translation
translate:
translate: Translate
localized_translation_label: Translation
localized_translation_language: Choose language
localized_translation_name: Name
zoom_in_edit: zoom in to edit the map
logout: logout
loading_auth: "Connecting to OpenStreetMap..."

View File

@@ -160,7 +160,12 @@
"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",
"translate": {
"translate": "Translate",
"localized_translation_label": "Translation",
"localized_translation_language": "Choose language",
"localized_translation_name": "Name"
},
"localized_translation_label": "Translation",
"zoom_in_edit": "zoom in to edit the map",
"logout": "logout",

View File

@@ -23,7 +23,7 @@ iD.ui.preset.localized = function(field, context) {
.attr('class', 'icon plus');
translateButton.call(bootstrap.tooltip()
.title(t('translate'))
.title(t('translate.translate'))
.placement('top'));
localizedInputs = selection.append('div')
@@ -99,13 +99,13 @@ iD.ui.preset.localized = function(field, context) {
wrap.append('label')
.attr('class','form-label')
.text(t('localized_translation_label'))
.text(t('translate.localized_translation_label'))
.attr('for','localized-lang');
wrap.append('input')
.attr('class', 'localized-lang')
.attr('type', 'text')
.attr('placeholder','Choose language')
.attr('placeholder',t('translate.localized_translation_language'))
.on('blur', changeLang)
.on('change', changeLang)
.call(langcombo);
@@ -114,6 +114,7 @@ iD.ui.preset.localized = function(field, context) {
.on('blur', changeValue)
.on('change', changeValue)
.attr('type', 'text')
.attr('placeholder', t('translate.localized_translation_name'))
.attr('class', 'localized-value');
wrap.append('button')