Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
2bd61e81
Commit
2bd61e81
authored
Mar 12, 2015
by
Alex Kerney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using flask_babelex
parent
5a50d9d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
localization.rst
doc/localization.rst
+1
-1
app.py
examples/babel/app.py
+1
-1
babel.py
flask_admin/babel.py
+1
-1
test_basic.py
flask_admin/tests/sqla/test_basic.py
+1
-1
No files found.
doc/localization.rst
View file @
2bd61e81
...
...
@@ -21,7 +21,7 @@ How to enable localization
2. Initialize Flask-BabelEx by creating instance of `Babel` class::
from flask import app
from flask
.ext.babel
import Babel
from flask
_babelex
import Babel
app = Flask(__name__)
babel = Babel(app)
...
...
examples/babel/app.py
View file @
2bd61e81
...
...
@@ -2,7 +2,7 @@ from flask import Flask, request, session
from
flask_sqlalchemy
import
SQLAlchemy
import
flask_admin
as
admin
from
flask
.ext.babel
import
Babel
from
flask
_babelex
import
Babel
from
flask_admin.contrib
import
sqla
...
...
flask_admin/babel.py
View file @
2bd61e81
try
:
from
.helpers
import
get_current_view
from
flask
.ext.babel
import
Domain
from
flask
_babelex
import
Domain
from
flask_admin
import
translations
...
...
flask_admin/tests/sqla/test_basic.py
View file @
2bd61e81
...
...
@@ -6,7 +6,7 @@ from flask_admin import form
from
flask_admin._compat
import
as_unicode
from
flask_admin._compat
import
iteritems
from
flask_admin.contrib.sqla
import
ModelView
,
filters
from
flask
.ext.babel
import
Babel
from
flask
_babelex
import
Babel
from
.
import
setup
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment