forked from MapComplete/MapComplete
Better upload image flow: more feedback for users
This commit is contained in:
parent
e601807fc5
commit
ab0d314330
8 changed files with 97 additions and 24 deletions
|
@ -45,7 +45,6 @@ export default class Translation extends UIElement {
|
|||
return txt;
|
||||
}
|
||||
const en = this.translations["en"];
|
||||
console.warn("No translation for language ", Locale.language.data, "for", en);
|
||||
if (en !== undefined) {
|
||||
return en;
|
||||
}
|
||||
|
|
|
@ -629,6 +629,11 @@ export default class Translations {
|
|||
nl: 'Bezig met een foto te uploaden...',
|
||||
fr: 'Mettre votre photo en ligne'
|
||||
}),
|
||||
uploadingMultiple: new T({
|
||||
en: 'Uploading {count} of your picture...',
|
||||
nl: 'Bezig met {count} foto\'s te uploaden...',
|
||||
fr: 'Mettre votre {count} photos en ligne'
|
||||
}),
|
||||
pleaseLogin: new T({
|
||||
en: 'Please login to add a picure or to answer questions',
|
||||
nl: 'Gelieve je aan te melden om een foto toe te voegen of vragen te beantwoorden',
|
||||
|
@ -646,6 +651,14 @@ export default class Translations {
|
|||
en: "Please respect privacy. Do not photograph people nor license plates",
|
||||
nl: "Respecteer privacy. Fotografeer geen mensen of nummerplaten",
|
||||
fr: "TODO: fr"
|
||||
}),
|
||||
uploadFailed: new T({
|
||||
en: "Could not upload your picture. Do you have internet and are third party API's allowed? Brave browser or UMatrix might block them.",
|
||||
nl: "Afbeelding uploaden mislukt. Heb je internet? Gebruik je Brave of UMatrix? Dan moet je derde partijen toelaten."
|
||||
}),
|
||||
uploadDone: new T({
|
||||
en: "<span class='thanks'>Your picture has been added. Thanks for helping out!</span>",
|
||||
nl: "<span class='thanks'>Je afbeelding is toegevoegd. Bedankt om te helpen!</span>"
|
||||
})
|
||||
},
|
||||
centerMessage: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue