Commit 04c5bb08 authored by Markus Opolka's avatar Markus Opolka
Browse files

Change frontend to french

parent ca7e6522
...@@ -61,19 +61,19 @@ ...@@ -61,19 +61,19 @@
icon: 'home' icon: 'home'
}, { }, {
href: '/letters', href: '/letters',
title: 'Letters', title: 'Lettres',
icon: 'mail_outline' icon: 'mail_outline'
}, { }, {
href: '/metadata', href: '/metadata',
title: 'Metadata', title: 'Métadonnées',
icon: 'apps' icon: 'apps'
}, { }, {
href: '/features', href: '/features',
title: 'Features', title: 'Caractéristiques',
icon: 'menu' icon: 'menu'
}, { }, {
href: '/search', href: '/search',
title: 'Search', title: 'Recherche',
icon: 'search' icon: 'search'
}] }]
} }
......
...@@ -6,8 +6,15 @@ ...@@ -6,8 +6,15 @@
</v-flex> </v-flex>
<v-flex xs12> <v-flex xs12>
<p>Features are annotated properties of each letter. They have a category, a type and a subtype. These properties are hierarchical.</p> <p>
<p>With the feature search you can quickly lookup the annotated features within all categories. The search supports regular expressions and can be restricted to a single letter.</p> les caractéristiques sont les propriétés de chaque lettre. Elles disposent d'une catégorie, d'un type et d'un sous-type organisés de manière hierarchique.
</p>
<p>
La 'Recherche de caractéristique' facilite la recherche rapipde de toute sorte de traits propres aux lettres.
La 'Recherche de caractéristique' soutient également les expressions régulières et peut être restreinte à une seule lettre.
</p>
</v-flex> </v-flex>
...@@ -53,8 +60,8 @@ ...@@ -53,8 +60,8 @@
<!-- Search Buttons --> <!-- Search Buttons -->
<v-flex xs12 md3> <v-flex xs12 md3>
<v-btn @click="validate" color="blue-grey darken-2" class="white--text">Search</v-btn> <v-btn @click="validate" color="blue-grey darken-2" class="white--text">Rechercher</v-btn>
<v-btn @click="clear" color="blue-grey darken-2" class="white--text">Clear</v-btn> <v-btn @click="clear" color="blue-grey darken-2" class="white--text">Supprimer</v-btn>
</v-flex> </v-flex>
<!-- Invalid Search Warning --> <!-- Invalid Search Warning -->
...@@ -73,7 +80,7 @@ ...@@ -73,7 +80,7 @@
<v-flex xs12 v-if="results"> <v-flex xs12 v-if="results">
<v-card color="blue-grey lighten-1" class="white--text"> <v-card color="blue-grey lighten-1" class="white--text">
<v-card-text> <v-card-text>
Results: {{results.length}} letter(s) - {{countedHits}} hit(s) Lettre(s): {{results.length}} dont résultat(s): {{countedHits}}
</v-card-text> </v-card-text>
</v-card> </v-card>
</v-flex> </v-flex>
...@@ -92,7 +99,7 @@ export default { ...@@ -92,7 +99,7 @@ export default {
data () { data () {
// Search for Features in Letters // Search for Features in Letters
return { return {
header: 'Feature Search', header: 'Recherche de caractéristiques',
invalid: false, invalid: false,
searching: false, searching: false,
feature_categories_glossary: [], feature_categories_glossary: [],
...@@ -103,9 +110,9 @@ export default { ...@@ -103,9 +110,9 @@ export default {
feature_subtype: '', feature_subtype: '',
results: null, results: null,
letters: [ letters: [
{ text: 'All' } { text: 'Toutes' }
], ],
selected: 'All' selected: 'Toutes'
} }
}, },
methods: { methods: {
...@@ -121,7 +128,7 @@ export default { ...@@ -121,7 +128,7 @@ export default {
let url = 'http://localhost:3000/api/features/' let url = 'http://localhost:3000/api/features/'
// Adding the lettername to the API endpoint // Adding the lettername to the API endpoint
if (this.selected !== 'All') { if (this.selected !== 'Toutes') {
url = url + this.selected url = url + this.selected
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<v-flex xs5> <v-flex xs5>
<v-card> <v-card>
<v-card-text> <v-card-text>
<v-checkbox label="Show Comments" v-model="showComments"></v-checkbox> <v-checkbox label="Montrer commentaires" v-model="showComments"></v-checkbox>
<ul style="list-style-type:none;" class="letter-text"> <ul style="list-style-type:none;" class="letter-text">
<li v-for="(value, key) in letter.text.body.l" :class="value._attributes.no" v-if="hasText(formatText(value._text))"> <li v-for="(value, key) in letter.text.body.l" :class="value._attributes.no" v-if="hasText(formatText(value._text))">
{{value._attributes.no }}: {{ formatText(value._text) }} {{value._attributes.no }}: {{ formatText(value._text) }}
...@@ -129,12 +129,12 @@ export default { ...@@ -129,12 +129,12 @@ export default {
} }
// So we can iterate in the template // So we can iterate in the template
this.features.push({text: 'Material and Visuals', root: data.body.TEI.teiHeader.xenoData.paratext}) this.features.push({text: 'caractéristiques visuelles', root: data.body.TEI.teiHeader.xenoData.paratext})
this.features.push({text: 'Graphemics', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.graphische_charaktersitika}) this.features.push({text: 'caractéristiques graphiques', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.graphische_charaktersitika})
this.features.push({text: 'Lexical', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.lexikalische_charaktersitika}) this.features.push({text: 'caractéristiques lexicales', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.lexikalische_charaktersitika})
this.features.push({text: 'Morphosyntactics', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.morphosyntaktische_charakterisitka}) this.features.push({text: 'caractéristiques morphosyntaxiques', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.morphosyntaktische_charakterisitka})
this.features.push({text: 'Pragmatics', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.textstrukturelle_pragmatische_charakterisitka}) this.features.push({text: 'caractéristiques pragmatiques', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.textstrukturelle_pragmatische_charakterisitka})
this.features.push({text: 'Discourse', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.diskurstraditionelle_ebene}) this.features.push({text: 'caractéristiques de tradition discursive', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.diskurstraditionelle_ebene})
// Do this last for progress bar // Do this last for progress bar
this.letter = data.body.TEI this.letter = data.body.TEI
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
name: 'Letters', name: 'Letters',
data () { data () {
return { return {
header: 'Letters', header: 'Lettres',
letters: null, letters: null,
reloading: false, reloading: false,
timeout: 1000, timeout: 1000,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<v-card-title> <v-card-title>
<v-text-field <v-text-field
append-icon="search" append-icon="search"
label="Search" label="Recherche"
single-line single-line
hide-details hide-details
v-model="search" v-model="search"
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
data () { data () {
// Metadata Overview in Letters // Metadata Overview in Letters
return { return {
header: 'Metadata', header: 'Métadonnées',
max25chars: (v) => v.length <= 25 || 'Input too long!', max25chars: (v) => v.length <= 25 || 'Input too long!',
tmp: '', tmp: '',
search: '', search: '',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<span class="title">{{letter.name}}</span><v-chip label color="lime accent-4">{{letter.collection}}</v-chip> <span class="title">{{letter.name}}</span><v-chip label color="lime accent-4">{{letter.collection}}</v-chip>
<v-chip color="indigo" text-color="white" v-if="letter.hits"> <v-chip color="indigo" text-color="white" v-if="letter.hits">
<v-avatar class="indigo darken-4">{{letter.hits}}</v-avatar> <v-avatar class="indigo darken-4">{{letter.hits}}</v-avatar>
Hits résultat(s)
</v-chip> </v-chip>
</v-card-title> </v-card-title>
<v-card-text> <v-card-text>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<v-chip outline small color="secondary"> {{hit._text}} </v-chip> <v-chip outline small color="secondary"> {{hit._text}} </v-chip>
<v-chip label small v-if="has(hit, '_attributes')"> <v-chip label small v-if="has(hit, '_attributes')">
<span v-if="has(hit._attributes, 'no')" >Line: {{(hit._attributes.no)}}</span> <span v-if="has(hit._attributes, 'no')" >Ligne: {{(hit._attributes.no)}}</span>
<span v-if="has(hit._attributes, 'category')" >Category: {{(hit._attributes.category)}}</span> <span v-if="has(hit._attributes, 'category')" >Category: {{(hit._attributes.category)}}</span>
<span v-if="has(hit._attributes, 'type')" >, Type: {{(hit._attributes.type)}}</span> <span v-if="has(hit._attributes, 'type')" >, Type: {{(hit._attributes.type)}}</span>
<span v-if="has(hit._attributes, 'subtype')" >, Subtype: {{(hit._attributes.subtype)}}</span> <span v-if="has(hit._attributes, 'subtype')" >, Subtype: {{(hit._attributes.subtype)}}</span>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</ul> </ul>
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-btn :to="letter.link" flat>View</v-btn> <v-btn :to="letter.link" flat>Montrer</v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</template> </template>
......
...@@ -6,31 +6,19 @@ ...@@ -6,31 +6,19 @@
</v-flex> </v-flex>
<v-flex xs12> <v-flex xs12>
<p>With the search you can search for regular expressions with in all tags and corresponding contents.</p> <p>Ci-dessous, il est possible de rechercher toute sorte de tag et de co-occurrence graphique à l'aide des expressions régulières.</p>
</v-flex>
<!-- Search Help --> <div class="subheading">Syntaxe</div>
<v-flex xs12> <p>Rechercher <strong>contenu</strong> dans un <strong>tag</strong>: <strong>tag:contenu</strong></p>
<v-expansion-panel>
<v-expansion-panel-content> <p>Quand le tag n'est pas spécifié, le texte sert de base de recherche.</p>
<div slot="header">Toggle Syntax Help</div>
<v-card>
<v-card-text class="grey lighten-3">
<p>Content in an element: <strong>element:content</strong> (Regular Expressions are supported)</p>
<p>If no element is provided, the text will be searched.</p>
<!-- <p>Attribute of an element: <strong>element@attribute=value</strong></p> -->
<!-- <p>Attribute and content: <strong>element@attribute=value:content</strong></p> -->
</v-card-text>
</v-card>
</v-expansion-panel-content>
</v-expansion-panel>
</v-flex> </v-flex>
<!-- Main Input Field --> <!-- Main Input Field -->
<v-flex xs12 md9> <v-flex xs12 md9>
<v-text-field <v-text-field
v-model="search" v-model="search"
label="Query" label="Entrée"
data-vv-search="search" data-vv-search="search"
required required
@keyup.enter.native="validate" @keyup.enter.native="validate"
...@@ -39,8 +27,8 @@ ...@@ -39,8 +27,8 @@
<!-- Search Buttons --> <!-- Search Buttons -->
<v-flex xs12 md3> <v-flex xs12 md3>
<v-btn @click="validate" color="blue-grey darken-2" class="white--text">Search</v-btn> <v-btn @click="validate" color="blue-grey darken-2" class="white--text">Rechercher</v-btn>
<v-btn @click="clear" color="blue-grey darken-2" class="white--text">Clear</v-btn> <v-btn @click="clear" color="blue-grey darken-2" class="white--text">Supprimer</v-btn>
</v-flex> </v-flex>
<!-- Options --> <!-- Options -->
...@@ -63,7 +51,7 @@ ...@@ -63,7 +51,7 @@
<v-flex xs12 v-if="results"> <v-flex xs12 v-if="results">
<v-card color="blue-grey lighten-1" class="white--text"> <v-card color="blue-grey lighten-1" class="white--text">
<v-card-text> <v-card-text>
Results: {{results.length}} letter(s) Résultats: {{results.length}} lettre(s)
</v-card-text> </v-card-text>
</v-card> </v-card>
</v-flex> </v-flex>
...@@ -83,7 +71,7 @@ export default { ...@@ -83,7 +71,7 @@ export default {
name: 'Search', name: 'Search',
data () { data () {
return { return {
header: 'Search', header: 'Rechercher',
invalid: false, invalid: false,
search: '', search: '',
pattern: '^([a-z]+):(.+)', pattern: '^([a-z]+):(.+)',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment