Skip to content

Commit c588e34

Browse files
committed
translating fuelly import page
1 parent 6871a40 commit c588e34

File tree

3 files changed

+47
-23
lines changed

3 files changed

+47
-23
lines changed

ui/src/locales/de.json

+16-1
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,23 @@
125125
"delete": "Löschen",
126126
"importdata": "Importiere Daten in Hammond",
127127
"importdatadesc": "Wähle eine der folgenden Optionen um Daten in Hammond zu importieren",
128-
"import": "Importiere",
128+
"import": "Importieren",
129129
"importcsv": "Wenn du {name} nutzt um deine Fahrzeugdaten zu verwalten, exportiere die CSV Datei aus {name} und klicke hier zum importieren.",
130+
"choosecsv": "CSV auswählen",
131+
"choosephoto": "Foto auswählen",
132+
"importsuccessfull": "Daten erfolgreich importiert",
133+
"importerror": "Beim importieren der Datei ist ein Fehler aufgetreten. Details findest du in der Fehlermeldung",
134+
"importfrom": "Importiere von {name}",
135+
"stepstoimport": "Schritte um Daten aus {name} zu importieren",
136+
"choosecsvimport": "Wähle die {name} CSV aus und klicke den Button zum importieren.",
137+
"dontimportagain": "Achte darauf, dass du die Datei nicht erneut importierst, da dies zu wiederholten Einträgen führen würde.",
138+
"checkpointsimportcsv": "Wenn du alle diese Punkte überprüft hast kannst du unten die CSV importieren.",
139+
"importhintunits": "Vergewissere dich ebenfalls, dass die <u>Kraftstoffeinheit</u> und der <u>Kraftstofftyp</u> im Fahrzeug richtig eingestellt sind.",
140+
"importhintcurrdist": "Stelle sicher, dass die <u>Währung</u> und die <u>Entfernungseinheit</u> 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.",
141+
"importhintnickname": "Vergewissere dich, dass der Fahrzeugname in Hammond genau mit dem Namen in der Fuelly-CSV-Datei übereinstimmt, sonst funktioniert der Import nicht.",
142+
"importhintvehiclecreated": "Vergewissere dich, dass du die Fahrzeuge bereits in Hammond erstellt hast.",
143+
"importhintcreatecsv": "Exportiere deine Daten aus {name} im CSV-Format. Die Schritte dazu findest du",
144+
"here": "hier",
130145
"unprocessedquickentries": "Du hast einen Schnelleintrag zum bearbeiten. | Du hast {0} Schnelleinträge zum bearbeiten.",
131146
"show": "Anzeigen",
132147
"loginerror": "Bei der Anmeldung ist ein Fehler aufgetreten. {msg}",

ui/src/locales/en.json

+15
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,21 @@
130130
"importdatadesc": "Choose from the following options to import data into Hammond",
131131
"import": "Import",
132132
"importcsv": "If you have been using {name} to store your vehicle data, export the CSV file from {name} and click here to import.",
133+
"choosecsv": "Choose CSV",
134+
"choosephoto": "Choose Photo",
135+
"importsuccessfull": "Data Imported Successfully",
136+
"importerror": "There was some issue with importing the file. Please check the error message",
137+
"importfrom": "Import from {0}",
138+
"stepstoimport": "Steps to import data from {name}",
139+
"choosecsvimport": "Choose the {name} CSV and press the import button.",
140+
"dontimportagain": "Make sure that you do not import the file again because that will create repeat entries.",
141+
"checkpointsimportcsv": "Once you have checked all these points, just import the CSV below.",
142+
"importhintunits": "Similiarly, make sure that the <u>Fuel Unit</u> and <u>Fuel Type</u> are correctly set in the Vehicle.",
143+
"importhintcurrdist": "Make sure that the <u>Currency</u> and <u>Distance Unit</u> are set correctly in Hammond. Import will not autodetect Currency from the CSV but use the one set for the user.",
144+
"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.",
145+
"importhintvehiclecreated": "Make sure that you have already created the vehicles in Hammond platform.",
146+
"importhintcreatecsv": "Export your data from {name} in the CSV format. Steps to do that can be found",
147+
"here": "here",
133148
"unprocessedquickentries": "You have one quick entry to be processed. | You have {0} quick entries pending to be processed.",
134149
"show": "Show",
135150
"loginerror": "There was an error logging in to your account. {msg}",

ui/src/router/views/import-fuelly.vue

