Changeset 35714


Ignore:
Timestamp:
2021-11-01T13:21:26+13:00 (5 weeks ago)
Author:
cstephen
Message:

Add macroniser scaffolding.
Update translations.

Location:
main/trunk/model-interfaces-dev/atea
Files:
28 added
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea

    • Property svn:ignore
      •  

        old new  
        1 node_modules
         1
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/main.js

    r35508 r35714  
    160160else {
    161161    fetch("resources/interface_atea.properties")
    162         .then(async response => {
    163             const responseText = await response.text();
    164             const responseTranslations = responseText.split("\n");
     162        .then(
     163            async response => {
     164                const responseText = await response.text();
     165                const responseTranslations = responseText.split("\n");
    165166
    166             for (const translation of responseTranslations) {
    167                 const components = translation.split("=");
     167                for (const translation of responseTranslations) {
     168                    const keyvalue = translation.split("=");
    168169
    169                 if (components[0] === "") {
    170                     continue;
     170                    if (keyvalue.length !== 2) {
     171                        continue;
     172                    }
     173
     174                    const namespace = keyvalue[0].split(".");
     175                    if (namespace.length !== 3 || namespace[1] !== "asr") {
     176                        continue;
     177                    }
     178
     179                    translations.set(namespace[namespace.length - 1], keyvalue[1]);
    171180                }
    172181
    173                 const namespaceEndIndex = components[0].lastIndexOf(".");
    174                 translations.set(components[0].slice(namespaceEndIndex + 1), components.slice(1).join("="));
     182                store.commit("setTranslations", translations)
    175183            }
    176 
    177             store.commit("setTranslations", translations)
    178         });
     184        );
    179185}
  • main/trunk/model-interfaces-dev/atea/resources/interface_atea.properties

    r35518 r35714  
    1 atea.Title=Kōrero Māori Transcription Interface
    2 atea.Description=A tool to transcribe audio recordings of spoken Māori. Basic support for editing the transcriptions is provided, and they can be downloaded in multiple formats.<br />The actual transcriptions are produced with gratitude by using <a href='https://koreromaori.io'>koreromaori.io</a>'s service.
    3 atea.ErrorTryAgain=Something went wrong! Please try again
     1atea.asr.Title=Kōrero Māori Transcription Interface
     2atea.asr.Description=A tool to transcribe audio recordings of spoken Māori. Basic support for editing the transcriptions is provided, and they can be downloaded in multiple formats.<br />The actual transcriptions are produced with gratitude by using <a href='https://koreromaori.io'>koreromaori.io</a>'s service.
     3atea.asr.ErrorTryAgain=Something went wrong! Please try again
    44
    5 atea.AudioUpload_SelectFileText=Select audio file/s...
    6 atea.AudioUpload_TranscribeFiles=Transcribe
    7 atea.AudioUpload_TranscriptionFailed_Message=Failed to transcribe
    8 atea.AudioUpload_TranscriptionFailed_Reason=Reason
    9 atea.AudioUpload_AlreadyTranscribed=You have already transcribed that file!
     5atea.asr.AudioUpload_SelectFileText=Select audio file/s...
     6atea.asr.AudioUpload_TranscribeFiles=Transcribe
     7atea.asr.AudioUpload_TranscriptionFailed_Message=Failed to transcribe
     8atea.asr.AudioUpload_TranscriptionFailed_Reason=Reason
     9atea.asr.AudioUpload_AlreadyTranscribed=You have already transcribed that file!
    1010
    11 atea.TranscriptionItem_FileName=File
    12 atea.TranscriptionItem_Remove=Remove
    13 atea.TranscriptionItem_ExpandAdvancedEditor=Show Advanced Editor
    14 atea.TranscriptionItem_Download=Download Transcription
    15 atea.TranscriptionItem_DownloadAsText=Download as text
    16 atea.TranscriptionItem_DownloadAsJson=Download as JSON
    17 atea.TranscriptionItem_DownloadAsWebvtt=Download as WebVTT
    18 atea.TranscriptionItem_PlayButtonTooltip=Listen
     11atea.asr.TranscriptionItem_FileName=File
     12atea.asr.TranscriptionItem_Remove=Remove
     13atea.asr.TranscriptionItem_ExpandAdvancedEditor=Show Advanced Editor
     14atea.asr.TranscriptionItem_Download=Download Transcription
     15atea.asr.TranscriptionItem_DownloadAsText=Download as text
     16atea.asr.TranscriptionItem_DownloadAsJson=Download as JSON
     17atea.asr.TranscriptionItem_DownloadAsWebvtt=Download as WebVTT
     18atea.asr.TranscriptionItem_PlayButtonTooltip=Listen
    1919
    20 atea.TranscriptionItemEditor_ToggleEditTooltip=Toggle Edit Mode
     20atea.asr.TranscriptionItemEditor_ToggleEditTooltip=Toggle Edit Mode
     21
     22atea.macroniser.Title=Māori Macron Restoration Service
  • main/trunk/model-interfaces-dev/atea/resources/interface_atea_mi.properties

    r35518 r35714  
    1 atea.Title=Atanga Tuhituhi Kōrero Māori
    2 atea.Description=...
    3 atea.ErrorTryAgain=Kua he tetahi mea! Tena koa ngana
     1atea.asr.Title=Atanga Tuhituhi Kōrero Māori
     2atea.asr.Description=...
     3atea.asr.ErrorTryAgain=Kua he tetahi mea! Tena koa ngana
    44
    5 atea.AudioUpload_SelectFileText=Tohua he konae oro...
    6 atea.AudioUpload_TranscribeFiles=Tuhia
    7 atea.AudioUpload_TranscriptionFailed_Message=I rahua te tuhi
    8 atea.AudioUpload_TranscriptionFailed_Reason=Take
    9 atea.AudioUpload_AlreadyTranscribed=Kua tuhi kē koe i taua kōnae!
     5atea.asr.AudioUpload_SelectFileText=Tohua he konae oro...
     6atea.asr.AudioUpload_TranscribeFiles=Tuhia
     7atea.asr.AudioUpload_TranscriptionFailed_Message=I rahua te tuhi
     8atea.asr.AudioUpload_TranscriptionFailed_Reason=Take
     9atea.asr.AudioUpload_AlreadyTranscribed=Kua tuhi kē koe i taua kōnae!
    1010
    11 atea.TranscriptionItem_FileName=Kōnae
    12 atea.TranscriptionItem_Remove=Mukua
    13 atea.TranscriptionItem_ExpandAdvancedEditor=Whakaatu Editor Arā
    14 atea.TranscriptionItem_Download=Tikiake Tuhinga
    15 atea.TranscriptionItem_DownloadAsText=Tangohia hei tuhinga
    16 atea.TranscriptionItem_DownloadAsJson=Tangohia hei JSON
    17 atea.TranscriptionItem_DownloadAsWebvtt=Tangohia hei WebVTT
    18 atea.TranscriptionItem_PlayButtonTooltip=Whakarongo
     11atea.asr.TranscriptionItem_FileName=Kōnae
     12atea.asr.TranscriptionItem_Remove=Mukua
     13atea.asr.TranscriptionItem_ExpandAdvancedEditor=Whakaatu Editor Arā
     14atea.asr.TranscriptionItem_Download=Tikiake Tuhinga
     15atea.asr.TranscriptionItem_DownloadAsText=Tangohia hei tuhinga
     16atea.asr.TranscriptionItem_DownloadAsJson=Tangohia hei JSON
     17atea.asr.TranscriptionItem_DownloadAsWebvtt=Tangohia hei WebVTT
     18atea.asr.TranscriptionItem_PlayButtonTooltip=Whakarongo
    1919
    20 atea.TranscriptionItemEditor_ToggleEditTooltip=Takahuri Aratau Whakatika
     20atea.asr.TranscriptionItemEditor_ToggleEditTooltip=Takahuri Aratau Whakatika
Note: See TracChangeset for help on using the changeset viewer.