Skip to content

Commit 4d433af

Browse files
author
Saket Hatwar
committed
fixes2
1 parent 6321cd0 commit 4d433af

File tree

6 files changed

+77
-68
lines changed

6 files changed

+77
-68
lines changed

locale/hi/LC_MESSAGES/loris.po

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ msgstr "हाँ"
123123
msgid "No"
124124
msgstr "नहीं"
125125

126+
msgid "N/A"
127+
msgstr "लागू नहीं"
128+
126129
# Common candidate terms
127130
msgid "PSCID"
128131
msgstr "पीएससीआईडी"
@@ -193,6 +196,9 @@ msgstr "सहेजें"
193196
msgid "Reset"
194197
msgstr "रीसेट करें"
195198

199+
msgid "email_text"
200+
msgstr "ईमेल_पाठ"
201+
196202
# Data table strings
197203
msgid "{{pageCount}} rows displayed of {{totalCount}}."
198204
msgstr "{{totalCount}} में से {{pageCount}} पंक्तियाँ प्रदर्शित"
@@ -202,3 +208,49 @@ msgstr "प्रति पृष्ठ अधिकतम पंक्तिय
202208

203209
msgid "Download Table as CSV"
204210
msgstr "तालिका को CSV के रूप में डाउनलोड करें"
211+
212+
# User Account related
213+
msgid "Password Rules"
214+
msgstr "पासवर्ड नियम"
215+
216+
msgid "User name"
217+
msgstr "उपयोगकर्ता नाम"
218+
219+
msgid "First name"
220+
msgstr "पहला नाम"
221+
222+
msgid "First name is required and should not exceed 120 characters"
223+
msgstr "पहला नाम आवश्यक है और 120 अक्षरों से अधिक नहीं होना चाहिए।"
224+
225+
msgid "Last name"
226+
msgstr "अंतिम नाम"
227+
228+
msgid "Last name is required and should not exceed 120 characters"
229+
msgstr "अंतिम नाम आवश्यक है और 120 अक्षरों से अधिक नहीं होना चाहिए।"
230+
231+
msgid "Email address"
232+
msgstr "ईमेल पता"
233+
234+
msgid "New Password"
235+
msgstr "नया पासवर्ड"
236+
237+
msgid "Confirm Password"
238+
msgstr "पासवर्ड की पुष्टि करें"
239+
240+
msgid "Email address is required"
241+
msgstr "ईमेल पता आवश्यक है"
242+
243+
msgid "The password must be at least 8 characters long."
244+
msgstr "पासवर्ड कम से कम 8 अक्षरों का होना चाहिए।"
245+
246+
msgid "The password cannot be your username or email address."
247+
msgstr "पासवर्ड आपका उपयोगकर्ता नाम या ईमेल पता नहीं हो सकता।"
248+
249+
msgid "Please choose a unique password."
250+
msgstr "कृपया एक अद्वितीय पासवर्ड चुनें।"
251+
252+
msgid "No special characters are required but your password must be sufficiently complex to be accepted."
253+
msgstr "कोई विशेष अक्षर आवश्यक नहीं हैं, लेकिन पासवर्ड पर्याप्त जटिल होना चाहिए ताकि उसे स्वीकार किया जा सके।"
254+
255+
msgid "We suggest using a password manager to generate one for you."
256+
msgstr "हम सुझाव देते हैं कि आपके लिए पासवर्ड बनाने हेतु पासवर्ड मैनेजर का उपयोग करें।"

locale/loris.pot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ msgstr ""
192192
msgid "Reset"
193193
msgstr ""
194194

195+
msgid "email_text"
196+
msgstr ""
197+
195198
# Data table strings
196199
msgid "{{pageCount}} rows displayed of {{totalCount}}."
197200
msgstr ""

modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -21,60 +21,15 @@ msgstr ""
2121
msgid "My Preferences"
2222
msgstr "मेरी प्राथमिकताएँ"
2323

