Skip to content

Commit

Permalink
Mark Yes and No for translation (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Jan 17, 2017
1 parent deb7c8c commit aece1ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion flask_table/columns.py
Expand Up @@ -2,6 +2,7 @@

from flask import Markup, url_for
from babel.dates import format_date, format_datetime
from flask.ext.babel import gettext as _

from .html import element

Expand Down Expand Up @@ -149,7 +150,7 @@ class BoolCol(OptCol):
def __init__(self, name, **kwargs):
super(BoolCol, self).__init__(
name,
choices={True: 'Yes', False: 'No'},
choices={True: _('Yes'), False: _('No')},
coerce_fn=bool,
**kwargs)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

install_requires = [
'Flask',
'Babel'
'Flask-Babel',
]

setup(
Expand Down

0 comments on commit aece1ba

Please sign in to comment.