i18n to the header

This commit is contained in:
Henrique Dias 2017-07-31 17:13:12 +01:00
parent 744973293a
commit 17ca020f01
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
2 changed files with 13 additions and 8 deletions

View File

@ -1,19 +1,19 @@
<template> <template>
<header> <header>
<div> <div>
<button @click="openSidebar" aria-label="Toggle sidebar" title="Toggle sidebar" class="action"> <button @click="openSidebar" :aria-label="$t('buttons.toggleSidebar')" :title="$t('buttons.toggleSidebar')" class="action">
<i class="material-icons">menu</i> <i class="material-icons">menu</i>
</button> </button>
<img src="../assets/logo.svg" alt="File Manager"> <img src="../assets/logo.svg" alt="File Manager">
<search></search> <search></search>
</div> </div>
<div> <div>
<button @click="openSearch" aria-label="Search" title="Search" class="search-button action"> <button @click="openSearch" :aria-label="$t('buttons.search')" :title="$t('buttons.search')" class="search-button action">
<i class="material-icons">search</i> <i class="material-icons">search</i>
</button> </button>
<button v-show="showSaveButton" aria-label="Save" class="action" id="save-button"> <button v-show="showSaveButton" :aria-label="$t('buttons.save')" :title="$t('buttons.save')" class="action" id="save-button">
<i class="material-icons" title="Save">save</i> <i class="material-icons">save</i>
</button> </button>
<div v-for="plugin in plugins" :key="plugin.name"> <div v-for="plugin in plugins" :key="plugin.name">
@ -30,7 +30,7 @@
</button> </button>
</div> </div>
<button @click="openMore" id="more" aria-label="More" title="More" class="action"> <button @click="openMore" id="more" :aria-label="$t('buttons.more')" :title="$t('buttons.more')" class="action">
<i class="material-icons">more_vert</i> <i class="material-icons">more_vert</i>
</button> </button>
@ -71,9 +71,9 @@
<upload-button v-show="showUpload"></upload-button> <upload-button v-show="showUpload"></upload-button>
<info-button v-show="showCommonButton"></info-button> <info-button v-show="showCommonButton"></info-button>
<button v-show="showSelectButton" @click="openSelect" aria-label="Select multiple" class="action"> <button v-show="showSelectButton" @click="openSelect" :aria-label="$t('buttons.selectMultiple')" :title="$t('buttons.selectMultiple')" class="action">
<i class="material-icons">check_circle</i> <i class="material-icons">check_circle</i>
<span>Select</span> <span>{{ $t('buttons.select') }}</span>
</button> </button>
</div> </div>
<div v-show="showOverlay" @click="resetPrompts" class="overlay"></div> <div v-show="showOverlay" @click="resetPrompts" class="overlay"></div>

View File

@ -15,6 +15,8 @@
"moveFile": "Move file", "moveFile": "Move file",
"rename": "Rename", "rename": "Rename",
"switchView": "Swicth view", "switchView": "Swicth view",
"toggleSidebar": "Toggle sidebar",
"more": "More",
"upload": "Upload", "upload": "Upload",
"cancel": "Cancel", "cancel": "Cancel",
"create": "Create", "create": "Create",
@ -23,7 +25,10 @@
"update": "Update", "update": "Update",
"save": "Save", "save": "Save",
"new": "New", "new": "New",
"ok": "OK" "ok": "OK",
"search": "Search",
"selectMultiple": "Select multiple",
"select": "Select"
}, },
"errors": { "errors": {
"forbidden": "You're not welcome here.", "forbidden": "You're not welcome here.",