Browse Source

Fix : Making lang keys readable

pull/360/head
Naveen MR 4 years ago
parent
commit
f9508c2d44
  1. 14
      packages/nc-gui/components/createOrEditProject.vue
  2. 20
      packages/nc-gui/components/project/settings/xcMeta.vue
  3. 6
      packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue
  4. 38
      packages/nc-gui/static/lang/en.json
  5. 38
      packages/nc-gui/static/lang/es.json
  6. 18
      packages/nc-gui/static/lang/fr.json
  7. 38
      packages/nc-gui/static/lang/ja.json
  8. 38
      packages/nc-gui/static/lang/zh.json

14
packages/nc-gui/components/createOrEditProject.vue

@ -378,7 +378,7 @@
class="body-2 db-select"
:items="Object.keys(databaseNames)"
v-model="client[dbIndex]"
v-bind:label="$t('projects.ext_db.credentials.label_1')"
v-bind:label="$t('projects.ext_db.credentials.db_type')"
@change="
onDatabaseTypeChanged(
client[dbIndex],
@ -429,7 +429,7 @@
<v-text-field
:rules="form.folderRequiredRule"
v-model="db.connection.connection.filename"
v-bind:label="$t('projects.ext_db.credentials.label_2')"
v-bind:label="$t('projects.ext_db.credentials.sqlite_file')"
v-ge="['project', 'env-db-file']"
@click="selectSqliteFile(db)"
>
@ -445,7 +445,7 @@
class="body-2"
:rules="form.requiredRule"
v-model="db.connection.host"
v-bind:label="$t('projects.ext_db.credentials.label_3')"
v-bind:label="$t('projects.ext_db.credentials.host_address')"
></v-text-field>
</v-col>
<!-- Port Number -->
@ -454,7 +454,7 @@
class="body-2"
v-ge="['project', 'env-db-port']"
v-model="db.connection.port"
v-bind:label="$t('projects.ext_db.credentials.label_4')"
v-bind:label="$t('projects.ext_db.credentials.port')"
:rules="form.portValidationRule"
></v-text-field>
</v-col>
@ -465,7 +465,7 @@
v-ge="['project', 'env-db-user']"
:rules="form.requiredRule"
v-model="db.connection.user"
v-bind:label="$t('projects.ext_db.credentials.label_5')"
v-bind:label="$t('projects.ext_db.credentials.username')"
></v-text-field>
</v-col>
<!-- Password -->
@ -480,7 +480,7 @@
:ref="`password${envKey}`"
v-ge="['project', 'env-db-password']"
v-model="db.connection.password"
v-bind:label="$t('projects.ext_db.credentials.label_6')"
v-bind:label="$t('projects.ext_db.credentials.password')"
>
<template v-slot:append>
<v-icon
@ -508,7 +508,7 @@
:rules="form.requiredRule"
v-model="db.connection.database"
v-ge="['project', 'env-db-name']"
v-bind:label="$t('projects.ext_db.credentials.label_7')"
v-bind:label="$t('projects.ext_db.credentials.db_create_if_not_exists')"
></v-text-field>
</v-col>
<v-col class="" v-if="db.client !== 'sqlite3'">

20
packages/nc-gui/components/project/settings/xcMeta.vue

@ -15,7 +15,7 @@
<tr>
<td>
<!-- Export all metadata from the meta tables to meta directory. -->
{{ $t('management.meta.operation_1.desc') }}
{{ $t('management.meta.export_to_file.desc') }}
</td>
<td>
<v-btn
@ -28,7 +28,7 @@
>
<v-icon small>mdi-export</v-icon>&nbsp;
<!-- Export to file -->
{{ $t('management.meta.operation_1') }}
{{ $t('management.meta.export_to_file') }}
</v-btn>
</td>
</tr>
@ -36,7 +36,7 @@
<tr>
<td>
<!-- Import all metadata from the meta directory to meta tables. -->
{{ $t('management.meta.operation_2.desc') }}
{{ $t('management.meta.import.desc') }}
</td>
<td>
<v-btn
@ -50,7 +50,7 @@
<v-icon small>mdi-import</v-icon>&nbsp;
<!-- Import -->
{{ $t('management.meta.operation_2') }}
{{ $t('management.meta.import') }}
</v-btn>
</td>
</tr>
@ -58,7 +58,7 @@
<tr>
<td>
<!-- Export project meta to zip file and download. -->
{{ $t('management.meta.operation_3.desc') }}
{{ $t('management.meta.export_to_zip.desc') }}
</td>
<td>
<v-btn
@ -71,14 +71,14 @@
>
<v-icon small>mdi-export</v-icon>&nbsp;
<!-- Export zip -->
{{ $t('management.meta.operation_3') }}
{{ $t('management.meta.export_to_zip') }}
</v-btn>
</td>
</tr>
<tr>
<td>
<!-- Import project meta zip file and restart. -->
{{ $t('management.meta.operation_4.desc') }}
{{ $t('management.meta.import_zip.desc') }}
</td>
<td>
<v-btn
@ -92,7 +92,7 @@
<v-icon small>mdi-import</v-icon>&nbsp;
<!-- Import Zip -->
{{ $t('management.meta.operation_4') }}
{{ $t('management.meta.import_zip') }}
</v-btn>
<input
@ -107,7 +107,7 @@
<tr>
<td>
<!-- Clear all metadata from meta tables. -->
{{ $t('management.meta.operation_5.desc') }}
{{ $t('management.meta.reset.desc') }}
</td>
<td>
<v-btn
@ -120,7 +120,7 @@
>
<v-icon small>mdi-delete-variant</v-icon>&nbsp;
<!-- Reset -->
{{ $t('management.meta.operation_5') }}
{{ $t('management.meta.reset') }}
</v-btn>
</td>
</tr>

6
packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

@ -336,7 +336,7 @@
<v-list-item-title>
<span class="font-weight-regular">
<!-- Views List -->
{{ $t('nav_drawer.advanced.option1') }}
{{ $t('nav_drawer.advanced.views_list') }}
</span>
</v-list-item-title>
</v-list-item>
@ -349,11 +349,11 @@
<v-list-item v-on="on" @click="copyapiUrlToClipboard">
<v-icon x-small class="mr-2">mdi-content-copy</v-icon>
<!-- Copy API URL -->
<span class="caption">{{ $t('nav_drawer.advanced.option1') }}</span>
<span class="caption">{{ $t('nav_drawer.advanced.views_list') }}</span>
</v-list-item>
</template>
<!-- Copy API URL -->
{{ $t('nav_drawer.advanced.option1') }}
{{ $t('nav_drawer.advanced.views_list') }}
</v-tooltip>
<template v-if="_isUIAllowed('model')">
<v-divider class="advance-menu-divider"></v-divider>

38
packages/nc-gui/static/lang/en.json

@ -34,13 +34,13 @@
"projects.ext_db.button.cancel": "Cancel",
"projects.ext_db.button.cancel_tooltip": "Cancel and Return",
"projects.ext_db.credentials": "Database Credentials",
"projects.ext_db.credentials.label_1": "Database Type",
"projects.ext_db.credentials.label_2": "SQLite File",
"projects.ext_db.credentials.label_3": "Host Address",
"projects.ext_db.credentials.label_4": "Port Number",
"projects.ext_db.credentials.label_5": "Username",
"projects.ext_db.credentials.label_6": "Password",
"projects.ext_db.credentials.label_7": "Database : create if not exists",
"projects.ext_db.credentials.db_type": "Database Type",
"projects.ext_db.credentials.sqlite_file": "SQLite File",
"projects.ext_db.credentials.host_address": "Host Address",
"projects.ext_db.credentials.port": "Port Number",
"projects.ext_db.credentials.username": "Username",
"projects.ext_db.credentials.password": "Password",
"projects.ext_db.credentials.db_create_if_not_exists": "Database : create if not exists",
"projects.ext_db.credentials.button.test_db_conn": "Test Database Connection",
"projects.ext_db.credentials.button.remove_db_from_env": "Remove Database from environment",
"projects.ext_db.credentials.advanced": "SSL & Advanced parameters",
@ -116,8 +116,8 @@
"nav_drawer.virtual_views.form": "Form",
"nav_drawer.virtual_views.form.create": "Add Form View",
"nav_drawer.advanced.title1": "Share View",
"nav_drawer.advanced.option1": "Views List",
"nav_drawer.advanced.title2": "Copy API URL",
"nav_drawer.advanced.views_list": "Views List",
"nav_drawer.advanced.copy_api_url": "Copy API URL",
"nav_drawer.share_view.title": "This view is shared via a private link",
"nav_drawer.share_view.body": "People with private link can only see cells visible in this view",
"nav_drawer.share_view.toggle.option1": "Restrict access with a password",
@ -128,14 +128,14 @@
"management.tabs.api": "API Tokens Management",
"management.tabs.roles": "Roles Management",
"management.meta.title": "Metadata Operations",
"management.meta.operation_1": "Export to file",
"management.meta.operation_2": "Import",
"management.meta.operation_3": "Export zip",
"management.meta.operation_4": "Import zip",
"management.meta.operation_5": "Reset",
"management.meta.operation_1.desc": "Export all metadata from the meta tables to meta directory.",
"management.meta.operation_2.desc": "Import all metadata from the meta directory to meta tables.",
"management.meta.operation_3.desc": "Export project meta to zip file and download.",
"management.meta.operation_4.desc": "Import project meta zip file and restart.",
"management.meta.operation_5.desc": "Clear all metadata from meta tables."
"management.meta.export_to_file": "Export to file",
"management.meta.import": "Import",
"management.meta.export_to_zip": "Export zip",
"management.meta.import_zip": "Import zip",
"management.meta.reset": "Reset",
"management.meta.export_to_file.desc": "Export all metadata from the meta tables to meta directory.",
"management.meta.import.desc": "Import all metadata from the meta directory to meta tables.",
"management.meta.export_to_zip.desc": "Export project meta to zip file and download.",
"management.meta.import_zip.desc": "Import project meta zip file and restart.",
"management.meta.reset.desc": "Clear all metadata from meta tables."
}

