diff --git a/ui/src/locales/de.json b/ui/src/locales/de.json index d394081..8a76bf4 100644 --- a/ui/src/locales/de.json +++ b/ui/src/locales/de.json @@ -125,8 +125,23 @@ "delete": "Löschen", "importdata": "Importiere Daten in Hammond", "importdatadesc": "Wähle eine der folgenden Optionen um Daten in Hammond zu importieren", - "import": "Importiere", + "import": "Importieren", "importcsv": "Wenn du {name} nutzt um deine Fahrzeugdaten zu verwalten, exportiere die CSV Datei aus {name} und klicke hier zum importieren.", + "choosecsv": "CSV auswählen", + "choosephoto": "Foto auswählen", + "importsuccessfull": "Daten erfolgreich importiert", + "importerror": "Beim importieren der Datei ist ein Fehler aufgetreten. Details findest du in der Fehlermeldung", + "importfrom": "Importiere von {name}", + "stepstoimport": "Schritte um Daten aus {name} zu importieren", + "choosecsvimport": "Wähle die {name} CSV aus und klicke den Button zum importieren.", + "dontimportagain": "Achte darauf, dass du die Datei nicht erneut importierst, da dies zu wiederholten Einträgen führen würde.", + "checkpointsimportcsv": "Wenn du alle diese Punkte überprüft hast kannst du unten die CSV importieren.", + "importhintunits": "Vergewissere dich ebenfalls, dass die Kraftstoffeinheit und der Kraftstofftyp im Fahrzeug richtig eingestellt sind.", + "importhintcurrdist": "Stelle sicher, dass die Währung und die Entfernungseinheit in Hammond korrekt eingestellt sind. Der Import erkennt die Währung nicht automatisch aus der CSV-Datei, sondern verwendet die für den Benutzer eingestellte Währung.", + "importhintnickname": "Vergewissere dich, dass der Fahrzeugname in Hammond genau mit dem Namen in der Fuelly-CSV-Datei übereinstimmt, sonst funktioniert der Import nicht.", + "importhintvehiclecreated": "Vergewissere dich, dass du die Fahrzeuge bereits in Hammond erstellt hast.", + "importhintcreatecsv": "Exportiere deine Daten aus {name} im CSV-Format. Die Schritte dazu findest du", + "here": "hier", "unprocessedquickentries": "Du hast einen Schnelleintrag zum bearbeiten. | Du hast {0} Schnelleinträge zum bearbeiten.", "show": "Anzeigen", "loginerror": "Bei der Anmeldung ist ein Fehler aufgetreten. {msg}", diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json index 96d872b..0bb7fc0 100644 --- a/ui/src/locales/en.json +++ b/ui/src/locales/en.json @@ -130,6 +130,21 @@ "importdatadesc": "Choose from the following options to import data into Hammond", "import": "Import", "importcsv": "If you have been using {name} to store your vehicle data, export the CSV file from {name} and click here to import.", + "choosecsv": "Choose CSV", + "choosephoto": "Choose Photo", + "importsuccessfull": "Data Imported Successfully", + "importerror": "There was some issue with importing the file. Please check the error message", + "importfrom": "Import from {0}", + "stepstoimport": "Steps to import data from {name}", + "choosecsvimport": "Choose the {name} CSV and press the import button.", + "dontimportagain": "Make sure that you do not import the file again because that will create repeat entries.", + "checkpointsimportcsv": "Once you have checked all these points, just import the CSV below.", + "importhintunits": "Similiarly, make sure that the Fuel Unit and Fuel Type are correctly set in the Vehicle.", + "importhintcurrdist": "Make sure that the Currency and Distance Unit are set correctly in Hammond. Import will not autodetect Currency from the CSV but use the one set for the user.", + "importhintnickname": "Make sure that the Vehicle nickname in Hammond is exactly the same as the name on Fuelly CSV or the import will not work.", + "importhintvehiclecreated": "Make sure that you have already created the vehicles in Hammond platform.", + "importhintcreatecsv": "Export your data from {name} in the CSV format. Steps to do that can be found", + "here": "here", "unprocessedquickentries": "You have one quick entry to be processed. | You have {0} quick entries pending to be processed.", "show": "Show", "loginerror": "There was an error logging in to your account. {msg}", diff --git a/ui/src/router/views/import-fuelly.vue b/ui/src/router/views/import-fuelly.vue index 5a43d5a..3944d0d 100644 --- a/ui/src/router/views/import-fuelly.vue +++ b/ui/src/router/views/import-fuelly.vue @@ -14,13 +14,13 @@ export default { uploadButtonLabel() { if (this.isMobile) { if (this.file == null) { - return 'Choose Photo' + return this.$t('choosephoto') } else { return '' } } else { if (this.file == null) { - return 'Choose CSV' + return this.$t('choosecsv') } else { return '' } @@ -53,7 +53,7 @@ export default { .post(`/api/import/fuelly`, formData) .then((data) => { this.$buefy.toast.open({ - message: 'Data Imported Successfully', + message: this.$t('importsuccessfull'), type: 'is-success', duration: 3000, }) @@ -62,7 +62,7 @@ export default { .catch((ex) => { this.$buefy.toast.open({ duration: 5000, - message: 'There was some issue with importing the file. Please check the error message', + message: this.$t('importerror'), position: 'is-bottom', type: 'is-danger', }) @@ -82,33 +82,27 @@ export default {
-

Import from Fuelly

+

{{ $t('importfrom', { 'name': 'Fuelly' }) }}


-

Steps to import data from Fuelly

+

{{ $t('stepstoimport', { 'name': 'Fuelly' }) }}

    -
  1. Export your data from Fuelly in the CSV format. Steps to do that can be found - here.
  2. -
  3. Make sure that you have already created the vehicles in Hammond platform.
  4. -
  5. Make sure that the Vehicle nickname in Hammond is exactly the same as the name on Fuelly CSV or the import will not work.
  6. -
  7. Make sure that the Currency and Distance Unit are set correctly in Hammond. Import will not autodetect Currency from the - CSV but use the one set for the user.
  8. -
  9. Similiarly, make sure that the Fuel Unit and Fuel Type are correctly set in the Vehicle.
  10. -
  11. Once you have checked all these points,just import the CSV below.
  12. -
  13. Make sure that you do not import the file again and that will create repeat entries.
  14. +
  15. {{ $t('importhintcreatecsv', { 'name': 'Fuelly' }) }} {{ $t('here') }}.
  16. +
  17. {{ $t('importhintvehiclecreated') }}
  18. +
  19. {{ $t('importhintnickname') }}
  20. +
  21. +
  22. +
  23. {{ $t('checkpointsimportcsv') }}
  24. +
  25. {{ $t('dontimportagain') }}
-

Choose the Fuelly CSV and press the import button.

+

{{ $t('choosecsvimport', { 'name': 'Fuelly' }) }}

- - Import + + {{ $t('import') }}