24-
msgid "Password Rules"
25-
msgstr "पासवर्ड नियम"
26-
27-
msgid "The password must be at least 8 characters long."
28-
msgstr "पासवर्ड कम से कम 8 अक्षरों का होना चाहिए।"
29-
30-
msgid "The password cannot be your username or email address."
31-
msgstr "पासवर्ड आपका उपयोगकर्ता नाम या ईमेल पता नहीं हो सकता।"
32-
33-
msgid "No special characters are required but your password must be sufficiently complex to be accepted."
34-
msgstr "कोई विशेष अक्षर आवश्यक नहीं हैं, लेकिन पासवर्ड पर्याप्त जटिल होना चाहिए ताकि उसे स्वीकार किया जा सके।"
35-
36-
msgid "Please choose a unique password."
37-
msgstr "कृपया एक अद्वितीय पासवर्ड चुनें।"
38-
39-
msgid "We suggest using a password manager to generate one for you."
40-
msgstr "हम सुझाव देते हैं कि आपके लिए पासवर्ड बनाने हेतु पासवर्ड मैनेजर का उपयोग करें।"
41-
4224
msgid "Edit My Information"
4325
msgstr "मेरी जानकारी संपादित करें"
4426

4527
msgid "Notifications"
4628
msgstr "सूचनाएँ"
4729

48-
msgid "User name"
49-
msgstr "उपयोगकर्ता नाम"
50-
51-
msgid "First name"
52-
msgstr "पहला नाम"
53-
54-
msgid "First name is required and should not exceed 120 characters"
55-
msgstr "पहला नाम आवश्यक है और 120 अक्षरों से अधिक नहीं होना चाहिए।"
56-
57-
msgid "Last name"
58-
msgstr "अंतिम नाम"
59-
60-
msgid "Last name is required and should not exceed 120 characters"
61-
msgstr "अंतिम नाम आवश्यक है और 120 अक्षरों से अधिक नहीं होना चाहिए।"
62-
63-
msgid "Email address"
64-
msgstr "ईमेल पता"
65-
66-
msgid "Email address is required"
67-
msgstr "ईमेल पता आवश्यक है"
68-
6930
msgid "Your email address must be less than 255 characters long"
7031
msgstr "आपका ईमेल पता 255 अक्षरों से कम होना चाहिए।"
7132

72-
msgid "New Password"
73-
msgstr "नया पासवर्ड"
74-
75-
msgid "Confirm Password"
76-
msgstr "पासवर्ड की पुष्टि करें"
77-
7833
msgid "Language preference"
7934
msgstr "भाषा वरीयता"
8035

@@ -84,23 +39,20 @@ msgstr "क्रिया"
8439
msgid "Description"
8540
msgstr "विवरण"
8641

87-
msgid "N/A"
88-
msgstr "लागू नहीं"
89-
9042
msgid "Invalid email address"
9143
msgstr "अमान्य ईमेल पता"
9244

9345
msgid "The email address already exists"
9446
msgstr "ईमेल पता पहले से मौजूद है"
9547

96-
msgid "Your password can't be your email."
48+
msgid "Your password cannot be your email"
9749
msgstr "आपका पासवर्ड आपका ईमेल नहीं हो सकता।"
9850

99-
msgid "Your password can't be your username"
51+
msgid "Your password cannot be your username"
10052
msgstr "आपका पासवर्ड आपका उपयोगकर्ता नाम नहीं हो सकता।"
10153

102-
msgid "The passwords do not match."
54+
msgid "The passwords do not match"
10355
msgstr "पासवर्ड मेल नहीं खाते।"
10456

105-
msgid "New and old passwords are identical: please choose another one"
106-
msgstr "नया और पुराना पासवर्ड समान हैं: कृपया कोई और चुनें।"
57+
msgid "New and old passwords are identical"
58+
msgstr "नया और पुराना पासवर्ड समान हैं।"

modules/my_preferences/locale/my_preferences.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ msgstr ""
9393
msgid "The email address already exists"
9494
msgstr ""
9595

96-
msgid "Your password cannot be your email."
96+
msgid "Your password cannot be your email"
9797
msgstr ""
9898

9999
msgid "Your password cannot be your username"
100100
msgstr ""
101101

102-
msgid "The passwords do not match."
102+
msgid "The passwords do not match"
103103
msgstr ""
104104

105-
msgid "New and old passwords are identical: please choose another one"
105+
msgid "New and old passwords are identical"
106106
msgstr ""

