Skip to content

Commit 051848d

Browse files
authored
[candidate_list] Add French translations for candidate_list (#10087)
This adds the missing strings from candidate_list to the french translation, so that the whole page should now be translated.
1 parent 8d7d91e commit 051848d

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ locales:
8888
msgfmt -o modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po
8989
msgfmt -o modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.mo modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po
9090
msgfmt -o modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.mo modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po
91+
msgfmt -o modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po
9192
msgfmt -o modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po
93+
npx i18next-conv -l fr -s modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.json
9294
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
9395
msgfmt -o modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po
9496
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
@@ -198,6 +200,7 @@ issue_tracker: modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo
198200
candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo
199201
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
200202
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
203+
npx i18next-conv -l fr -s modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.json
201204
target=candidate_list npm run compile
202205

203206
candidate_parameters: modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo

modules/candidate_list/jsx/candidateListIndex.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {withTranslation} from 'react-i18next';
1414

1515
import jaStrings from '../locale/ja/LC_MESSAGES/candidate_list.json';
1616
import hiStrings from '../locale/hi/LC_MESSAGES/candidate_list.json';
17+
import frStrings from '../locale/fr/LC_MESSAGES/candidate_list.json';
1718

1819
/**
1920
* Candidate List
@@ -409,6 +410,7 @@ window.addEventListener('load', () => {
409410
const args = QueryString.get();
410411
i18n.addResourceBundle('ja', 'candidate_list', jaStrings);
411412
i18n.addResourceBundle('hi', 'candidate_list', hiStrings);
413+
i18n.addResourceBundle('fr', 'candidate_list', frStrings);
412414

413415

414416
const CLIndex = withTranslation(
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Default LORIS strings to be translated (English).
2+
# Copy this to a language specific file and add translations to the
3+
# new file.
4+
# Copyright (C) 2025
5+
# This file is distributed under the same license as the LORIS package.
6+
# Dave MacFarlane <[email protected]>, 2025.
7+
#
8+
msgid ""
9+
msgstr ""
10+
"Project-Id-Version: LORIS 27\n"
11+
"Report-Msgid-Bugs-To: https://github.com/aces/Loris/issues\n"
12+
"POT-Creation-Date: 2025-04-08 14:37-0400\n"
13+
"PO-Revision-Date: 2025-10-28 11:39-0400\n"
14+
"Last-Translator: \n"
15+
"Language-Team: \n"
16+
"Language: fr\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: 8bit\n"
20+
"X-Generator: Poedit 3.8\n"
21+
22+
msgid "Access Profile"
23+
msgstr "Accès aux profils candidats"
24+
25+
msgid "Visit Count"
26+
msgstr "Nombre de visites"
27+
28+
# I am not sure on top of my head where this one is, so the translation shouldbe doubled check.
29+
#, fuzzy
30+
msgid "Open Profile"
31+
msgstr "Ouvrir le profil"

0 commit comments

Comments
 (0)