Adds new correct singular data label

This commit is contained in:
Rodrigo Guimarães 2020-11-24 18:16:37 -03:00
parent 78da7a31d6
commit 29112799b3
3 changed files with 10 additions and 6 deletions

View File

@ -211,8 +211,14 @@
</b-field>
<b-field>
<b-checkbox>
{{ $i18n.get('label_repository_metadatum') }}
<b-checkbox
class="is-inline-block"
v-model="editForm.repository_level"
name="repository_level"
true-value="yes"
false-value="no"
>
{{ $i18n.get('label_repository_metadata') }}
</b-checkbox>
</b-field>
</b-field>
@ -288,13 +294,10 @@
}
},
created() {
this.editForm = this.editedMetadatum;
this.formErrors = this.editForm.formErrors != undefined ? this.editForm.formErrors : {};
this.formErrorMessage = this.editForm.formErrors != undefined ? this.editForm.formErrorMessage : '';
this.oldForm = JSON.parse(JSON.stringify(this.originalMetadatum));
},
mounted() {
// Fills hook forms with it's real values

View File

@ -3,7 +3,7 @@ import { SnackbarProgrammatic as Snackbar } from 'buefy';
import { ModalProgrammatic as Modal } from 'buefy';
import CustomDialog from '../components/other/custom-dialog.vue'
// Simpler version of the i18n plugin to translate error feedbac messages
// Simpler version of the i18n plugin to translate error feedback messages
const i18nGet = function (key) {
let string = tainacan_plugin.i18n[key];
return (string !== undefined && string !== null && string !== '' ) ? string : "ERROR: Invalid i18n key!";

View File

@ -434,6 +434,7 @@ return apply_filters( 'tainacan-admin-i18n', [
'label_document_uploaded' => __( 'Document uploaded', 'tainacan' ),
'label_repository_filter' => __( 'Repository filter', 'tainacan' ),
'label_repository_metadatum' => __( 'Repository metadatum', 'tainacan' ),
'label_repository_metadata' => __( 'Repository metadata', 'tainacan' ),
'label_collection_filter' => __( 'Collection filter', 'tainacan' ),
'label_collection_metadatum' => __( 'Collection metadatum', 'tainacan' ),
'label_collection_capabilities' => __( 'Collection capabilities', 'tainacan' ),