From aa5ff08a4603f8089e10feb5a1b6742999b38e47 Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Mon, 14 Jul 2025 11:50:53 -0400 Subject: [PATCH] rebase --- Makefile | 4 ++ .../candidate_list/jsx/candidateListIndex.js | 3 ++ .../locale/hi/LC_MESSAGES/candidate_list.po | 41 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po diff --git a/Makefile b/Makefile index 619f8edd221..3109bb06396 100755 --- a/Makefile +++ b/Makefile @@ -69,6 +69,8 @@ locales: msgfmt -o modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.mo modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po msgfmt -o modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po npx i18next-conv -l ja -s modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json + msgfmt -o modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po + npx i18next-conv -l hi -s modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json msgfmt -o modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po msgfmt -o modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.mo modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po msgfmt -o modules/configuration/locale/ja/LC_MESSAGES/configuration.mo modules/configuration/locale/ja/LC_MESSAGES/configuration.po @@ -138,6 +140,8 @@ issue_tracker: candidate_list: msgfmt -o modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po npx i18next-conv -l ja -s modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json + msgfmt -o modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po + npx i18next-conv -l hi -s modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json target=candidate_list npm run compile candidate_parameters: diff --git a/modules/candidate_list/jsx/candidateListIndex.js b/modules/candidate_list/jsx/candidateListIndex.js index 34dc2d73603..942c32dba3b 100644 --- a/modules/candidate_list/jsx/candidateListIndex.js +++ b/modules/candidate_list/jsx/candidateListIndex.js @@ -13,6 +13,7 @@ import i18n from 'I18nSetup'; import {withTranslation} from 'react-i18next'; import jaStrings from '../locale/ja/LC_MESSAGES/candidate_list.json'; +import hiStrings from '../locale/hi/LC_MESSAGES/candidate_list.json'; /** * Candidate List @@ -407,6 +408,8 @@ CandidateListIndex.propTypes = { window.addEventListener('load', () => { const args = QueryString.get(); i18n.addResourceBundle('ja', 'candidate_list', jaStrings); + i18n.addResourceBundle('hi', 'candidate_list', hiStrings); + const CLIndex = withTranslation( ['candidate_list', 'loris'] diff --git a/modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po b/modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po new file mode 100644 index 00000000000..bf039da02df --- /dev/null +++ b/modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po @@ -0,0 +1,41 @@ +# Default LORIS strings to be translated (English). +# Copy this to a language specific file and add translations to the +# new file. +# Copyright (C) 2025 +# This file is distributed under the same license as the LORIS package. +# Dave MacFarlane , 2025. +# +msgid "" +msgstr "" +"Project-Id-Version: LORIS 27\n" +"Report-Msgid-Bugs-To: https://github.com/aces/Loris/issues\n" +"POT-Creation-Date: 2025-04-08 14:37-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: hi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Access Profile" +msgstr "प्रोफ़ाइल तक पहुँचें" + +msgid "Entity Type" +msgstr "इकाई प्रकार" + +msgid "Scan Done" +msgstr "स्कैन पूरा हुआ" + +msgid "Visit Count" +msgstr "आगंतुक गणना" + +msgid "Open Profile" +msgstr "प्रोफ़ाइल खोलें" + +msgid "Show Advanced Filters" +msgstr "उन्नत फ़िल्टर दिखाएँ" + +msgid "Hide Advanced Filters" +msgstr "उन्नत फ़िल्टर छुपाएँ" +