Fix #554 translations in page's tooltip

This commit is contained in:
Flavio Copes
2016-05-04 15:09:32 +02:00
parent cb16c429e6
commit 2246a44ce5
2 changed files with 11 additions and 6 deletions

View File

@@ -544,4 +544,9 @@ PLUGIN_ADMIN:
ORDERED_LIST: "Ordered List"
EDITOR: "Editor"
PREVIEW: "Preview"
FULLSCREEN: "Fullscreen"
FULLSCREEN: "Fullscreen"
MODULAR: "Modular"
NON_ROUTABLE: "Non-Routable"
NON_VISIBLE: "Non-Visible"
NON_PUBLISHED: "Non-Published"

View File

@@ -64,11 +64,11 @@
{% endif %}
{% for p in pcol %}
{% set description = (not p.page ? 'Folder • ' : 'Page • ') ~
(p.modular ? 'Modular • ' : '') ~
(p.routable ? 'Routable • ' : 'Non-Routable • ') ~
(p.visible ? 'Visible • ' : 'Non-Visible • ') ~
(p.published ? 'Published • ' : 'Non-Published • ') %}
{% set description = (not p.page ? "PLUGIN_ADMIN.FOLDER"|tu ~ ' • ' : "PLUGIN_ADMIN.PAGE"|tu ~ ' • ') ~
(p.modular ? "PLUGIN_ADMIN.MODULAR"|tu ~ ' • ' : '') ~
(p.routable ? "PLUGIN_ADMIN.ROUTABLE"|tu ~ ' • ' : "PLUGIN_ADMIN.NON_ROUTABLE"|tu ~ ' • ') ~
(p.visible ? "PLUGIN_ADMIN.VISIBLE"|tu ~ ' • ' : "PLUGIN_ADMIN.NON_VISIBLE"|tu ~ ' • ') ~
(p.published ? "PLUGIN_ADMIN.PUBLISHED"|tu ~ ' • ' : "PLUGIN_ADMIN.NON_PUBLISHED"|tu ~ ' • ') %}
{% set page_route = p.rawRoute|trim('/') %}
{% if p.language and p.language != admin_lang %}
{% set page_url = base_url_simple ~ '/' ~ p.language ~ '/' ~ admin_route ~ '/pages/' ~ page_route %}