38
packages/nc-gui/static/lang/es.json

@ -34,13 +34,13 @@
"projects.ext_db.button.cancel": "Cancelar",
"projects.ext_db.button.cancel_tooltip": "Cancelar and Regresar",
"projects.ext_db.credentials": "Credenciales de Base de Datos",
"projects.ext_db.credentials.label_1": "Tipo de Base de Datos",
"projects.ext_db.credentials.label_2": "Archivo SQLite",
"projects.ext_db.credentials.label_3": "Host Address",
"projects.ext_db.credentials.label_4": "Puerto",
"projects.ext_db.credentials.label_5": "Usuario",
"projects.ext_db.credentials.label_6": "Contraseña",
"projects.ext_db.credentials.label_7": "Base de datos : crear si no existe",
"projects.ext_db.credentials.db_type": "Tipo de Base de Datos",
"projects.ext_db.credentials.sqlite_file": "Archivo SQLite",
"projects.ext_db.credentials.host_address": "Host Address",
"projects.ext_db.credentials.port": "Puerto",
"projects.ext_db.credentials.username": "Usuario",
"projects.ext_db.credentials.password": "Contraseña",
"projects.ext_db.credentials.db_create_if_not_exists": "Base de datos : crear si no existe",
"projects.ext_db.credentials.button.test_db_conn": "Probar conexión a base de datos",
"projects.ext_db.credentials.button.remove_db_from_env": "Eliminar base de datos del ambiente",
"projects.ext_db.credentials.advanced": "SSL & parámetros avanzados",
@ -116,8 +116,8 @@
"nav_drawer.virtual_views.form": "Formulario",
"nav_drawer.virtual_views.form.create": "Agregar vista del Formulario",
"nav_drawer.advanced.title1": "Compartir vista",
"nav_drawer.advanced.option1": "Listar vistas",
"nav_drawer.advanced.title2": "Copiar URL del API",
"nav_drawer.advanced.views_list": "Listar vistas",
"nav_drawer.advanced.copy_api_url": "Copiar URL del API",
"nav_drawer.share_view.title": "Esta vista es compartida por link privado",
"nav_drawer.share_view.body": "Personas con el link privado podrán únicamente ver celdas visibles a esta vista",
"nav_drawer.share_view.toggle.option1": "Restringir acceso mediante contraseña",
@ -128,14 +128,14 @@
"management.tabs.api": "Administrar tokens del API",
"management.tabs.roles": "Administrar roles",
"management.meta.title": "Operaciones del Metadata",
"management.meta.operation_1": "Exportar a archivo",
"management.meta.operation_2": "Importar",
"management.meta.operation_3": "Exportar zip",
"management.meta.operation_4": "Importar zip",
"management.meta.operation_5": "Reiniciar",
"management.meta.operation_1.desc": "Exportar todos los metadada de las tablas meta al directorio meta.",
"management.meta.operation_2.desc": "Importar todos los metadata del directorio meta a las tablas meta.",
"management.meta.operation_3.desc": "Exportar proyecto meta a un archivo zip y descargar.",
"management.meta.operation_4.desc": "Importar proyecto meta a un archivo zip y reiniciar.",
"management.meta.operation_5.desc": "Limpiar todos los metadata de las tablas meta."
"management.meta.export_to_file": "Exportar a archivo",
"management.meta.import": "Importar",
"management.meta.export_to_zip": "Exportar zip",
"management.meta.import_zip": "Importar zip",
"management.meta.reset": "Reiniciar",
"management.meta.export_to_file.desc": "Exportar todos los metadada de las tablas meta al directorio meta.",
"management.meta.import.desc": "Importar todos los metadata del directorio meta a las tablas meta.",
"management.meta.export_to_zip.desc": "Exportar proyecto meta a un archivo zip y descargar.",
"management.meta.import_zip.desc": "Importar proyecto meta a un archivo zip y reiniciar.",
"management.meta.reset.desc": "Limpiar todos los metadata de las tablas meta."
}

