Skip to content

Commit

Permalink
add Indonesian
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Apr 22, 2020
1 parent 782f935 commit 7242aea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CyberCP/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
('vi', _('Vietnamese')),
('it', _('Italian')),
('de', _('Deutsch')),
('id', _('Indonesian')),
)

MEDIA_URL = '/home/cyberpanel/media/'
Expand Down
Binary file modified locale/id/LC_MESSAGES/django.mo
Binary file not shown.
1 change: 1 addition & 0 deletions loginSystem/templates/loginSystem/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ <h4 class="text-muted text-center mb-10">Web Hosting Control Panel</h4>
<option>Polish</option>
<option>Vietnamese</option>
<option>German</option>
<option>Indonesian</option>
</select>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions loginSystem/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def verifyLogin(request):
user_Language = "it"
elif data['languageSelection'] == "German":
user_Language = "de"
elif data['languageSelection'] == "Indonesian":
user_Language = "id"

translation.activate(user_Language)
response = HttpResponse()
Expand Down

0 comments on commit 7242aea

Please sign in to comment.