diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/views.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 752db62..01b7a0f 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -25,6 +25,7 @@ from pathlib import Path from ogcp.models import User from ogcp.forms.auth import LoginForm from ogcp.og_server import OGServer +from flask_babel import lazy_gettext as _l from flask_babel import _ from ogcp import app import requests @@ -185,9 +186,9 @@ def get_user(username): intervals = ( - (_('days'), 86400), # 60 * 60 * 24 - (_('hours'), 3600), # 60 * 60 - (_('minutes'), 60), + (_l('days'), 86400), # 60 * 60 * 24 + (_l('hours'), 3600), # 60 * 60 + (_l('minutes'), 60), ) |