18
packages/nc-gui/static/lang/fr.json

@ -34,13 +34,13 @@
"projects.ext_db.button.cancel": "Annuler",
"projects.ext_db.button.cancel_tooltip": "Annuler et revenir",
"projects.ext_db.credentials": "Identifiants de la base de données",
"projects.ext_db.credentials.label_1": "Type de base de données",
"projects.ext_db.credentials.label_2": "Fichier SQLite",
"projects.ext_db.credentials.label_3": "Adresse de l'hôte",
"projects.ext_db.credentials.label_4": "Numéro de port",
"projects.ext_db.credentials.label_5": "Utilisateur",
"projects.ext_db.credentials.label_6": "Mot de passe",
"projects.ext_db.credentials.label_7": "Base de données : la créér si elle n'existe pas",
"projects.ext_db.credentials.db_type": "Type de base de données",
"projects.ext_db.credentials.sqlite_file": "Fichier SQLite",
"projects.ext_db.credentials.host_address": "Adresse de l'hôte",
"projects.ext_db.credentials.port": "Numéro de port",
"projects.ext_db.credentials.username": "Utilisateur",
"projects.ext_db.credentials.password": "Mot de passe",
"projects.ext_db.credentials.db_create_if_not_exists": "Base de données : la créér si elle n'existe pas",
"projects.ext_db.credentials.button.test_db_conn": "Test la connexion à la base de données",
"projects.ext_db.credentials.button.remove_db_from_env": "Supprimer la base de données de l'environement",
"projects.ext_db.credentials.advanced": "SSL et paramètres avancés",
@ -106,8 +106,8 @@
"nav_drawer.virtual_views.form": "Formulaire",
"nav_drawer.virtual_views.form.create": "Ajouter une vue Formulaire",
"nav_drawer.advanced.title1": "Partager la vue",
"nav_drawer.advanced.option1": "Liste des vues",
"nav_drawer.advanced.title2": "Copier l'URL de l'API",
"nav_drawer.advanced.views_list": "Liste des vues",
"nav_drawer.advanced.copy_api_url": "Copier l'URL de l'API",
"nav_drawer.share_view.title": "Cette vue est partagée via un lien privé",
"nav_drawer.share_view.body": "Les personnes ayant le lien privé peuvent voir uniquement les cellules visibles de cette vue",
"nav_drawer.share_view.toggle.option1": "Restreindre l’accès à l’aide d’un mot de passe",

