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

Change frontend to french

parent ca7e6522
......@@ -61,19 +61,19 @@
icon: 'home'
}, {
href: '/letters',
title: 'Letters',
title: 'Lettres',
icon: 'mail_outline'
}, {
href: '/metadata',
title: 'Metadata',
title: 'Métadonnées',
icon: 'apps'
}, {
href: '/features',
title: 'Features',
title: 'Caractéristiques',
icon: 'menu'
}, {
href: '/search',
title: 'Search',
title: 'Recherche',
icon: 'search'
}]
}
......
......@@ -6,8 +6,15 @@
</v-flex>
<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>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>
<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>
......@@ -53,8 +60,8 @@
<!-- Search Buttons -->
<v-flex xs12 md3>
<v-btn @click="validate" color="blue-grey darken-2" class="white--text">Search</v-btn>
<v-btn @click="clear" color="blue-grey darken-2" class="white--text">Clear</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">Supprimer</v-btn>
</v-flex>
<!-- Invalid Search Warning -->
......@@ -73,7 +80,7 @@
<v-flex xs12 v-if="results">
<v-card color="blue-grey lighten-1" class="white--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>
</v-flex>
......@@ -92,7 +99,7 @@ export default {
data () {
// Search for Features in Letters
return {
header: 'Feature Search',
header: 'Recherche de caractéristiques',
invalid: false,
searching: false,
feature_categories_glossary: [],
......@@ -103,9 +110,9 @@ export default {
feature_subtype: '',
results: null,
letters: [
{ text: 'All' }
{ text: 'Toutes' }
],
selected: 'All'
selected: 'Toutes'
}
},
methods: {
......@@ -121,7 +128,7 @@ export default {
let url = 'http://localhost:3000/api/features/'
// Adding the lettername to the API endpoint
if (this.selected !== 'All') {
if (this.selected !== 'Toutes') {
url = url + this.selected
}
......
......@@ -39,7 +39,7 @@
<v-flex xs5>
<v-card>
<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">
<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) }}
......@@ -129,12 +129,12 @@ export default {
}
// 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: 'Graphemics', 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: 'Morphosyntactics', 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: 'Discourse', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.diskurstraditionelle_ebene})
this.features.push({text: 'caractéristiques visuelles', root: data.body.TEI.teiHeader.xenoData.paratext})
this.features.push({text: 'caractéristiques graphiques', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.graphische_charaktersitika})
this.features.push({text: 'caractéristiques lexicales', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.lexikalische_charaktersitika})
this.features.push({text: 'caractéristiques morphosyntaxiques', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.morphosyntaktische_charakterisitka})
this.features.push({text: 'caractéristiques pragmatiques', root: data.body.TEI.teiHeader.xenoData.sprachliche_ebene.textstrukturelle_pragmatische_charakterisitka})
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
this.letter = data.body.TEI
......
......@@ -56,7 +56,7 @@ export default {
name: 'Letters',
data () {
return {
header: 'Letters',
header: 'Lettres',
letters: null,
reloading: false,
timeout: 1000,
......
......@@ -9,7 +9,7 @@
<v-card-title>
<v-text-field
append-icon="search"
label="Search"
label="Recherche"
single-line
hide-details
v-model="search"
......@@ -64,7 +64,7 @@ export default {
data () {
// Metadata Overview in Letters
return {
header: 'Metadata',
header: 'Métadonnées',
max25chars: (v) => v.length <= 25 || 'Input too long!',
tmp: '',
search: '',
......
......@@ -4,7 +4,7 @@
<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-avatar class="indigo darken-4">{{letter.hits}}</v-avatar>
Hits
résultat(s)
</v-chip>
</v-card-title>
<v-card-text>
......@@ -13,7 +13,7 @@
<v-chip outline small color="secondary"> {{hit._text}} </v-chip>
<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, 'type')" >, Type: {{(hit._attributes.type)}}</span>
<span v-if="has(hit._attributes, 'subtype')" >, Subtype: {{(hit._attributes.subtype)}}</span>
......@@ -30,7 +30,7 @@
</ul>
</v-card-text>
<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>
</template>
......
......@@ -6,31 +6,19 @@
</v-flex>
<v-flex xs12>
<p>With the search you can search for regular expressions with in all tags and corresponding contents.</p>
</v-flex>
<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>
<!-- Search Help -->
<v-flex xs12>
<v-expansion-panel>
<v-expansion-panel-content>
<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>
<div class="subheading">Syntaxe</div>
<p>Rechercher <strong>contenu</strong> dans un <strong>tag</strong>: <strong>tag:contenu</strong></p>
<p>Quand le tag n'est pas spécifié, le texte sert de base de recherche.</p>
</v-flex>
<!-- Main Input Field -->
<v-flex xs12 md9>
<v-text-field
v-model="search"
label="Query"
label="Entrée"
data-vv-search="search"
required
@keyup.enter.native="validate"
......@@ -39,8 +27,8 @@
<!-- Search Buttons -->
<v-flex xs12 md3>
<v-btn @click="validate" color="blue-grey darken-2" class="white--text">Search</v-btn>
<v-btn @click="clear" color="blue-grey darken-2" class="white--text">Clear</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">Supprimer</v-btn>
</v-flex>
<!-- Options -->
......@@ -63,7 +51,7 @@
<v-flex xs12 v-if="results">
<v-card color="blue-grey lighten-1" class="white--text">
<v-card-text>
Results: {{results.length}} letter(s)
Résultats: {{results.length}} lettre(s)
</v-card-text>
</v-card>
</v-flex>
......@@ -83,7 +71,7 @@ export default {
name: 'Search',
data () {
return {
header: 'Search',
header: 'Rechercher',
invalid: false,
search: '',
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