modules/my_preferences/php/my_preferences.class.inc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ namespace LORIS\my_preferences;
1010
class My_Preferences extends \NDB_Form
1111
{
1212
// Use gettext for error messages
13-
private const PASSWORD_ERROR_IS_EMAIL = 'Your password cannot be your email.';
13+
private const PASSWORD_ERROR_IS_EMAIL = 'Your password cannot be your email';
1414
private const PASSWORD_ERROR_IS_USER = 'Your password cannot be your username';
15-
private const PASSWORD_ERROR_NO_MATCH = 'The passwords do not match.';
15+
private const PASSWORD_ERROR_NO_MATCH = 'The passwords do not match';
1616
private const PASSWORD_ERROR_NO_CHANGE = 'New and old passwords are identical';
1717

1818
/**
@@ -225,20 +225,20 @@ class My_Preferences extends \NDB_Form
225225
$notifier_services = \NDB_Notifier::getNotificationServices();
226226

227227
// user name
228-
$this->addScoreColumn('UserID', dgettext('my_preferences', 'User name'));
228+
$this->addScoreColumn('UserID', dgettext('loris', 'User name'));
229229

230230
// full name
231231
// The supplied pattern is:
232232
// - must have at least one non-whitespace characters (i.e. required)
233233
// - once leading and trailing spaces are stripped, the field should
234234
// not exceed 120 chars
235235
$firstNameInvalidMsg = dgettext(
236-
'my_preferences',
236+
'loris',
237237
"First name is required and should not exceed 120 characters"
238238
);
239239
$this->addBasicText(
240240
'First_name',
241-
dgettext('my_preferences', 'First name'),
241+
dgettext('loris', 'First name'),
242242
[],
243243
[
244244
'oninvalid' => "this.setCustomValidity('$firstNameInvalidMsg')",
@@ -252,12 +252,12 @@ class My_Preferences extends \NDB_Form
252252
// - once leading and trailing spaces are stripped, the field should
253253
// not exceed 120 chars
254254
$lastNameInvalidMsg = dgettext(
255-
'my_preferences',
255+
'loris',
256256
"Last name is required and should not exceed 120 characters"
257257
);
258258
$this->addBasicText(
259259
'Last_name',
260-
dgettext('my_preferences', 'Last name'),
260+
dgettext('loris', 'Last name'),
261261
[],
262262
[
263263
'oninvalid' => "this.setCustomValidity('$lastNameInvalidMsg')",
@@ -286,7 +286,7 @@ class My_Preferences extends \NDB_Form
286286
$this->addRule(
287287
'Email',
288288
dgettext(
289-
'my_preferences',
289+
'loris',
290290
'Email address is required'
291291
),
292292
'required'
@@ -305,12 +305,12 @@ class My_Preferences extends \NDB_Form
305305
$this->form->addElement(
306306
'password',
307307
'Password_hash',
308-
dgettext('my_preferences', 'New Password')
308+
dgettext('loris', 'New Password')
309309
);
310310
$this->form->addElement(
311311
'password',
312312
'__Confirm',
313-
dgettext('my_preferences', 'Confirm Password')
313+
dgettext('loris', 'Confirm Password')
314314
);
315315

316316
// language preference
@@ -326,7 +326,7 @@ class My_Preferences extends \NDB_Form
326326

327327
// Notification headers
328328
$nGroup = [];
329-
$nGroup[] = $this->createLabel(dgettext('my_preferences', "Module"));
329+
$nGroup[] = $this->createLabel(dgettext('loris', "Module"));
330330
$nGroup[] = $this->createLabel(dgettext('my_preferences', "Operation"));
331331
$nGroup[] = $this->createLabel(dgettext('my_preferences', "Description"));
332332

@@ -369,7 +369,7 @@ class My_Preferences extends \NDB_Form
369369
);
370370
} else {
371371
$nGroup[] = $this->createLabel(
372-
dgettext('my_preferences', "N/A")
372+
dgettext('loris', "N/A")
373373
);
374374
}
375375
}

php/libraries/NDB_Notifier.class.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class NDB_Notifier extends NDB_Notifier_Abstract
7171
$this->tpl_data['custom_message'] =$custom_message;
7272
}
7373

74+
$this->tpl_data['email_text_label'] = dgettext('loris', 'email_text');
75+
7476
// Basic email handler
7577
if (!empty($this->notified['email_text'])) {
7678
$this->_sendEmails($projectID);

0 commit comments

Comments
 (0)