summaryrefslogtreecommitdiff
path: root/includes/view/UserAngelTypes_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/UserAngelTypes_view.php')
-rw-r--r--includes/view/UserAngelTypes_view.php60
1 files changed, 30 insertions, 30 deletions
diff --git a/includes/view/UserAngelTypes_view.php b/includes/view/UserAngelTypes_view.php
index 1f802de4..965a353a 100644
--- a/includes/view/UserAngelTypes_view.php
+++ b/includes/view/UserAngelTypes_view.php
@@ -9,19 +9,19 @@
*/
function UserAngelType_update_view($user_angeltype, $user, $angeltype, $supporter)
{
- return page_with_title($supporter ? _('Add supporter rights') : _('Remove supporter rights'), [
+ return page_with_title($supporter ? __('Add supporter rights') : __('Remove supporter rights'), [
msg(),
info(sprintf(
$supporter
- ? _('Do you really want to add supporter rights for %s to %s?')
- : _('Do you really want to remove supporter rights for %s from %s?'),
+ ? __('Do you really want to add supporter rights for %s to %s?')
+ : __('Do you really want to remove supporter rights for %s from %s?'),
$angeltype['name'],
User_Nick_render($user)
), true),
buttons([
button(
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
- glyph('remove') . _('cancel')
+ glyph('remove') . __('cancel')
),
button(
page_link_to('user_angeltypes', [
@@ -30,7 +30,7 @@ function UserAngelType_update_view($user_angeltype, $user, $angeltype, $supporte
'supporter' => ($supporter ? '1' : '0'),
'confirmed' => 1,
]),
- glyph('ok') . _('yes'),
+ glyph('ok') . __('yes'),
'btn-primary'
)
])
@@ -43,23 +43,23 @@ function UserAngelType_update_view($user_angeltype, $user, $angeltype, $supporte
*/
function UserAngelTypes_delete_all_view($angeltype)
{
- return page_with_title(_('Deny all users'), [
+ return page_with_title(__('Deny all users'), [
msg(),
- info(sprintf(_('Do you really want to deny all users for %s?'), $angeltype['name']), true),
+ info(sprintf(__('Do you really want to deny all users for %s?'), $angeltype['name']), true),
buttons([
button(
page_link_to(
'angeltypes',
['action' => 'view', 'angeltype_id' => $angeltype['id']]
),
- glyph('remove') . _('cancel')
+ glyph('remove') . __('cancel')
),
button(
page_link_to(
'user_angeltypes',
['action' => 'delete_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]
),
- glyph('ok') . _('yes'),
+ glyph('ok') . __('yes'),
'btn-primary'
)
])
@@ -72,15 +72,15 @@ function UserAngelTypes_delete_all_view($angeltype)
*/
function UserAngelTypes_confirm_all_view($angeltype)
{
- return page_with_title(_('Confirm all users'), [
+ return page_with_title(__('Confirm all users'), [
msg(),
- info(sprintf(_('Do you really want to confirm all users for %s?'), $angeltype['name']), true),
+ info(sprintf(__('Do you really want to confirm all users for %s?'), $angeltype['name']), true),
buttons([
- button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
+ button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
button(
page_link_to('user_angeltypes',
['action' => 'confirm_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]),
- glyph('ok') . _('yes'),
+ glyph('ok') . __('yes'),
'btn-primary'
)
])
@@ -95,21 +95,21 @@ function UserAngelTypes_confirm_all_view($angeltype)
*/
function UserAngelType_confirm_view($user_angeltype, $user, $angeltype)
{
- return page_with_title(_('Confirm angeltype for user'), [
+ return page_with_title(__('Confirm angeltype for user'), [
msg(),
info(sprintf(
- _('Do you really want to confirm %s for %s?'),
+ __('Do you really want to confirm %s for %s?'),
User_Nick_render($user),
$angeltype['name']
), true),
buttons([
- button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
+ button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
button(
page_link_to(
'user_angeltypes',
['action' => 'confirm', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]
),
- glyph('ok') . _('yes'),
+ glyph('ok') . __('yes'),
'btn-primary'
)
])
@@ -124,19 +124,19 @@ function UserAngelType_confirm_view($user_angeltype, $user, $angeltype)
*/
function UserAngelType_delete_view($user_angeltype, $user, $angeltype)
{
- return page_with_title(_('Remove angeltype'), [
+ return page_with_title(__('Remove angeltype'), [
msg(),
info(sprintf(
- _('Do you really want to delete %s from %s?'),
+ __('Do you really want to delete %s from %s?'),
User_Nick_render($user),
$angeltype['name']
), true),
buttons([
- button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
+ button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
button(
page_link_to('user_angeltypes',
['action' => 'delete', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]),
- glyph('ok') . _('yes'),
+ glyph('ok') . __('yes'),
'btn-primary'
)
])
@@ -156,19 +156,19 @@ function UserAngelType_add_view($angeltype, $users_source, $user_id)
$users[$user_source['UID']] = User_Nick_render($user_source);
}
- return page_with_title(_('Add user to angeltype'), [
+ return page_with_title(__('Add user to angeltype'), [
msg(),
buttons([
button(
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
- _('back'),
+ __('back'),
'back'
)
]),
form([
- form_info(_('Angeltype'), $angeltype['name']),
- form_select('user_id', _('User'), $users, $user_id),
- form_submit('submit', _('Add'))
+ form_info(__('Angeltype'), $angeltype['name']),
+ form_select('user_id', __('User'), $users, $user_id),
+ form_submit('submit', __('Add'))
])
]);
}
@@ -180,21 +180,21 @@ function UserAngelType_add_view($angeltype, $users_source, $user_id)
*/
function UserAngelType_join_view($user, $angeltype)
{
- return page_with_title(sprintf(_('Become a %s'), $angeltype['name']), [
+ return page_with_title(sprintf(__('Become a %s'), $angeltype['name']), [
msg(),
info(sprintf(
- _('Do you really want to add %s to %s?'),
+ __('Do you really want to add %s to %s?'),
User_Nick_render($user),
$angeltype['name']
), true),
buttons([
- button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
+ button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
button(
page_link_to(
'user_angeltypes',
['action' => 'add', 'angeltype_id' => $angeltype['id'], 'user_id' => $user['UID'], 'confirmed' => 1]
),
- glyph('ok') . _('save'),
+ glyph('ok') . __('save'),
'btn-primary'
)
])