Cleanup, translate Splash

This commit is contained in:
John Firebaugh
2013-02-12 20:16:53 -08:00
parent 02ed91096a
commit 806de963db
10 changed files with 68 additions and 19 deletions
+2 -4
View File
@@ -148,10 +148,8 @@ iD.ui = function(context) {
context.enter(iD.modes.Browse(context));
if (!context.storage('sawSplash')) {
iD.ui.splash(context.container());
context.storage('sawSplash', true);
}
context.container()
.call(iD.ui.Splash(context));
if (history.lock() && history.restorableChanges()) {
context.container()
+26 -15
View File
@@ -1,21 +1,32 @@
iD.ui.splash = function(selection) {
var modal = iD.ui.modal(selection);
iD.ui.Splash = function(context) {
return function(selection) {
if (context.storage('sawSplash'))
return;
modal.select('.modal')
.attr('class', 'modal-splash modal');
context.storage('sawSplash', true);
var introModal = modal.select('.content')
.append('div')
.attr('class', 'modal-section fillL');
var modal = iD.ui.modal(selection);
introModal.append('div')
.attr('class','logo');
modal.select('.modal')
.attr('class', 'modal-splash modal');
introModal.append('div')
.html("<h2 class>Welcome to the iD OpenStreetMap editor</h2><p>" +
"This is development version 0.0.0-alpha1. " +
"For more information see <a href='http://ideditor.com/'>ideditor.com</a>" +
" and report bugs at <a href='https://github.com'>github.com.systemed/iD</a>.</p>");
var introModal = modal.select('.content')
.append('div')
.attr('class', 'modal-section fillL');
return modal;
introModal.append('div')
.attr('class', 'logo');
var div = introModal.append('div');
div.append("h2")
.text(t('splash.welcome'));
div.append("p")
.html(t('splash.text', {
version: iD.version,
website: '<a href="http://ideditor.com/">ideditor.com</a>',
github: '<a href="https://github.com/systemed/iD">github.com</a>'
}));
}
};
+5
View File
@@ -196,6 +196,11 @@ locale.da = {
unsaved_changes: "Du har ændringer der ikke er gemt endnu",
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "live",
dev: "dev"
+5
View File
@@ -196,6 +196,11 @@ locale.de = {
unsaved_changes: "Ungespeicherte Änderugen vorhanden",
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "live",
dev: "dev"
+5
View File
@@ -196,6 +196,11 @@ locale.en = {
unsaved_changes: "You have unsaved changes"
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "live",
dev: "dev"
+5
View File
@@ -196,6 +196,11 @@ locale.es = {
unsaved_changes: "Tienes cambios sin guardar" //"You have unsaved changes",
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "en vivo", //"live",
dev: "dev"
+5
View File
@@ -196,6 +196,11 @@ locale.fr = {
unsaved_changes: "Vous avez des modifications non enregistrées"
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "live",
dev: "dev"
+5
View File
@@ -196,6 +196,11 @@ locale.ja = {
unsaved_changes: "変更が保存されていません"
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "本番サーバ",
dev: "開発サーバ"
+5
View File
@@ -196,6 +196,11 @@ locale.lv = {
unsaved_changes: "Jums ir nesaglabātas izmaiņas"
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "live",
dev: "dev"
+5
View File
@@ -196,6 +196,11 @@ locale.tr = {
unsaved_changes: "Kaydedilmemiş değişiklikleriniz var"
},
splash: {
welcome: "Welcome to the iD OpenStreetMap editor",
text: "This is development version {version}. For more information see {website} and report bugs at {github}."
},
source_switch: {
live: "canlı",
dev: "geliştirme"