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
3b5d929a
Commit
3b5d929a
authored
Dec 16, 2015
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1145 from pawl/translate_new
Prevent duplicate translations, localize "New" for inline forms
parents
e28a1c59
18873675
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
23 deletions
+22
-23
admin.pot
babel/admin.pot
+12
-13
inline_list_base.html
...in/templates/bootstrap2/admin/model/inline_list_base.html
+1
-1
list.html
flask_admin/templates/bootstrap2/admin/model/list.html
+4
-4
inline_list_base.html
...in/templates/bootstrap3/admin/model/inline_list_base.html
+1
-1
list.html
flask_admin/templates/bootstrap3/admin/model/list.html
+4
-4
No files found.
babel/admin.pot
View file @
3b5d929a
...
...
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Admin VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-12-1
1 17:5
4-0600\n"
"POT-Creation-Date: 2015-12-1
5 07:4
4-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -528,6 +528,11 @@ msgstr ""
msgid "Delete?"
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/inline_list_base.html:30
#: ../flask_admin/templates/bootstrap3/admin/model/inline_list_base.html:33
msgid "New"
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/inline_list_base.html:40
#: ../flask_admin/templates/bootstrap3/admin/model/inline_list_base.html:43
msgid "Add"
...
...
@@ -557,9 +562,11 @@ msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:22
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:24
#: ../flask_admin/templates/bootstrap2/admin/model/modals/create.html:22
#: ../flask_admin/templates/bootstrap3/admin/model/list.html:22
#: ../flask_admin/templates/bootstrap3/admin/model/list.html:24
msgid "Create new record"
#: ../flask_admin/templates/bootstrap3/admin/model/modals/create.html:10
msgid "Create New Record"
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:31
...
...
@@ -596,9 +603,11 @@ msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:126
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:128
#: ../flask_admin/templates/bootstrap2/admin/model/modals/edit.html:22
#: ../flask_admin/templates/bootstrap3/admin/model/list.html:126
#: ../flask_admin/templates/bootstrap3/admin/model/list.html:128
msgid "Edit record"
#: ../flask_admin/templates/bootstrap3/admin/model/modals/edit.html:11
msgid "Edit Record"
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:142
...
...
@@ -615,13 +624,3 @@ msgstr ""
msgid "Please select at least one record."
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/modals/create.html:22
#: ../flask_admin/templates/bootstrap3/admin/model/modals/create.html:10
msgid "Create New Record"
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/modals/edit.html:22
#: ../flask_admin/templates/bootstrap3/admin/model/modals/edit.html:11
msgid "Edit Record"
msgstr ""
flask_admin/templates/bootstrap2/admin/model/inline_list_base.html
View file @
3b5d929a
...
...
@@ -27,7 +27,7 @@
{% filter forceescape %}
<div
class=
"inline-field well well-small"
>
<legend>
New
{{ field.label.text }}
{{ _gettext('New') }}
{{ field.label.text }}
<div
class=
"pull-right"
>
<a
href=
"javascript:void(0)"
class=
"inline-remove-field"
><i
class=
"fa fa-times icon-remove"
></i></a>
</div>
...
...
flask_admin/templates/bootstrap2/admin/model/list.html
View file @
3b5d929a
...
...
@@ -19,9 +19,9 @@
{% if admin_view.can_create %}
<li>
{%- if admin_view.create_modal -%}
{{ lib.add_modal_button(url=get_url('.create_view', url=return_url, modal=True), title=_gettext('Create
new r
ecord'), content=_gettext('Create')) }}
{{ lib.add_modal_button(url=get_url('.create_view', url=return_url, modal=True), title=_gettext('Create
New R
ecord'), content=_gettext('Create')) }}
{% else %}
<a
href=
"{{ get_url('.create_view', url=return_url) }}"
title=
"{{ _gettext('Create
new r
ecord') }}"
>
{{ _gettext('Create') }}
</a>
<a
href=
"{{ get_url('.create_view', url=return_url) }}"
title=
"{{ _gettext('Create
New R
ecord') }}"
>
{{ _gettext('Create') }}
</a>
{%- endif -%}
</li>
{% endif %}
...
...
@@ -123,9 +123,9 @@
{%- endif -%}
{%- if admin_view.can_edit -%}
{%- if admin_view.edit_modal -%}
{{ lib.add_modal_button(url=get_url('.edit_view', id=get_pk_value(row), url=return_url, modal=True), title=_gettext('Edit
r
ecord'), content='
<i
class=
"fa fa-pencil icon-pencil"
></i>
') }}
{{ lib.add_modal_button(url=get_url('.edit_view', id=get_pk_value(row), url=return_url, modal=True), title=_gettext('Edit
R
ecord'), content='
<i
class=
"fa fa-pencil icon-pencil"
></i>
') }}
{% else %}
<a
class=
"icon"
href=
"{{ get_url('.edit_view', id=get_pk_value(row), url=return_url) }}"
title=
"{{ _gettext('Edit
r
ecord') }}"
>
<a
class=
"icon"
href=
"{{ get_url('.edit_view', id=get_pk_value(row), url=return_url) }}"
title=
"{{ _gettext('Edit
R
ecord') }}"
>
<i
class=
"fa fa-pencil icon-pencil"
></i>
</a>
{%- endif -%}
...
...
flask_admin/templates/bootstrap3/admin/model/inline_list_base.html
View file @
3b5d929a
...
...
@@ -30,7 +30,7 @@
{% filter forceescape %}
<div
class=
"inline-field well well-sm"
>
<legend>
<small>
New
{{ field.label.text }}
</small>
<small>
{{ _gettext('New') }}
{{ field.label.text }}
</small>
<div
class=
"pull-right"
>
<a
href=
"javascript:void(0)"
class=
"inline-remove-field"
><span
class=
"fa fa-times glyphicon glyphicon-remove"
></span></a>
</div>
...
...
flask_admin/templates/bootstrap3/admin/model/list.html
View file @
3b5d929a
...
...
@@ -19,9 +19,9 @@
{% if admin_view.can_create %}
<li>
{%- if admin_view.create_modal -%}
{{ lib.add_modal_button(url=get_url('.create_view', url=return_url, modal=True), title=_gettext('Create
new r
ecord'), content=_gettext('Create')) }}
{{ lib.add_modal_button(url=get_url('.create_view', url=return_url, modal=True), title=_gettext('Create
New R
ecord'), content=_gettext('Create')) }}
{% else %}
<a
href=
"{{ get_url('.create_view', url=return_url) }}"
title=
"{{ _gettext('Create
new r
ecord') }}"
>
{{ _gettext('Create') }}
</a>
<a
href=
"{{ get_url('.create_view', url=return_url) }}"
title=
"{{ _gettext('Create
New R
ecord') }}"
>
{{ _gettext('Create') }}
</a>
{%- endif -%}
</li>
{% endif %}
...
...
@@ -123,9 +123,9 @@
{%- endif -%}
{%- if admin_view.can_edit -%}
{%- if admin_view.edit_modal -%}
{{ lib.add_modal_button(url=get_url('.edit_view', id=get_pk_value(row), url=return_url, modal=True), title=_gettext('Edit
r
ecord'), content='
<span
class=
"fa fa-pencil glyphicon glyphicon-pencil"
></span>
') }}
{{ lib.add_modal_button(url=get_url('.edit_view', id=get_pk_value(row), url=return_url, modal=True), title=_gettext('Edit
R
ecord'), content='
<span
class=
"fa fa-pencil glyphicon glyphicon-pencil"
></span>
') }}
{% else %}
<a
class=
"icon"
href=
"{{ get_url('.edit_view', id=get_pk_value(row), url=return_url) }}"
title=
"{{ _gettext('Edit
r
ecord') }}"
>
<a
class=
"icon"
href=
"{{ get_url('.edit_view', id=get_pk_value(row), url=return_url) }}"
title=
"{{ _gettext('Edit
R
ecord') }}"
>
<span
class=
"fa fa-pencil glyphicon glyphicon-pencil"
></span>
</a>
{%- endif -%}
...
...
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