translation fixes

This commit is contained in:
Kaibu 2021-11-03 21:34:18 +01:00
parent a40c8c3f83
commit 2215e06506
6 changed files with 220 additions and 209 deletions

View File

@ -28,6 +28,8 @@
<script type="application/javascript"> <script type="application/javascript">
window.IMAGE_PLACEHOLDER = "{% static 'assets/recipe_no_image.svg' %}" window.IMAGE_PLACEHOLDER = "{% static 'assets/recipe_no_image.svg' %}"
window.CUSTOM_LOCALE = '{{ request.LANGUAGE_CODE }}'
{% if current_file_size_mb %} {% if current_file_size_mb %}
window.CURRENT_FILE_SIZE_MB = {{ current_file_size_mb|unlocalize }} window.CURRENT_FILE_SIZE_MB = {{ current_file_size_mb|unlocalize }}
window.MAX_FILE_SIZE_MB = {{ max_file_size_mb|unlocalize }} window.MAX_FILE_SIZE_MB = {{ max_file_size_mb|unlocalize }}

View File

@ -119,7 +119,7 @@ export default {
createNew: function () { createNew: function () {
let apiClient = new ApiApiFactory() let apiClient = new ApiApiFactory()
apiClient.createRecipeBook({name: 'New Book', description: '', icon: '', shared: []}).then(result => { apiClient.createRecipeBook({name: this.$t('New_Cookbook'), description: '', icon: '', shared: []}).then(result => {
let new_book = result.data let new_book = result.data
this.refreshData() this.refreshData()
StandardToasts.makeStandardToast(StandardToasts.SUCCESS_CREATE) StandardToasts.makeStandardToast(StandardToasts.SUCCESS_CREATE)

View File

@ -203,7 +203,7 @@
</a> </a>
</div> </div>
<div class="col-md-3 col-6"> <div class="col-md-3 col-6">
<button class="btn btn-block btn-primary shadow-none disabled" v-b-tooltip.focus.top :title="$t('Coming-Soon')">{{ $t('Auto-Planner') }}</button> <button class="btn btn-block btn-primary shadow-none disabled" v-b-tooltip.focus.top :title="$t('Coming_Soon')">{{ $t('Auto_Planner') }}</button>
</div> </div>
<div class="col-12 d-flex justify-content-center mt-2 d-block d-md-none"> <div class="col-12 d-flex justify-content-center mt-2 d-block d-md-none">
<b-button-toolbar key-nav aria-label="Toolbar with button groups"> <b-button-toolbar key-nav aria-label="Toolbar with button groups">
@ -377,6 +377,7 @@ export default {
} }
}) })
this.$root.$on('change', this.updateEmoji); this.$root.$on('change', this.updateEmoji);
this.$i18n.locale = window.CUSTOM_LOCALE
}, },
watch: { watch: {
settings: { settings: {

View File

@ -156,7 +156,7 @@ export default {
this.getItems({page:1},'left') this.getItems({page:1},'left')
} }
}) })
this.$i18n.locale = window.CUSTOM_LOCALE
}, },
methods: { methods: {
// this.genericAPI inherited from ApiMixin // this.genericAPI inherited from ApiMixin

View File

@ -19,7 +19,7 @@
"Fats": "Fette", "Fats": "Fette",
"Carbohydrates": "Kohlenhydrate", "Carbohydrates": "Kohlenhydrate",
"Calories": "Kalorien", "Calories": "Kalorien",
"Energy": "", "Energy": "Energie",
"Nutrition": "Nährwerte", "Nutrition": "Nährwerte",
"Keywords": "Stichwörter", "Keywords": "Stichwörter",
"Books": "Bücher", "Books": "Bücher",
@ -169,11 +169,11 @@
"Week": "Woche", "Week": "Woche",
"Month": "Monat", "Month": "Monat",
"Year": "Jahr", "Year": "Jahr",
"Drag_Here_To_Delete": "Hierher ziehen zum löschen", "Drag_Here_To_Delete": "Ziehen zum löschen",
"Select_File": "Datei auswählen", "Select_File": "Datei auswählen",
"Image": "Bild", "Image": "Bild",
"Planner": "Planer", "Planner": "Planer",
"Planner_Settings": "Planer Einstellungen", "Planner_Settings": "Einstellungen Essensplan",
"Period": "Zeitraum", "Period": "Zeitraum",
"Clone": "Kopieren", "Clone": "Kopieren",
"file_upload_disabled": "Das Hochladen von Dateien ist für deinen Space nicht aktiviert.", "file_upload_disabled": "Das Hochladen von Dateien ist für deinen Space nicht aktiviert.",
@ -203,5 +203,9 @@
"Shopping_List_Empty": "Deine Einkaufsliste ist aktuell leer, Einträge können via dem Kontextmenü hinzugefügt werden (Rechtsklick auf einen Eintrag oder Klick auf das Menü-Icon)", "Shopping_List_Empty": "Deine Einkaufsliste ist aktuell leer, Einträge können via dem Kontextmenü hinzugefügt werden (Rechtsklick auf einen Eintrag oder Klick auf das Menü-Icon)",
"Next_Period": "Zeitraum vor", "Next_Period": "Zeitraum vor",
"Previous_Period": "Zeitraum zurück", "Previous_Period": "Zeitraum zurück",
"Current_Period": "Aktueller Zeitraum" "Current_Period": "Aktueller Zeitraum",
"New_Cookbook": "Neues Kochbuch",
"Coming_Soon": "Bald verfügbar",
"Auto_Planner": "Automatisch Planen",
"Hide_Keyword": "Keywords schließen"
} }

View File

@ -201,5 +201,9 @@
"Previous_Period": "Previous Period", "Previous_Period": "Previous Period",
"Current_Period": "Current Period", "Current_Period": "Current Period",
"Next_Day": "Next Day", "Next_Day": "Next Day",
"Previous_Day": "Previous Day" "Previous_Day": "Previous Day",
"Coming_Soon": "Coming-Soon",
"Auto_Planner": "Auto-Planner",
"New_Cookbook": "New cookbook",
"Hide_Keyword": "Hide keywords"
} }