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
18873675
Commit
18873675
authored
Dec 15, 2015
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consolidate 'Create new record' and 'Edit record' translations
parent
36b21240
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
admin.pot
babel/admin.pot
+12
-13
list.html
flask_admin/templates/bootstrap2/admin/model/list.html
+4
-4
list.html
flask_admin/templates/bootstrap3/admin/model/list.html
+4
-4
No files found.
babel/admin.pot
View file @
18873675
...
@@ -9,7 +9,7 @@ msgid ""
...
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: Flask-Admin VERSION\n"
"Project-Id-Version: Flask-Admin VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\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"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
@@ -528,6 +528,11 @@ msgstr ""
...
@@ -528,6 +528,11 @@ msgstr ""
msgid "Delete?"
msgid "Delete?"
msgstr ""
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/bootstrap2/admin/model/inline_list_base.html:40
#: ../flask_admin/templates/bootstrap3/admin/model/inline_list_base.html:43
#: ../flask_admin/templates/bootstrap3/admin/model/inline_list_base.html:43
msgid "Add"
msgid "Add"
...
@@ -557,9 +562,11 @@ msgstr ""
...
@@ -557,9 +562,11 @@ msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:22
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:22
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:24
#: ../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:22
#: ../flask_admin/templates/bootstrap3/admin/model/list.html:24
#: ../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 ""
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:31
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:31
...
@@ -596,9 +603,11 @@ msgstr ""
...
@@ -596,9 +603,11 @@ msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:126
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:126
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:128
#: ../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:126
#: ../flask_admin/templates/bootstrap3/admin/model/list.html:128
#: ../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 ""
msgstr ""
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:142
#: ../flask_admin/templates/bootstrap2/admin/model/list.html:142
...
@@ -615,13 +624,3 @@ msgstr ""
...
@@ -615,13 +624,3 @@ msgstr ""
msgid "Please select at least one record."
msgid "Please select at least one record."
msgstr ""
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/list.html
View file @
18873675
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
{% if admin_view.can_create %}
{% if admin_view.can_create %}
<li>
<li>
{%- if admin_view.create_modal -%}
{%- 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 %}
{% 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 -%}
{%- endif -%}
</li>
</li>
{% endif %}
{% endif %}
...
@@ -123,9 +123,9 @@
...
@@ -123,9 +123,9 @@
{%- endif -%}
{%- endif -%}
{%- if admin_view.can_edit -%}
{%- if admin_view.can_edit -%}
{%- if admin_view.edit_modal -%}
{%- 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 %}
{% 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>
<i
class=
"fa fa-pencil icon-pencil"
></i>
</a>
</a>
{%- endif -%}
{%- endif -%}
...
...
flask_admin/templates/bootstrap3/admin/model/list.html
View file @
18873675
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
{% if admin_view.can_create %}
{% if admin_view.can_create %}
<li>
<li>
{%- if admin_view.create_modal -%}
{%- 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 %}
{% 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 -%}
{%- endif -%}
</li>
</li>
{% endif %}
{% endif %}
...
@@ -123,9 +123,9 @@
...
@@ -123,9 +123,9 @@
{%- endif -%}
{%- endif -%}
{%- if admin_view.can_edit -%}
{%- if admin_view.can_edit -%}
{%- if admin_view.edit_modal -%}
{%- 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 %}
{% 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>
<span
class=
"fa fa-pencil glyphicon glyphicon-pencil"
></span>
</a>
</a>
{%- endif -%}
{%- 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