38
packages/nc-gui/static/lang/ja.json

@ -34,13 +34,13 @@
"projects.ext_db.button.cancel": "Cancel",
"projects.ext_db.button.cancel_tooltip": "Cancel and Return",
"projects.ext_db.credentials": "Database Credentials",
"projects.ext_db.credentials.label_1": "Database Type",
"projects.ext_db.credentials.label_2": "SQLite File",
"projects.ext_db.credentials.label_3": "Host Address",
"projects.ext_db.credentials.label_4": "Port Number",
"projects.ext_db.credentials.label_5": "Username",
"projects.ext_db.credentials.label_6": "Password",
"projects.ext_db.credentials.label_7": "Database : create if not exists",
"projects.ext_db.credentials.db_type": "Database Type",
"projects.ext_db.credentials.sqlite_file": "SQLite File",
"projects.ext_db.credentials.host_address": "Host Address",
"projects.ext_db.credentials.port": "Port Number",
"projects.ext_db.credentials.username": "Username",
"projects.ext_db.credentials.password": "Password",
"projects.ext_db.credentials.db_create_if_not_exists": "Database : create if not exists",
"projects.ext_db.credentials.button.test_db_conn": "Test Database Connection",
"projects.ext_db.credentials.button.remove_db_from_env": "Remove Database from environment",
"projects.ext_db.credentials.advanced": "SSL & Advanced parameters",
@ -106,8 +106,8 @@
"nav_drawer.virtual_views.form": "Form",
"nav_drawer.virtual_views.form.create": "Add Form View",
"nav_drawer.advanced.title1": "Share View",
"nav_drawer.advanced.option1": "Views List",
"nav_drawer.advanced.title2": "Copy API URL",
"nav_drawer.advanced.views_list": "Views List",
"nav_drawer.advanced.copy_api_url": "Copy API URL",
"nav_drawer.share_view.title": "This view is shared via a private link",
"nav_drawer.share_view.body": "People with private link can only see cells visible in this view",
"nav_drawer.share_view.toggle.option1": "Restrict access with a password",
@ -118,14 +118,14 @@
"management.tabs.api": "API Tokens Management",
"management.tabs.roles": "Roles Management",
"management.meta.title": "Metadata Operations",
"management.meta.operation_1": "Export to file",
"management.meta.operation_2": "Import",
"management.meta.operation_3": "Export zip",
"management.meta.operation_4": "Import zip",
"management.meta.operation_5": "Reset",
"management.meta.operation_1.desc": "Export all metadata from the meta tables to meta directory.",
"management.meta.operation_2.desc": "Import all metadata from the meta directory to meta tables.",
"management.meta.operation_3.desc": "Export project meta to zip file and download.",
"management.meta.operation_4.desc": "Import project meta zip file and restart.",
"management.meta.operation_5.desc": "Clear all metadata from meta tables."
"management.meta.export_to_file": "Export to file",
"management.meta.import": "Import",
"management.meta.export_to_zip": "Export zip",
"management.meta.import_zip": "Import zip",
"management.meta.reset": "Reset",
"management.meta.export_to_file.desc": "Export all metadata from the meta tables to meta directory.",
"management.meta.import.desc": "Import all metadata from the meta directory to meta tables.",
"management.meta.export_to_zip.desc": "Export project meta to zip file and download.",
"management.meta.import_zip.desc": "Import project meta zip file and restart.",
"management.meta.reset.desc": "Clear all metadata from meta tables."
}

