Commit 18873675 authored by Paul Brown's avatar Paul Brown

consolidate 'Create new record' and 'Edit record' translations

parent 36b21240
...@@ -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-11 17:54-0600\n" "POT-Creation-Date: 2015-12-15 07:44-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 ""
...@@ -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 record'), content=_gettext('Create')) }} {{ lib.add_modal_button(url=get_url('.create_view', url=return_url, modal=True), title=_gettext('Create New Record'), content=_gettext('Create')) }}
{% else %} {% else %}
<a href="{{ get_url('.create_view', url=return_url) }}" title="{{ _gettext('Create new record') }}">{{ _gettext('Create') }}</a> <a href="{{ get_url('.create_view', url=return_url) }}" title="{{ _gettext('Create New Record') }}">{{ _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 record'), 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 Record'), 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 record') }}"> <a class="icon" href="{{ get_url('.edit_view', id=get_pk_value(row), url=return_url) }}" title="{{ _gettext('Edit Record') }}">
<i class="fa fa-pencil icon-pencil"></i> <i class="fa fa-pencil icon-pencil"></i>
</a> </a>
{%- endif -%} {%- endif -%}
......
...@@ -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 record'), content=_gettext('Create')) }} {{ lib.add_modal_button(url=get_url('.create_view', url=return_url, modal=True), title=_gettext('Create New Record'), content=_gettext('Create')) }}
{% else %} {% else %}
<a href="{{ get_url('.create_view', url=return_url) }}" title="{{ _gettext('Create new record') }}">{{ _gettext('Create') }}</a> <a href="{{ get_url('.create_view', url=return_url) }}" title="{{ _gettext('Create New Record') }}">{{ _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 record'), 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 Record'), 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 record') }}"> <a class="icon" href="{{ get_url('.edit_view', id=get_pk_value(row), url=return_url) }}" title="{{ _gettext('Edit Record') }}">
<span class="fa fa-pencil glyphicon glyphicon-pencil"></span> <span class="fa fa-pencil glyphicon glyphicon-pencil"></span>
</a> </a>
{%- endif -%} {%- endif -%}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment