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
1d12237b
Commit
1d12237b
authored
Mar 27, 2016
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed localization
parent
36d9be1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
template.py
flask_admin/model/template.py
+6
-11
No files found.
flask_admin/model/template.py
View file @
1d12237b
from
jinja2
import
contextfunction
from
flask_admin._compat
import
string_types
from
flask_admin.babel
import
gettext
class
BaseListRowAction
(
object
):
...
...
@@ -76,42 +77,36 @@ class TemplateLinkRowAction(BaseListRowAction):
class
ViewRowAction
(
TemplateLinkRowAction
):
def
__init__
(
self
):
super
(
ViewRowAction
,
self
)
.
__init__
(
# TODO: Localize
'row_actions.view_row'
,
'View row'
)
gettext
(
'View row'
)
)
class
ViewPopupRowAction
(
TemplateLinkRowAction
):
def
__init__
(
self
):
super
(
ViewPopupRowAction
,
self
)
.
__init__
(
# TODO: Localize
'row_actions.view_row_popup'
,
'View row'
)
gettext
(
'View row'
)
)
class
EditRowAction
(
TemplateLinkRowAction
):
def
__init__
(
self
):
super
(
EditRowAction
,
self
)
.
__init__
(
# TODO: Localize
'row_actions.edit_row'
,
'Edit row'
)
gettext
(
'Edit row'
)
)
class
EditPopupRowAction
(
TemplateLinkRowAction
):
def
__init__
(
self
):
super
(
EditPopupRowAction
,
self
)
.
__init__
(
# TODO: Localize
'row_actions.edit_row_popup'
,
'Edit row'
)
gettext
(
'Edit row'
)
)
class
DeleteRowAction
(
TemplateLinkRowAction
):
def
__init__
(
self
):
# TODO: Pass form
super
(
DeleteRowAction
,
self
)
.
__init__
(
# TODO: Localize
'row_actions.delete_row'
,
'Edit row'
)
gettext
(
'Edit row'
)
)
# Macro helper
...
...
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