i18n: improve translations across horilla (#1014)
- Added trans() / _() translations to models, forms and templates. - Updated Spanish locale (django.po). - Fixed missing verbose_name translations. Known issues: - "Leave Type" label in horilla/leave/forms.py not translating. - "Performance" and "Mails automations" still pending.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% load static %}
|
||||
{% load horillafilters %}
|
||||
<style>
|
||||
@@ -110,7 +112,7 @@
|
||||
</style>
|
||||
|
||||
<div class="inner-fabs">
|
||||
<div id="fab9" class="fab round" data-tooltip="Dashboard Charts">
|
||||
<div id="fab9" class="fab round" data-tooltip="{% trans 'Dashboard Charts' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -122,7 +124,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{% if "helpdesk"|app_installed %}
|
||||
<div id="fab8" class="fab round" data-tooltip="Create Ticket">
|
||||
<div id="fab8" class="fab round" data-tooltip="{% trans 'Create Ticket' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -135,7 +137,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "asset"|app_installed %}
|
||||
<div id="fab7" class="fab round" data-tooltip="Create Asset Request">
|
||||
<div id="fab7" class="fab round" data-tooltip="{% trans 'Create Asset Request' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -148,7 +150,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "payroll"|app_installed %}
|
||||
<div id="fab6" class="fab round" data-tooltip="Create Reimbursement">
|
||||
<div id="fab6" class="fab round" data-tooltip="{% trans 'Create Reimbursement' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -160,7 +162,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="fab5" class="fab round" data-tooltip="Create Work Type Request">
|
||||
<div id="fab5" class="fab round" data-tooltip="{% trans 'Create Work Type Request' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -171,7 +173,7 @@
|
||||
<i class="material-icons mt-2">work</i>
|
||||
</a>
|
||||
</div>
|
||||
<div id="fab4" class="fab round" data-tooltip="Create Shift Request">
|
||||
<div id="fab4" class="fab round" data-tooltip="{% trans 'Create Shift Request' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -183,7 +185,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{% if "leave"|app_installed %}
|
||||
<div id="fab3" class="fab round" data-tooltip="Create Leave Request">
|
||||
<div id="fab3" class="fab round" data-tooltip="{% trans 'Create Leave Request' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -202,7 +204,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "attendance"|app_installed %}
|
||||
<div id="fab2" class="fab round" data-tooltip="Create Attendance Request">
|
||||
<div id="fab2" class="fab round" data-tooltip="{% trans 'Create Attendance Request' %}">
|
||||
<a
|
||||
class="text-light"
|
||||
data-toggle="oh-modal-toggle"
|
||||
@@ -217,7 +219,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="fab1" class="fab round" data-tooltip="Quick Action">
|
||||
<div id="fab1" class="fab round" data-tooltip="{% trans 'Quick Actions' %}">
|
||||
<i id="fabIcon" class="material-icons">add</i>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
{% if request.user|any_permission:'base' or perms.attendance.view_attendancevalidationcondition %}
|
||||
<!-- Start of settings button in nav bar -->
|
||||
<div class="oh-navbar__action-icons" title="Settings">
|
||||
<div class="oh-navbar__action-icons" title="{% trans 'Settings' %}">
|
||||
<a href="{% url 'general-settings' %}" id="settingsMenu" class="oh-navbar__action-icons-link">
|
||||
<ion-icon name="settings-outline" class="oh-navbar__icon"></ion-icon>
|
||||
</a>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
href="#"
|
||||
class="oh-navbar__notification-link"
|
||||
@click="open = !open"
|
||||
title="Notifications"
|
||||
title="{% trans 'Notifications' %}"
|
||||
>
|
||||
<ion-icon
|
||||
name="notifications-outline"
|
||||
|
||||
Reference in New Issue
Block a user