+16-22
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ export default {
1414
uploadButtonLabel() {
1515
if (this.isMobile) {
1616
if (this.file == null) {
17-
return 'Choose Photo'
17+
return this.$t('choosephoto')
1818
} else {
1919
return ''
2020
}
2121
} else {
2222
if (this.file == null) {
23-
return 'Choose CSV'
23+
return this.$t('choosecsv')
2424
} else {
2525
return ''
2626
}
@@ -53,7 +53,7 @@ export default {
5353
.post(`/api/import/fuelly`, formData)
5454
.then((data) => {
5555
this.$buefy.toast.open({
56-
message: 'Data Imported Successfully',
56+
message: this.$t('importsuccessfull'),
5757
type: 'is-success',
5858
duration: 3000,
5959
})
@@ -62,7 +62,7 @@ export default {
6262
.catch((ex) => {
6363
this.$buefy.toast.open({
6464
duration: 5000,
65-
message: 'There was some issue with importing the file. Please check the error message',
65+
message: this.$t('importerror'),
6666
position: 'is-bottom',
6767
type: 'is-danger',
6868
})
@@ -82,33 +82,27 @@ export default {
8282
<Layout>
8383
<div class="columns box">
8484
<div class="column">
85-
<h1 class="title">Import from Fuelly</h1>
85+
<h1 class="title">{{ $t('importfrom', { 'name': 'Fuelly' }) }}</h1>
8686
</div>
8787
</div>
8888
<br />
8989
<div class="columns">
9090
<div class="column">
91-
<p class="subtitle"> Steps to import data from Fuelly</p>
91+
<p class="subtitle"> {{ $t('stepstoimport', { 'name': 'Fuelly' }) }}</p>
9292
<ol>
93-
<li
94-
>Export your data from Fuelly in the CSV format. Steps to do that can be found
95-
<a href="http://docs.fuelly.com/acar-import-export-center" target="_nofollow">here</a>.</li
96-
>
97-
<li>Make sure that you have already created the vehicles in Hammond platform.</li>
98-
<li>Make sure that the Vehicle nickname in Hammond is exactly the same as the name on Fuelly CSV or the import will not work.</li>
99-
<li
100-
>Make sure that the <u>Currency</u> and <u>Distance Unit</u> are set correctly in Hammond. Import will not autodetect Currency from the
101-
CSV but use the one set for the user.</li
102-
>
103-
<li>Similiarly, make sure that the <u>Fuel Unit</u> and <u>Fuel Type</u> are correctly set in the Vehicle.</li>
104-
<li>Once you have checked all these points,just import the CSV below.</li>
105-
<li><b>Make sure that you do not import the file again and that will create repeat entries.</b></li>
93+
<li>{{ $t('importhintcreatecsv', { 'name': 'Fuelly' }) }} <a href="http://docs.fuelly.com/acar-import-export-center" target="_nofollow">{{ $t('here') }}</a>.</li>
94+
<li>{{ $t('importhintvehiclecreated') }}</li>
95+
<li>{{ $t('importhintnickname') }}</li>
96+
<li v-html="$t('importhintcurrdist')"></li>
97+
<li v-html="$t('importhintunits')"></li>
98+
<li>{{ $t('checkpointsimportcsv') }}</li>
99+
<li><b>{{ $t('dontimportagain') }}</b></li>
106100
</ol>
107101
</div>
108102
</div>
109103
<div class="section box">
110104
<div class="columns">
111-
<div class="column is-two-thirds"> <p class="subtitle">Choose the Fuelly CSV and press the import button.</p></div>
105+
<div class="column is-two-thirds"> <p class="subtitle">{{ $t('choosecsvimport', { 'name': 'Fuelly' }) }}</p></div>
112106
<div class="column is-one-third is-flex is-align-content-center">
113107
<form @submit.prevent="importFuelly">
114108
<div class="columns"
@@ -126,8 +120,8 @@ export default {
126120
</b-field>
127121
</div>
128122
<div class="column">
129-
<b-button tag="input" native-type="submit" :disabled="tryingToCreate" type="is-primary" value="Upload File" class="control">
130-
Import
123+
<b-button tag="input" native-type="submit" :disabled="tryingToCreate" type="is-primary" :value="this.$t('uploadfile')" class="control">
124+
{{ $t('import') }}
131125
</b-button>
132126
</div></div
133127
>

0 commit comments

Comments
 (0)