From 6618d59375ef507dc5e7d458bd76e9498339904a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no>
Date: Fri, 25 Sep 2020 14:38:41 +0200
Subject: [PATCH] =?UTF-8?q?lokalisering=20bokm=C3=A5l/nynorsk?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/inflection/Adjective.vue     | 21 ++++++++++++++++-----
 src/components/inflection/AdjectiveMF.vue   | 21 ++++++++++++++++-----
 src/components/inflection/Determinative.vue | 12 ++++++++++--
 src/components/inflection/Noun.vue          | 16 ++++++++++++----
 src/components/inflection/Verb.vue          | 18 +++++++++++++-----
 5 files changed, 67 insertions(+), 21 deletions(-)

diff --git a/src/components/inflection/Adjective.vue b/src/components/inflection/Adjective.vue
index 3d9c98b3..cbe6d50b 100644
--- a/src/components/inflection/Adjective.vue
+++ b/src/components/inflection/Adjective.vue
@@ -1,16 +1,19 @@
 <template>
   <table>
     <tr>
-      <th rowspan="2">Adjektiv</th><th colspan="3">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th>
+      <th rowspan="2">Adjektiv</th>
+      <th colspan="3">{{i18n[0]}}</th>
+      <th>{{i18n[1]}}</th>
+      <th colspan="3">Gradbøying</th>
     </tr>
     <tr>
-      <th>Hankjønn og hunkjønn</th>
-      <th>Intetkjønn</th>
-      <th>Bestemt form</th>
+      <th>Han/{{i18n[2]}}kjønn</th>
+      <th>{{i18n[3]}}kjønn</th>
+      <th>B{{i18n[4]}} form</th>
       <th></th>
       <th>Komparativ</th>
       <th>Superlativ</th>
-      <th>Superlativ, bestemt form</th>
+      <th>Superlativ, b{{i18n[4]}} form</th>
     </tr>
     <tr v-for="(std, index) in standardisations" :key="index">
       <td></td>
@@ -30,6 +33,14 @@ export default {
   name: "ADJ",
   props: {
     standardisations: Array
+  },
+  computed: {
+    i18n: function() {
+      return {
+        bob: ['Entall', 'Flertall', 'Hun', 'Intet', 'estemt'],
+        nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje', 'unden']
+      }[this.$route.params.lang]
+    }
   }
 }
 </script>
diff --git a/src/components/inflection/AdjectiveMF.vue b/src/components/inflection/AdjectiveMF.vue
index 7b0eea28..f0d7712d 100644
--- a/src/components/inflection/AdjectiveMF.vue
+++ b/src/components/inflection/AdjectiveMF.vue
@@ -1,17 +1,20 @@
 <template>
   <table>
     <tr>
-      <th rowspan="2">Adjektiv</th><th colspan="4">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th>
+      <th rowspan="2">Adjektiv</th>
+      <th colspan="4">{{i18n[0]}}</th>
+      <th>{{i18n[1]}}</th>
+      <th colspan="3">Gradbøying</th>
     </tr>
     <tr>
       <th>Hankjønn</th>
-      <th>Hokjønn</th>
-      <th>Inkjekjønn</th>
-      <th>Bunden form</th>
+      <th>{{i18n[2]}}kjønn</th>
+      <th>{{i18n[3]}}kjønn</th>
+      <th>B{{i18n[4]}} form</th>
       <th></th>
       <th>Komparativ</th>
       <th>Superlativ</th>
-      <th>Superlativ, bunden form</th>
+      <th>Superlativ, b{{i18n[4]}} form</th>
     </tr>
     <tr v-for="(std, index) in standardisations" :key="index">
       <td></td>
@@ -32,6 +35,14 @@ export default {
   name: "ADJ_masc_fem",
   props: {
     standardisations: Array
+  },
+  computed: {
+    i18n: function() {
+      return {
+        bob: ['Entall', 'Flertall', 'Hun', 'Intet', 'estemt'],
+        nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje', 'unden']
+      }[this.$route.params.lang]
+    }
   }
 }
 </script>
diff --git a/src/components/inflection/Determinative.vue b/src/components/inflection/Determinative.vue
index 04040fc5..f1ff082f 100644
--- a/src/components/inflection/Determinative.vue
+++ b/src/components/inflection/Determinative.vue
@@ -1,10 +1,10 @@
 <template>
   <table>
     <tr>
-      <th rowspan="2">Determinativ</th><th colspan="3">Entall</th><th rowspan="2">Flertall</th>
+      <th rowspan="2">Determinativ</th><th colspan="3">{{i18n[0]}}</th><th rowspan="2">{{i18n[1]}}</th>
     </tr>
     <tr>
