diff --git a/modules/brainbrowser/jsx/Brainbrowser.js b/modules/brainbrowser/jsx/Brainbrowser.js index 05be7390a4..db0059ffe8 100644 --- a/modules/brainbrowser/jsx/Brainbrowser.js +++ b/modules/brainbrowser/jsx/Brainbrowser.js @@ -135,8 +135,9 @@ const strings = { hi: hiStrings, ja: jaStrings, fr: frStrings, + zh: zhStrings, }; -const activeLang = (loris?.user?.langpref || 'en').slice(0, 2); +const activeLang = i18n.language.slice(0, 2); const t = strings[activeLang] || strings['en']; const TranslatedBrainBrowser = withTranslation( diff --git a/modules/brainbrowser/locale/brainbrowser.pot b/modules/brainbrowser/locale/brainbrowser.pot index dbb4a4a656..a3439b42c8 100644 --- a/modules/brainbrowser/locale/brainbrowser.pot +++ b/modules/brainbrowser/locale/brainbrowser.pot @@ -87,3 +87,5 @@ msgstr "" msgid "Transverse" msgstr "" +msgid "Blend (0.0 to 1.0)" +msgstr "" diff --git a/modules/brainbrowser/locale/fr/LC_MESSAGES/brainbrowser.po b/modules/brainbrowser/locale/fr/LC_MESSAGES/brainbrowser.po index 47a803a200..959c3b1143 100644 --- a/modules/brainbrowser/locale/fr/LC_MESSAGES/brainbrowser.po +++ b/modules/brainbrowser/locale/fr/LC_MESSAGES/brainbrowser.po @@ -101,3 +101,6 @@ msgstr "Coronaires" #, fuzzy msgid "Transverse" msgstr "Transversales" + +msgid "Blend (0.0 to 1.0)" +msgstr "Mélange (de 0,0 à 1,0)" diff --git a/modules/brainbrowser/templates/form_brainbrowser.tpl b/modules/brainbrowser/templates/form_brainbrowser.tpl index 36b4cbeec4..0c9e11cec3 100644 --- a/modules/brainbrowser/templates/form_brainbrowser.tpl +++ b/modules/brainbrowser/templates/form_brainbrowser.tpl @@ -8,7 +8,11 @@