Skip to content

Commit d529154

Browse files
driusanSaket HatwarDave MacFarlane
authored
[user_accounts] Translate user accounts (#10114)
Translate the user_accounts module on LORIS. Adds support for Hindi and Japanese. Based on PR #9934 with various bug fixes. Co-authored-by: Saket Hatwar <[email protected]> Co-authored-by: Dave MacFarlane <[email protected]>
1 parent 08a7cda commit d529154

File tree

11 files changed

+1004
-220
lines changed

11 files changed

+1004
-220
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ locales:
156156
msgfmt -o modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po
157157
msgfmt -o modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po
158158
msgfmt -o modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.mo modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po
159-
159+
msgfmt -o modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.mo modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.po
160+
npx i18next-conv -l hi -s modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.po -t modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.json --compatibilityJSON v4
161+
npx i18next-conv -l ja -s modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po -t modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.json --compatibilityJSON v4
160162

161163
acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo
162164
target=acknowledgements npm run compile

locale/hi/LC_MESSAGES/loris.po

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ msgstr ""
1717
"MIME-Version: 1.0\n"
1818
"Content-Type: text/plain; charset=UTF-8\n"
1919
"Content-Transfer-Encoding: 8bit\n"
20+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2021

2122
# Smarty template main.tpl strings
2223
msgid "LORIS"
@@ -126,6 +127,24 @@ msgstr "नहीं"
126127
msgid "N/A"
127128
msgstr "लागू नहीं"
128129

130+
msgid "Save"
131+
msgstr "सहेजें"
132+
133+
msgid "Reset"
134+
msgstr "रीसेट करें"
135+
136+
msgid "Back"
137+
msgstr "वापस"
138+
139+
msgid "None"
140+
msgstr "कोई नहीं"
141+
142+
msgid "Y"
143+
msgstr "हाँ"
144+
145+
msgid "N"
146+
msgstr "नहीं"
147+
129148
msgid "Create"
130149
msgstr "बनाएँ"
131150

@@ -165,11 +184,18 @@ msgstr "डीसीसीआईडी"
165184
msgid "Visit Label"
166185
msgstr "दौरे का लेबल"
167186

187+
msgid "Email"
188+
msgstr "ईमेल"
189+
168190
msgid "Site"
169-
msgstr "साइट"
191+
msgid_plural "Sites"
192+
msgstr[0] "साइट"
193+
msgstr[1] "साइट्स"
170194

171195
msgid "Project"
172-
msgstr "परियोजना"
196+
msgid_plural "Projects"
197+
msgstr[0] "परियोजना"
198+
msgstr[1] "प्रोजेक्ट्"
173199

174200
msgid "Candidate Registration Project"
175201
msgstr "उम्मीदवार पंजीकरण परियोजना"
@@ -223,6 +249,9 @@ msgstr "भ्रमण"
223249
msgid "An error occured while loading the page."
224250
msgstr "पृष्ठ लोड करते समय एक त्रुटि हुई।"
225251

252+
msgid "Active"
253+
msgstr "सक्रिय"
254+
226255
msgid "Entity Type"
227256
msgstr "इकाई प्रकार"
228257

@@ -235,12 +264,6 @@ msgstr "भाषा"
235264
msgid "Ethnicity"
236265
msgstr "जातीयता"
237266

238-
msgid "Save"
239-
msgstr "सहेजें"
240-
241-
msgid "Reset"
242-
msgstr "रीसेट करें"
243-
244267
# Data table strings
245268
msgid "{{pageCount}} rows displayed of {{totalCount}}."
246269
msgstr "{{totalCount}} में से {{pageCount}} पंक्तियाँ प्रदर्शित"
@@ -306,12 +329,18 @@ msgstr "ईमेल पता"
306329
msgid "New Password"
307330
msgstr "नया पासवर्ड"
308331

332+
msgid "Password"
333+
msgstr "पासवर्ड"
334+
309335
msgid "Confirm Password"
310336
msgstr "पासवर्ड की पुष्टि करें"
311337

312338
msgid "Email address is required"
313339
msgstr "ईमेल पता आवश्यक है"
314340

341+
msgid "Email address cannot contain any of the following characters: <, >, &, and \""
342+
msgstr "ईमेल पता निम्नलिखित किसी भी वर्ण को नहीं शामिल कर सकता: <, >, &, और \""
343+
315344
msgid "The password must be at least 8 characters long."
316345
msgstr "पासवर्ड कम से कम 8 अक्षरों का होना चाहिए।"
317346

@@ -370,9 +399,6 @@ msgstr "पूर्ण"
370399
msgid "Instruments"
371400
msgstr "उपकरण"
372401

373-
msgid "None"
374-
msgstr "कोई नहीं"
375-
376402
msgid "Partial"
377403
msgstr "आंशिक"
378404

locale/ja/LC_MESSAGES/loris.po

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ msgstr "作成する"
129129
msgid "N/A"
130130
msgstr "適用できない"
131131

132+
msgid "Back"
133+
msgstr "戻る"
134+
132135
# Filters
133136
msgid "Selection Filter"
134137
msgstr "'選択フィルター"
@@ -162,14 +165,19 @@ msgstr "候補者識別子"
162165
msgid "Visit Label"
163166
msgstr "ラベルを訪問"
164167

168+
msgid "Email"
169+
msgstr "メール"
170+
165171
msgid "Site"
166-
msgstr "サイト"
172+
msgid_plural "Sites"
173+
msgstr[0] "サイト"
167174

168175
msgid "Module"
169176
msgstr "モジュール"
170177

171178
msgid "Project"
172-
msgstr "プロジェクト"
179+
msgid_plural "Projects"
180+
msgstr[0] "プロジェクト"
173181

174182
msgid "Candidate Registration Project"
175183
msgstr "候補者登録プロジェクト"
@@ -226,6 +234,9 @@ msgstr "訪問"
226234
msgid "An error occured while loading the page."
227235
msgstr "このページの読み込み中にエラーが発生しました"
228236

237+
msgid "Active"
238+
msgstr "アクティブ"
239+
229240
msgid "Entity Type"
230241
msgstr "エンティティタイプ"
231242

@@ -403,6 +414,9 @@ msgstr "姓は必須で、120文字以内で入力してください。"
403414
msgid "Email address"
404415
msgstr "電子メールアドレス"
405416

417+
msgid "Password"
418+
msgstr "パスワード"
419+
406420
msgid "New Password"
407421
msgstr "新しいパスワード"
408422

@@ -412,6 +426,9 @@ msgstr "パスワードを認証する"
412426
msgid "Email address is required"
413427
msgstr "メールアドレスは必須です"
414428

429+
msgid "Email address cannot contain any of the following characters: <, >, &, and \""
430+
msgstr "メールアドレスには、<、>、&、\" の文字を含めることはできません。"
431+
415432
msgid "The password must be at least 8 characters long."
416433
msgstr "パスワードは8文字以上である必要があります"
417434

locale/loris.pot

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ msgstr ""
125125
msgid "N/A"
126126
msgstr ""
127127

128+
msgid "Back"
129+
msgstr ""
130+
128131
msgid "Create"
129132
msgstr ""
130133

@@ -167,14 +170,19 @@ msgstr ""
167170
msgid "Visit Label"
168171
msgstr ""
169172

170-
msgid "Site"
173+
msgid "Email"
171174
msgstr ""
172175

176+
msgid "Site"
177+
msgid_plural "Sites"
178+
msgstr[0] ""
179+
173180
msgid "Module"
174181
msgstr ""
175182

176183
msgid "Project"
177-
msgstr ""
184+
msgid_plural "Projects"
185+
msgstr[0] ""
178186

179187
msgid "Candidate Registration Project"
180188
msgstr ""
@@ -231,6 +239,9 @@ msgstr ""
231239
msgid "An error occured while loading the page."
232240
msgstr ""
233241

242+
msgid "Active"
243+
msgstr ""
244+
234245
msgid "Entity Type"
235246
msgstr ""
236247

@@ -314,12 +325,18 @@ msgstr ""
314325
msgid "New Password"
315326
msgstr ""
316327

328+
msgid "Password"
329+
msgstr ""
330+
317331
msgid "Confirm Password"
318332
msgstr ""
319333

320334
msgid "Email address is required"
321335
msgstr ""
322336

337+
msgid "Email address cannot contain any of the following characters: <, >, &, and \""
338+
msgstr ""
339+
323340
msgid "The password must be at least 8 characters long."
324341
msgstr ""
325342

@@ -334,6 +351,7 @@ msgstr ""
334351

335352
msgid "We suggest using a password manager to generate one for you."
336353
msgstr ""
354+
337355
msgid "Total"
338356
msgstr ""
339357

0 commit comments

Comments
 (0)