Skip to content

Commit 38d48cd

Browse files
authored
[my_preferences] Translate to my_preferences module (#10015)
Translate the my_preferences module to different languages. Currently only 'Hindi' language is supported but other languages can be added as required.
1 parent e3bc8a1 commit 38d48cd

File tree

8 files changed

+372
-72
lines changed

8 files changed

+372
-72
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ locales:
134134
msgfmt -o modules/media/locale/ja/LC_MESSAGES/media.mo modules/media/locale/ja/LC_MESSAGES/media.po
135135
msgfmt -o modules/module_manager/locale/ja/LC_MESSAGES/module_manager.mo modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po
136136
msgfmt -o modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po
137+
msgfmt -o modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po
137138
msgfmt -o modules/next_stage/locale/ja/LC_MESSAGES/next_stage.mo modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po
138139
msgfmt -o modules/next_stage/locale/es/LC_MESSAGES/next_stage.mo modules/next_stage/locale/es/LC_MESSAGES/next_stage.po
139140
msgfmt -o modules/oidc/locale/ja/LC_MESSAGES/oidc.mo modules/oidc/locale/ja/LC_MESSAGES/oidc.po

locale/hi/LC_MESSAGES/loris.po

Lines changed: 75 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,22 @@ msgstr "रिपोर्ट्स"
113113
msgid "TimePoint"
114114
msgstr "समय बिंदु"
115115

116+
msgid "Module"
117+
msgstr "मॉड्यूल"
118+
116119
# Common select option labels
117120
msgid "Yes"
118121
msgstr "हाँ"
119122

120123
msgid "No"
121124
msgstr "नहीं"
122125

123-
msgid "Create"
124-
msgstr "बनाएँ"
125-
126126
msgid "N/A"
127127
msgstr "लागू नहीं"
128128

129+
msgid "Create"
130+
msgstr "बनाएँ"
131+
129132
# Filters
130133
msgid "Selection Filter"
131134
msgstr "चयन फ़िल्टर"
@@ -165,9 +168,6 @@ msgstr "दौरे का लेबल"
165168
msgid "Site"
166169
msgstr "साइट"
167170

168-
msgid "Module"
169-
msgstr "मॉड्यूल"
170-
171171
msgid "Project"
172172
msgstr "परियोजना"
173173

@@ -235,6 +235,12 @@ msgstr "भाषा"
235235
msgid "Ethnicity"
236236
msgstr "जातीयता"
237237

238+
msgid "Save"
239+
msgstr "सहेजें"
240+
241+
msgid "Reset"
242+
msgstr "रीसेट करें"
243+
238244
# Data table strings
239245
msgid "{{pageCount}} rows displayed of {{totalCount}}."
240246
msgstr "{{totalCount}} में से {{pageCount}} पंक्तियाँ प्रदर्शित"
@@ -245,6 +251,22 @@ msgstr "प्रति पृष्ठ अधिकतम पंक्तिय
245251
msgid "Download Data as CSV"
246252
msgstr "डेटा को CSV के रूप में डाउनलोड करें"
247253

254+
#: php/libraries/Password.class.inc
255+
msgid "The password is too short"
256+
msgstr "पासवर्ड बहुत छोटा है"
257+
258+
msgid "The password is not complex enough."
259+
msgstr "पासवर्ड पर्याप्त जटिल नहीं है।"
260+
261+
msgid "This password is known to be exposed in online data breaches."
262+
msgstr "यह पासवर्ड ऑनलाइन डेटा उल्लंघनों में उजागर होने के लिए जाना जाता है।"
263+
264+
msgid "Data Supervisors to Email"
265+
msgstr "ईमेल करने के लिए डेटा पर्यवेक्षक"
266+
267+
msgid "Invalid email address"
268+
msgstr "अमान्य ईमेल पता"
269+
248270
# Dashboard panel strings
249271
msgid "Views"
250272
msgstr "दृश्य"
@@ -254,11 +276,57 @@ msgid "NEW"
254276
msgstr "नया"
255277

256278
msgid "Updated"
257-
msgstr "अपडेट किया गया"
279+
msgstr "अद्यतन किया गया"
258280

259281
msgid "Uploaded"
260282
msgstr "अपलोड किया गया"
261283

284+
# User Account related
285+
msgid "Password Rules"
286+
msgstr "पासवर्ड नियम"
287+
288+
msgid "Username"
289+
msgstr "उपयोगकर्ता नाम"
290+
291+
msgid "First name"
292+
msgstr "पहला नाम"
293+
294+
msgid "First name is required and should not exceed 120 characters"
295+
msgstr "पहला नाम आवश्यक है और 120 अक्षरों से अधिक नहीं होना चाहिए।"
296+
297+
msgid "Last name"
298+
msgstr "अंतिम नाम"
299+
300+
msgid "Last name is required and should not exceed 120 characters"
301+
msgstr "अंतिम नाम आवश्यक है और 120 अक्षरों से अधिक नहीं होना चाहिए।"
302+
303+
msgid "Email address"
304+
msgstr "ईमेल पता"
305+
306+
msgid "New Password"
307+
msgstr "नया पासवर्ड"
308+
309+
msgid "Confirm Password"
310+
msgstr "पासवर्ड की पुष्टि करें"
311+
312+
msgid "Email address is required"
313+
msgstr "ईमेल पता आवश्यक है"
314+
315+
msgid "The password must be at least 8 characters long."
316+
msgstr "पासवर्ड कम से कम 8 अक्षरों का होना चाहिए।"
317+
318+
msgid "The password cannot be your username or email address."
319+
msgstr "पासवर्ड आपका उपयोगकर्ता नाम या ईमेल पता नहीं हो सकता।"
320+
321+
msgid "Please choose a unique password."
322+
msgstr "कृपया एक अद्वितीय पासवर्ड चुनें।"
323+
324+
msgid "No special characters are required but your password must be sufficiently complex to be accepted."
325+
msgstr "कोई विशेष अक्षर आवश्यक नहीं हैं, लेकिन पासवर्ड पर्याप्त जटिल होना चाहिए ताकि उसे स्वीकार किया जा सके।"
326+
327+
msgid "We suggest using a password manager to generate one for you."
328+
msgstr "हम सुझाव देते हैं कि आपके लिए पासवर्ड बनाने हेतु पासवर्ड मैनेजर का उपयोग करें।"
329+
262330
msgid "Total"
263331
msgstr "कुल"
264332

locale/loris.pot

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ msgstr ""
122122
msgid "No"
123123
msgstr ""
124124

125-
msgid "Create"
125+
msgid "N/A"
126126
msgstr ""
127127

128-
msgid "N/A"
128+
msgid "Create"
129129
msgstr ""
130130

131131
# Filters
@@ -240,6 +240,12 @@ msgstr ""
240240
msgid "Ethnicity"
241241
msgstr ""
242242

243+
msgid "Save"
244+
msgstr ""
245+
246+
msgid "Reset"
247+
msgstr ""
248+
243249
# Data table strings
244250
msgid "{{pageCount}} rows displayed of {{totalCount}}."
245251
msgstr ""
@@ -254,6 +260,22 @@ msgstr ""
254260
msgid "Views"
255261
msgstr ""
256262

263+
#: php/libraries/Password.class.inc
264+
msgid "The password is too short"
265+
msgstr ""
266+
267+
msgid "The password is not complex enough."
268+
msgstr ""
269+
270+
msgid "This password is known to be exposed in online data breaches."
271+
msgstr ""
272+
273+
msgid "Data Supervisors to Email"
274+
msgstr ""
275+
276+
msgid "Invalid email address"
277+
msgstr ""
278+
257279
# Common strings on widgets
258280
msgid "NEW"
259281
msgstr ""
@@ -264,6 +286,51 @@ msgstr ""
264286
msgid "Uploaded"
265287
msgstr ""
266288

289+
# User Account related
290+
msgid "Password Rules"
291+
msgstr ""
292+
293+
msgid "Username"
294+
msgstr ""
295+
296+
msgid "First name"
297+
msgstr ""
298+
299+
msgid "First name is required and should not exceed 120 characters"
300+
msgstr ""
301+
302+
msgid "Last name"
303+
msgstr ""
304+
305+
msgid "Last name is required and should not exceed 120 characters"
306+
msgstr ""
307+
308+
msgid "Email address"
309+
msgstr ""
310+
311+
msgid "New Password"
312+
msgstr ""
313+
314+
msgid "Confirm Password"
315+
msgstr ""
316+
317+
msgid "Email address is required"
318+
msgstr ""
319+
320+
msgid "The password must be at least 8 characters long."
321+
msgstr ""
322+
323+
msgid "The password cannot be your username or email address."
324+
msgstr ""
325+
326+
msgid "Please choose a unique password."
327+
msgstr ""
328+
329+
msgid "No special characters are required but your password must be sufficiently complex to be accepted."
330+
msgstr ""
331+
332+
msgid "We suggest using a password manager to generate one for you."
333+
msgstr ""
267334
msgid "Total"
268335
msgstr ""
269336

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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: YEAR-MO-DA HO:MI+ZONE\n"
14+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15+
"Language-Team: LANGUAGE <[email protected]>\n"
16+
"Language: hi\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: 8bit\n"
20+
21+
msgid "My Preferences"
22+
msgstr "मेरी प्राथमिकताएँ"
23+
24+
msgid "Edit My Information"
25+
msgstr "मेरी जानकारी संपादित करें"
26+
27+
msgid "Notifications"
28+
msgstr "सूचनाएँ"
29+
30+
msgid "Your email address must be less than 255 characters long"
31+
msgstr "आपका ईमेल पता 255 अक्षरों से कम होना चाहिए।"
32+
33+
msgid "Language preference"
34+
msgstr "भाषा वरीयता"
35+
36+
msgid "Operation"
37+
msgstr "क्रिया"
38+
39+
msgid "Description"
40+
msgstr "विवरण"
41+
42+
msgid "The email address already exists"
43+
msgstr "ईमेल पता पहले से मौजूद है"
44+
45+
msgid "Your password cannot be your email"
46+
msgstr "आपका पासवर्ड आपका ईमेल नहीं हो सकता।"
47+
48+
msgid "Your password cannot be your username"
49+
msgstr "आपका पासवर्ड आपका उपयोगकर्ता नाम नहीं हो सकता।"
50+
51+
msgid "The passwords do not match"
52+
msgstr "पासवर्ड मेल नहीं खाते।"
53+
54+
msgid "New and old passwords are identical"
55+
msgstr "नया और पुराना पासवर्ड समान हैं।"
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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: YEAR-MO-DA HO:MI+ZONE\n"
14+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15+
"Language-Team: LANGUAGE <[email protected]>\n"
16+
"Language: \n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: 8bit\n"
20+
21+
msgid "My Preferences"
22+
msgstr ""
23+
24+
msgid "Edit My Information"
25+
msgstr ""
26+
27+
msgid "Notifications"
28+
msgstr ""
29+
30+
msgid "Your email address must be less than 255 characters long"
31+
msgstr ""
32+
33+
msgid "Language preference"
34+
msgstr ""
35+
36+
msgid "Operation"
37+
msgstr ""
38+
39+
msgid "Description"
40+
msgstr ""
41+
42+
msgid "The email address already exists"
43+
msgstr ""
44+
45+
msgid "Your password cannot be your email"
46+
msgstr ""
47+
48+
msgid "Your password cannot be your username"
49+
msgstr ""
50+
51+
msgid "The passwords do not match"
52+
msgstr ""
53+
54+
msgid "New and old passwords are identical"
55+
msgstr ""

0 commit comments

Comments
 (0)