38
packages/nc-gui/static/lang/zh.json

@ -34,13 +34,13 @@
"projects.ext_db.button.cancel": "Cancel",
"projects.ext_db.button.cancel_tooltip": "Cancel and Return",
"projects.ext_db.credentials": "Database Credentials",
"projects.ext_db.credentials.label_1": "Database Type",
"projects.ext_db.credentials.label_2": "SQLite File",
"projects.ext_db.credentials.label_3": "Host Address",
"projects.ext_db.credentials.label_4": "Port Number",
"projects.ext_db.credentials.label_5": "Username",
"projects.ext_db.credentials.label_6": "Password",
"projects.ext_db.credentials.label_7": "Database : create if not exists",
"projects.ext_db.credentials.db_type": "Database Type",
"projects.ext_db.credentials.sqlite_file": "SQLite File",
"projects.ext_db.credentials.host_address": "Host Address",
"projects.ext_db.credentials.port": "Port Number",
"projects.ext_db.credentials.username": "Username",
"projects.ext_db.credentials.password": "Password",
"projects.ext_db.credentials.db_create_if_not_exists": "Database : create if not exists",
"projects.ext_db.credentials.button.test_db_conn": "Test Database Connection",
"projects.ext_db.credentials.button.remove_db_from_env": "Remove Database from environment",
"projects.ext_db.credentials.advanced": "SSL & Advanced parameters",
@ -106,8 +106,8 @@
"nav_drawer.virtual_views.form": "Form",
"nav_drawer.virtual_views.form.create": "Add Form View",
"nav_drawer.advanced.title1": "Share View",
"nav_drawer.advanced.option1": "Views List",
"nav_drawer.advanced.title2": "Copy API URL",
"nav_drawer.advanced.views_list": "Views List",
"nav_drawer.advanced.copy_api_url": "Copy API URL",
"nav_drawer.share_view.title": "This view is shared via a private link",
"nav_drawer.share_view.body": "People with private link can only see cells visible in this view",
"nav_drawer.share_view.toggle.option1": "Restrict access with a password",
@ -118,14 +118,14 @@
"management.tabs.api": "API Tokens Management",
"management.tabs.roles": "Roles Management",
"management.meta.title": "Metadata Operations",
"management.meta.operation_1": "Export to file",
"management.meta.operation_2": "Import",
"management.meta.operation_3": "Export zip",
"management.meta.operation_4": "Import zip",
"management.meta.operation_5": "Reset",
"management.meta.operation_1.desc": "Export all metadata from the meta tables to meta directory.",
"management.meta.operation_2.desc": "Import all metadata from the meta directory to meta tables.",
"management.meta.operation_3.desc": "Export project meta to zip file and download.",
"management.meta.operation_4.desc": "Import project meta zip file and restart.",
"management.meta.operation_5.desc": "Clear all metadata from meta tables."
"management.meta.export_to_file": "Export to file",
"management.meta.import": "Import",
"management.meta.export_to_zip": "Export zip",
"management.meta.import_zip": "Import zip",
"management.meta.reset": "Reset",
"management.meta.export_to_file.desc": "Export all metadata from the meta tables to meta directory.",
"management.meta.import.desc": "Import all metadata from the meta directory to meta tables.",
"management.meta.export_to_zip.desc": "Export project meta to zip file and download.",
"management.meta.import_zip.desc": "Import project meta zip file and restart.",
"management.meta.reset.desc": "Clear all metadata from meta tables."
}

Loading…
Cancel
Save