-      <th>Hankjønn</th><th>Hunkjønn</th><th>Intetkjønn</th>
+      <th>Hankjønn</th><th>{{i18n[2]}}kjønn</th><th>{{i18n[3]}}kjønn</th>
     </tr>
     <tr v-for="(std, index) in standardisations" :key="index">
       <td></td>
@@ -21,6 +21,14 @@ export default {
   name: "DET",
   props: {
     standardisations: Array
+  },
+  computed: {
+    i18n: function() {
+      return {
+        bob: ['Entall', 'Flertall', 'Hun', 'Intet'],
+        nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje']
+      }[this.$route.params.lang]
+    }
   }
 }
 </script>
diff --git a/src/components/inflection/Noun.vue b/src/components/inflection/Noun.vue
index ac8a7ded..32fa3bfa 100644
--- a/src/components/inflection/Noun.vue
+++ b/src/components/inflection/Noun.vue
@@ -1,14 +1,14 @@
 <template>
   <table>
     <tr>
-      <th rowspan="2">Substantiv</th><th colspan="2">Entall</th><th colspan="2">Flertall</th>
+      <th rowspan="2">Substantiv</th><th colspan="2">{{i18n[0]}}</th><th colspan="2">{{i18n[1]}}</th>
     </tr>
     <tr>
-      <th>Ubestemt</th><th>Bestemt</th><th>Ubestemt</th><th>Bestemt</th>
+      <th>{{i18n[2]}}</th><th>{{i18n[3]}}</th><th>{{i18n[2]}}</th><th>{{i18n[3]}}</th>
     </tr>
     <tr v-for="(std, index) in standardisations" :key="index">
-      <th>{{std.tags[1]}}</th>
-      <td>{{std.inflection[0].word_form}}</td>
+      <th>{{i18n[4][std.tags[1]][0]}}</th>
+      <td>{{i18n[4][std.tags[1]][1]}} {{std.inflection[0].word_form}}</td>
       <td>{{std.inflection[1].word_form}}</td>
       <td>{{std.inflection[2].word_form}}</td>
       <td>{{std.inflection[3].word_form}}</td>
@@ -21,6 +21,14 @@ export default {
   name: "NOUN",
   props: {
     standardisations: Array
+  },
+  computed: {
+    i18n: function() {
+      return {
+        bob: ['Entall', 'Flertall', 'Ubestemt', 'Bestemt', {Masc: ['mask.', 'en'], Fem: ['fem.', 'ei'], Neuter: ['nøytr.', 'et']}],
+        nob: ['Eintal', 'Fleirtal', 'Ubunden', 'Bunden', {Masc: ['mask.', 'ein'], Fem: ['fem.', 'ei'], Neuter: ['nøytr.', 'eit']}]
+      }[this.$route.params.lang]
+    }
   }
 }
 </script>
diff --git a/src/components/inflection/Verb.vue b/src/components/inflection/Verb.vue
index 4a320f68..4f5b0c3c 100644
--- a/src/components/inflection/Verb.vue
+++ b/src/components/inflection/Verb.vue
@@ -11,14 +11,14 @@
       <th rowspan="2">Presens partisipp</th>
     </tr>
     <tr>
-      <th>Hankjønn/hunkjønn</th>
-      <th>Intetkjønn</th>
-      <th>Bestemt form</th>
-      <th>Flertall</th>
+      <th>Han/{{i18n[0]}}kjønn</th>
+      <th>{{i18n[1]}}kjønn</th>
+      <th>{{i18n[2]}} form</th>
+      <th>{{i18n[3]}}</th>
     </tr>
     <tr v-for="(std, index) in standardisations" :key="index">
       <th></th>
-      <td>Ã¥ {{std.inflection[0].word_form + (std.inflection[1].word_form ? '/' + std.inflection[1].word_form   : '')}}</td>
+      <td>Ã¥<span v-html="'&nbsp;'"></span>{{std.inflection[0].word_form + (std.inflection[1].word_form ? '/' + std.inflection[1].word_form   : '')}}</td>
       <td>{{std.inflection[2].word_form}}</td>
       <td>{{std.inflection[5].word_form}}</td>
       <td>har {{std.inflection[6].word_form}}</td>
@@ -37,6 +37,14 @@ export default {
   name: "VERB",
   props: {
     standardisations: Array
+  },
+  computed: {
+    i18n: function() {
+      return {
+        bob: ['hun', 'Intet', 'Bestemt', 'Flertall'],
+        nob: ['ho', 'Inkje', 'Bunden', 'Fleirtal']
+      }[this.$route.params.lang]
+    }
   }
 }
 </script>
-- 
GitLab