Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PagePartBundle] Translate PageTemplate and PagePart names #656

Merged
merged 1 commit into from
Aug 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<input type="radio" id="pagetemplate_template_choice_{{ loop.index }}" class="choice-block__input" name="pagetemplate_template_choice" value="{{ pagetemplate.name }}"{% if resource.pagetemplate.name == pagetemplate.name %} checked="checked"{% endif %}>
<label for="pagetemplate_template_choice_{{ loop.index }}" class="choice-block__item">
<h5 class="choice-block__item__head">
{{ pagetemplate.name }}
{{ pagetemplate.name|trans }}
{% if resource.pagetemplate.name == pagetemplate.name %}
<small>(Current)</small>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<header class="js-sortable-item__handle pp__header {% if not form['pagepartadmin_'~id].count %}pp__header--no-edit{% endif %}">
<i class="fa fa-arrows pp__header__move-icon"></i>
<h5 class="pp__header__head">
{{pagepartadmin.getType(pagepart)}}
{{pagepartadmin.getType(pagepart)|trans}}
</h5>
</header>

Expand Down Expand Up @@ -72,7 +72,7 @@
<select class="js-add-pp-select form-control input-sm pp-container__add__select" data-url="{{ path('KunstmaanPagePartBundle_admin_newpagepart') }}">
<option value="">Add a pagepart</option>
{% for pagePartType in pagepartadmin.possiblePagePartTypes %}
<option value="{{pagePartType.class}}">{{pagePartType.name}}</option>
<option value="{{pagePartType.class}}">{{pagePartType.name|trans}}</option>
{% endfor %}
</select>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<select class="js-add-pp-select js-add-pp-select--first form-control input-sm pp-container__add__select" data-url="{{ path('KunstmaanPagePartBundle_admin_newpagepart') }}">
<option value="">Add a pagepart</option>
{% for pagePartType in pagepartadmin.possiblePagePartTypes %}
<option value="{{ pagePartType.class }}">{{ pagePartType.name }}</option>
<option value="{{ pagePartType.class }}">{{ pagePartType.name|trans }}</option>
{% endfor %}
</select>
</div>
Expand Down