Skip to content

Commit

Permalink
Update FR translation, add missing docstring
Browse files Browse the repository at this point in the history
Ref #271
  • Loading branch information
algorys committed Mar 12, 2018
1 parent 2e6267d commit 018b41e
Show file tree
Hide file tree
Showing 7 changed files with 1,058 additions and 864 deletions.
16 changes: 9 additions & 7 deletions alignak_app/items/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,21 @@ def get_tooltip(self):
return _('%s is %s') % (self.name.capitalize(), self.data['ls_state'])

@staticmethod
def get_text(text):
def get_check_text(check_type):
"""
TODO
:param text:
:return:
Return text for check type
:param check_type: type of check (``active_checks_enabled`` or ``passive_checks_enabled``)
:type check_type: str
:return: the corresponding text
:rtype: str
"""

texts = {
_('active_checks_enabled'): 'Active checks',
_('passive_checks_enabled'): 'Active checks',
'active_checks_enabled': _('Active checks'),
'passive_checks_enabled': _('Passive checks'),
}

return texts[text]
return texts[check_type]


def get_icon_name(item_type, state, acknowledge, downtime, monitored):
Expand Down
Binary file modified alignak_app/locales/LC_MESSAGES/fr_FR.mo
Binary file not shown.

0 comments on commit 018b41e

Please sign in to comment.