Translate toolbox

This commit is contained in:
Florian Dupret 2021-04-29 09:10:49 +02:00
commit 9d986f0304
3 changed files with 11 additions and 10 deletions

View file

@ -54,6 +54,7 @@
"image": "Image", "image": "Image",
"image-upload-failed": "Image upload failed", "image-upload-failed": "Image upload failed",
"import": "Import", "import": "Import",
"keyword": "Keyword",
"monday": "Monday", "monday": "Monday",
"name": "Name", "name": "Name",
"no": "No", "no": "No",
@ -62,6 +63,7 @@
"random": "Random", "random": "Random",
"recent": "Recent", "recent": "Recent",
"recipes": "Recipes", "recipes": "Recipes",
"rename-object": "Rename {0}",
"reset": "Reset", "reset": "Reset",
"saturday": "Saturday", "saturday": "Saturday",
"save": "Save", "save": "Save",
@ -161,18 +163,18 @@
"recent": "Recent" "recent": "Recent"
}, },
"recipe": { "recipe": {
"assets": "Assets",
"add-key": "Add Key", "add-key": "Add Key",
"api-extras": "API Extras", "api-extras": "API Extras",
"assets": "Assets",
"calories": "Calories", "calories": "Calories",
"calories-suffix": "calories", "calories-suffix": "calories",
"carbohydrate-content": "Carbohydrate",
"categories": "Categories", "categories": "Categories",
"delete-confirmation": "Are you sure you want to delete this recipe?", "delete-confirmation": "Are you sure you want to delete this recipe?",
"delete-recipe": "Delete Recipe", "delete-recipe": "Delete Recipe",
"description": "Description", "description": "Description",
"fat-content": "Fat", "fat-content": "Fat",
"fiber-content": "Fiber", "fiber-content": "Fiber",
"carbohydrate-content": "Carbohydrate",
"grams": "grams", "grams": "grams",
"ingredient": "Ingredient", "ingredient": "Ingredient",
"ingredients": "Ingredients", "ingredients": "Ingredients",

View file

@ -4,7 +4,7 @@
ref="assignDialog" ref="assignDialog"
title-icon="mdi-tag" title-icon="mdi-tag"
color="primary" color="primary"
title="Bulk Assign" :title="$t('settings.toolbox.bulk-assign')"
:loading="loading" :loading="loading"
modal-width="700" modal-width="700"
:top="true" :top="true"
@ -13,7 +13,7 @@
<v-text-field <v-text-field
v-model="search" v-model="search"
autocomplete="off" autocomplete="off"
label="Keyword" :label="$t('general.keyword')"
></v-text-field> ></v-text-field>
<CategoryTagSelector <CategoryTagSelector
:tag-selector="false" :tag-selector="false"

View file

@ -18,8 +18,7 @@
</v-form> </v-form>
<template slot="below-actions"> <template slot="below-actions">
<v-card-title class="headline"> <v-card-title class="headline">
{{ renameTarget.recipes.length || 0 }} {{ $tc("settings.toolbox.recipes-affected", renameTarget.recipes.length || 0) }}
{{ $t("settings.toolbox.recipes-affected") }}
</v-card-title> </v-card-title>
<MobileRecipeCard <MobileRecipeCard
class="ml-2 mr-2 mt-2 mb-2" class="ml-2 mr-2 mt-2 mb-2"
@ -94,10 +93,10 @@
<v-card-title class="py-1">{{ item.name }}</v-card-title> <v-card-title class="py-1">{{ item.name }}</v-card-title>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn small text color="info" @click="openEditDialog(item)"> <v-btn small text color="info" @click="openEditDialog(item)">
Edit {{$t('general.edit')}}
</v-btn> </v-btn>
<v-btn small text color="error" @click="deleteItem(item.slug)" <v-btn small text color="error" @click="deleteItem(item.slug)">
>Delete {{$t('general.delete')}}
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
@ -177,7 +176,7 @@ export default {
} }
this.renameTarget = { this.renameTarget = {
title: `Rename ${item.name}`, title:this.$t('general.rename-object', [item.name]),
name: item.name, name: item.name,
slug: item.slug, slug: item.slug,
newName: "", newName: "",