« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateContentContentHeading.js3
-rw-r--r--src/content/dependencies/generateRelationsContentHeading.js3
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js7
-rw-r--r--src/data/things/Track.js1
-rw-r--r--src/strings-default.yaml3
5 files changed, 15 insertions, 2 deletions
diff --git a/src/content/dependencies/generateContentContentHeading.js b/src/content/dependencies/generateContentContentHeading.js
index 3281caba..b311890b 100644
--- a/src/content/dependencies/generateContentContentHeading.js
+++ b/src/content/dependencies/generateContentContentHeading.js
@@ -46,7 +46,8 @@ export default {
 
           const name =
             (data.nameStyle === 'utility' ||
-             data.nameStyle === 'unofficial'
+             data.nameStyle === 'unofficial' ||
+             data.nameStyle === 'unofficial localization'
               ? null
               : data.name);
 
diff --git a/src/content/dependencies/generateRelationsContentHeading.js b/src/content/dependencies/generateRelationsContentHeading.js
index f4fd6ad4..60d90424 100644
--- a/src/content/dependencies/generateRelationsContentHeading.js
+++ b/src/content/dependencies/generateRelationsContentHeading.js
@@ -19,7 +19,8 @@ export default {
   generate(data, relations, slots, {html, language}) {
     const namePart =
       (data.nameStyle === 'utility' ||
-       data.nameStyle === 'unofficial'
+       data.nameStyle === 'unofficial' ||
+       data.nameStyle === 'unofficial localization'
         ? null
         : html.tag('i', data.name));
 
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 08217561..ac96e072 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -194,6 +194,13 @@ export default {
                   name: data.name,
                 }))),
 
+          data.nameStyle === 'unofficial localization' &&
+            html.tag('p',
+              html.tag('i',
+                language.$('releaseInfo.unofficialLocalization', {
+                  name: data.name,
+                }))),
+
           relations.releaseInfo,
 
           html.tag('p',
diff --git a/src/data/things/Track.js b/src/data/things/Track.js
index a368a15b..1fb2071f 100644
--- a/src/data/things/Track.js
+++ b/src/data/things/Track.js
@@ -152,6 +152,7 @@ export class Track extends Thing {
           'normal',
           'utility',
           'unofficial',
+          'unofficial localization',
         ])),
       }),
 
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index ee7dff25..cadd2f02 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -302,6 +302,9 @@ releaseInfo:
   unofficialName: >-
     "{NAME}" is marked, on this wiki, as an unofficial name.
 
+  unofficialLocalization: >-
+    "{NAME}" is marked, on this wiki, as an unofficial localization.
+
   duration: "Duration: {DURATION}."
 
   contributors: "Contributors:"