Skip to content

Commit

Permalink
i18n: Better naming
Browse files Browse the repository at this point in the history
s isnt much of a name for a variable.
  • Loading branch information
sils committed Feb 6, 2015
1 parent 858f53c commit ff90e1f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions coalib/misc/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ def _get_locale(): # pragma: no cover
translation = gettext.translation(COALA_DOMAIN, fallback=True)


def _(s):
def _(original):
"""
Marks the input string for translation and returns the translated string.
"""
return translation.gettext(s)
return translation.gettext(original)

def N_(s):

def N_(original):
"""
Marks the input string for translation and returns the untranslated string.
"""
return s
return original

1 comment on commit ff90e1f

@fneu
Copy link
Contributor

@fneu fneu commented on ff90e1f Feb 6, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a

Please sign in to comment.