[ticket/649] Properly load language for permission settings in ACP
B3P-649
This commit is contained in:
@@ -72,6 +72,7 @@ class listener implements EventSubscriberInterface
|
||||
'core.user_setup' => 'load_portal_language',
|
||||
'core.viewonline_overwrite_location' => 'viewonline_page',
|
||||
'core.page_header' => 'add_portal_link',
|
||||
'core.permissions event' => 'load_permissions',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -175,4 +176,17 @@ class listener implements EventSubscriberInterface
|
||||
{
|
||||
return $this->config['board_disable'] && !defined('SKIP_CHECK_DISABLED') && !$this->auth->acl_gets('a_', 'm_') && !$this->auth->acl_getf_global('m_');
|
||||
}
|
||||
|
||||
/**
|
||||
* Load permissions into permissions array
|
||||
*
|
||||
* @param array $event Event data
|
||||
*/
|
||||
protected function load_permissions($event)
|
||||
{
|
||||
$permissions = $event['permissions'];
|
||||
$permissions['a_manage_portal'] = array('lang' => 'ACL_A_MANAGE_PORTAL', 'cat' => 'misc');
|
||||
$permissions['u_view_portal'] = array('lang' => 'ACL_U_VIEW_PORTAL', 'cat' => 'misc');
|
||||
$event['permissions'] = $permissions;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,8 +47,4 @@ $lang = array_merge($lang, array(
|
||||
'LOG_PORTAL_EVENT_UPDATED' => '<strong>Portal-Einstellungen geändert</strong><br />» Termin geändert: %s ',
|
||||
'LOG_PORTAL_EVENT_REMOVED' => '<strong>Portal-Einstellungen geändert</strong><br />» Termin gelöscht: %s ',
|
||||
'LOG_PORTAL_CONFIG' => '<strong>Portal-Einstellungen geändert</strong><br />» %s',
|
||||
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Kann Portal-Einstellungen ändern',
|
||||
'ACL_U_VIEW_PORTAL' => 'Kann das Portal sehen',
|
||||
));
|
||||
|
||||
39
language/de/permissions_portal.php
Normal file
39
language/de/permissions_portal.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package Board3 Portal v2.1
|
||||
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* DO NOT CHANGE
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Kann Portal-Einstellungen <20>ndern',
|
||||
'ACL_U_VIEW_PORTAL' => 'Kann das Portal sehen',
|
||||
));
|
||||
@@ -46,8 +46,4 @@ $lang = array_merge($lang, array(
|
||||
'LOG_PORTAL_EVENT_UPDATED' => '<strong>Altered Portal settings</strong><br />» Event updated: %s ',
|
||||
'LOG_PORTAL_EVENT_REMOVED' => '<strong>Altered Portal settings</strong><br />» Event removed: %s ',
|
||||
'LOG_PORTAL_CONFIG' => '<strong>Altered Portal settings</strong><br />» %s',
|
||||
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Can alter Portal settings',
|
||||
'ACL_U_VIEW_PORTAL' => 'Can view the Portal',
|
||||
));
|
||||
|
||||
39
language/en/permissions_portal.php
Normal file
39
language/en/permissions_portal.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package Board3 Portal v2.1
|
||||
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* DO NOT CHANGE
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Can alter Portal settings',
|
||||
'ACL_U_VIEW_PORTAL' => 'Can view the Portal',
|
||||
));
|
||||
@@ -46,8 +46,4 @@ $lang = array_merge($lang, array(
|
||||
'LOG_PORTAL_EVENT_UPDATED' => '<strong>Ajustes del Portal alterados</strong><br />» Evento actualizado: %s ',
|
||||
'LOG_PORTAL_EVENT_REMOVED' => '<strong>Ajustes del Portal alterados</strong><br />» Evento eliminado: %s ',
|
||||
'LOG_PORTAL_CONFIG' => '<strong>Ajustes del Portal alterados</strong><br />» %s',
|
||||
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Puede alterar ajustes del Portal',
|
||||
'ACL_U_VIEW_PORTAL' => 'Puede ver el Portal',
|
||||
));
|
||||
|
||||
39
language/es/permissions_portal.php
Normal file
39
language/es/permissions_portal.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package Board3 Portal v2.1
|
||||
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* DO NOT CHANGE
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Puede alterar ajustes del Portal',
|
||||
'ACL_U_VIEW_PORTAL' => 'Puede ver el Portal',
|
||||
));
|
||||
@@ -47,8 +47,4 @@ $lang = array_merge($lang, array(
|
||||
'LOG_PORTAL_EVENT_UPDATED' => '<strong>Paramètres du portail modifiés</strong><br />» Évènement mis à jour : %s ',
|
||||
'LOG_PORTAL_EVENT_REMOVED' => '<strong>Paramètres du portail modifiés</strong><br />» Évènement retiré : %s ',
|
||||
'LOG_PORTAL_CONFIG' => '<strong>Paramètres du portail modifiés</strong><br />» %s',
|
||||
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Peut modifier les paramètres du portail',
|
||||
'ACL_U_VIEW_PORTAL' => 'Peut afficher le portail',
|
||||
));
|
||||
|
||||
39
language/fr/permissions_portal.php
Normal file
39
language/fr/permissions_portal.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package Board3 Portal v2.1
|
||||
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* DO NOT CHANGE
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Peut modifier les param<61>tres du portail',
|
||||
'ACL_U_VIEW_PORTAL' => 'Peut afficher le portail',
|
||||
));
|
||||
@@ -46,8 +46,4 @@ $lang = array_merge($lang, array(
|
||||
'LOG_PORTAL_EVENT_UPDATED' => '<strong>Impostazioni portale modificate</strong><br />» Evento aggiornato: %s ',
|
||||
'LOG_PORTAL_EVENT_REMOVED' => '<strong>Impostazioni portale modificate</strong><br />» Evento rimosso: %s ',
|
||||
'LOG_PORTAL_CONFIG' => '<strong>Impostazioni portale modificate</strong><br />» %s',
|
||||
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Può modificare le impostazioni del portale',
|
||||
'ACL_U_VIEW_PORTAL' => 'Può visualizzare il portale',
|
||||
));
|
||||
|
||||
39
language/it/permissions_portal.php
Normal file
39
language/it/permissions_portal.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package Board3 Portal v2.1
|
||||
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* DO NOT CHANGE
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Pu<50> modificare le impostazioni del portale',
|
||||
'ACL_U_VIEW_PORTAL' => 'Pu<50> visualizzare il portale',
|
||||
));
|
||||
@@ -42,7 +42,4 @@ $lang = array_merge($lang, array(
|
||||
'LOG_PORTAL_EVENT_UPDATED' => '<strong>Portaalinstellingen veranderd</strong><br />» Evenement gewijzigd: %s ',
|
||||
'LOG_PORTAL_EVENT_REMOVED' => '<strong>Portaalinstellingen veranderd</strong><br />» Evenement verwijderd: %s ',
|
||||
'LOG_PORTAL_CONFIG' => '<strong>Portaalinstellingen veranderd</strong><br />» %s',
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Kan portaalinstellingen wijzigen',
|
||||
'ACL_U_VIEW_PORTAL' => 'Kan portaal bekijken',
|
||||
));
|
||||
|
||||
39
language/nl/permissions_portal.php
Normal file
39
language/nl/permissions_portal.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package Board3 Portal v2.1
|
||||
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* DO NOT CHANGE
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
// Adding the permissions
|
||||
'ACL_A_MANAGE_PORTAL' => 'Kan portaalinstellingen wijzigen',
|
||||
'ACL_U_VIEW_PORTAL' => 'Kan portaal bekijken',
|
||||
));
|
||||
Reference in New Issue
Block a user