Skip to content

Commit b1c886a

Browse files
author
Saket Hatwar
committed
Add Translation
1 parent 12cb30b commit b1c886a

File tree

4 files changed

+117
-12
lines changed

4 files changed

+117
-12
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ locales:
113113
msgfmt -o modules/media/locale/ja/LC_MESSAGES/media.mo modules/media/locale/ja/LC_MESSAGES/media.po
114114
msgfmt -o modules/module_manager/locale/ja/LC_MESSAGES/module_manager.mo modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po
115115
msgfmt -o modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po
116+
msgfmt -o modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po
116117
msgfmt -o modules/next_stage/locale/ja/LC_MESSAGES/next_stage.mo modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po
117118
msgfmt -o modules/oidc/locale/ja/LC_MESSAGES/oidc.mo modules/oidc/locale/ja/LC_MESSAGES/oidc.po
118119
msgfmt -o modules/publication/locale/ja/LC_MESSAGES/publication.mo modules/publication/locale/ja/LC_MESSAGES/publication.po
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 "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+
42+
msgid "Edit My Information"
43+
msgstr "मेरी जानकारी संपादित करें"
44+
45+
msgid "Notifications"
46+
msgstr "सूचनाएँ"
47+
48+
msgid "Save"
49+
msgstr "सहेजें"
50+
51+
msgid "Reset"
52+
msgstr "रीसेट करें"
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 "Password Rules"
25+
msgstr ""
26+
27+
msgid "The password must be at least 8 characters long."
28+
msgstr ""
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+
42+
msgid "Edit My Information"
43+
msgstr ""
44+
45+
msgid "Notifications"
46+
msgstr ""
47+
48+
msgid "Save"
49+
msgstr ""
50+
51+
msgid "Reset"
52+
msgstr ""

modules/my_preferences/templates/form_my_preferences.tpl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<form method="post" name="my_preferences" id="my_preferences" autocomplete="off">
2-
<h3>Password Rules</h3>
2+
<h3>{dgettext("my_preferences", "Password Rules")}</h3>
33
<ul>
4-
<li>The password must be at least 8 characters long.</li>
5-
<li>The password cannot be your username or email address.</li>
6-
<li>No special characters are required but your password must be sufficiently complex to be accepted.</li>
4+
<li>{dgettext("my_preferences", "The password must be at least 8 characters long.")}</li>
5+
<li>{dgettext("my_preferences", "The password cannot be your username or email address.")}</li>
6+
<li>{dgettext("my_preferences", "No special characters are required but your password must be sufficiently complex to be accepted.")}</li>
77
</ul>
8-
<p>Please choose a unique password.</p>
9-
<p>We suggest using a password manager to generate one for you.</p>
10-
<h3>Edit My Information</h3>
8+
<p>{dgettext("my_preferences", "Please choose a unique password.")}</p>
9+
<p>{dgettext("my_preferences", "We suggest using a password manager to generate one for you.")}</p>
10+
<h3>{dgettext("my_preferences", "Edit My Information")}</h3>
1111
{foreach from=$form.errors item=error}
1212
<ul>
1313
<li class="error">{$error}</li>
@@ -38,7 +38,8 @@
3838
<div class="col-sm-10">
3939
{$form.Last_name.html}
4040
</div>
41-
</div><div class="row form-group">
41+
</div>
42+
<div class="row form-group">
4243
<label class="col-sm-2">
4344
{$form.Email.label}
4445
</label>
@@ -71,7 +72,7 @@
7172
</div>
7273
</div>
7374
<br><br>
74-
<h3>Notifications</h3>
75+
<h3>{dgettext("my_preferences", "Notifications")}</h3>
7576
<table class="table table-instrument" >
7677
<thead>
7778
{foreach key=gkey item=gitem from=$form.notification_headers.elements}
@@ -110,13 +111,12 @@
110111
</div>
111112
<div class="row form-group">
112113
<div class="col-sm-2">
113-
<input class="btn btn-sm btn-primary col-xs-12" name="fire_away" value="Save" type="submit" />
114+
<input class="btn btn-sm btn-primary col-xs-12" name="fire_away" value="{dgettext("my_preferences", "Save")}" type="submit" />
114115
</div>
115116
<div class="col-sm-2">
116-
<input class="btn btn-sm btn-primary col-xs-12" value="Reset" type="reset" />
117+
<input class="btn btn-sm btn-primary col-xs-12" value="{dgettext("my_preferences", "Reset")}" type="reset" />
117118
</div>
118119
</div>
119120

120-
121121
{$form.hidden|default}
122122
</form>

0 commit comments

Comments
 (0)