mirror of
https://github.com/wassname/flask-security.git
synced 2026-10-02 12:10:40 +08:00
Remove stray file
This commit is contained in:
1 parent
c7e3e642fa
commit
0724bd12a5
1 file changed
-16
@@ -1,16 +0,0 @@
|
||||
|
||||
try:
|
||||
from flask.ext.babel import gettext, ngettext, lazy_gettext
|
||||
babel_installed = True
|
||||
except ImportError:
|
||||
babel_installed = False
|
||||
def gettext(string, **variables):
|
||||
return string % variables
|
||||
|
||||
def ngettext(singular, plural, num, **variables):
|
||||
return (singular if num == 1 else plural) % variables
|
||||
|
||||
def lazy_gettext(string, **variables):
|
||||
return gettext(string, **variables)
|
||||
|
||||
_ = gettext
|
||||
Reference in new issue
Block a user