Skip to content

Commit

Permalink
EN Language Append
Browse files Browse the repository at this point in the history
  • Loading branch information
cesurapp committed May 30, 2021
1 parent bb3d01a commit 133f467
Show file tree
Hide file tree
Showing 5 changed files with 243 additions and 26 deletions.
1 change: 0 additions & 1 deletion assets/admin/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ body {
max-width: 100vw;

.app-nav {
width: 275px;
z-index: 20;
}

Expand Down
69 changes: 46 additions & 23 deletions assets/admin/src/sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ $grid-gutter-width: 1.2rem;
transition-delay: .25s;
z-index: 3;
box-shadow: 0.07rem 0 0.07rem rgb(0 0 0 / 15%);
width: 275px;
.toggle {
background: #3a3a3a;
Expand Down Expand Up @@ -239,21 +240,33 @@ $grid-gutter-width: 1.2rem;
}
}
.pd-menu a {
display: flex;
align-items: center;
color: #afb2b6;
padding: $grid-gutter-width / 1.3 $grid-gutter-width;
transition: $transition-base;
font-weight: 600;
position: relative;
font-size: $font-size-base + .1;
line-height: $font-size-base + .1;
.pd-menu {
a{
display: flex;
align-items: center;
color: #afb2b6;
padding: $grid-gutter-width / 1.3 $grid-gutter-width;
transition: $transition-base;
font-weight: 600;
position: relative;
font-size: $font-size-base + .1;
line-height: $font-size-base + .1;
i {
margin-right: $grid-gutter-width;
font-size: $font-size-base + .7rem;
width: 24px;
i {
margin-right: $grid-gutter-width;
font-size: $font-size-base + .7rem;
width: 24px;
}
}
& > li > a > span{
overflow: hidden;
padding-right: .9rem;
white-space: nowrap;
display: block;
width: 100%;
text-overflow: ellipsis;
line-height: 1.4;
}
}
Expand Down Expand Up @@ -384,16 +397,26 @@ $grid-gutter-width: 1.2rem;
// Big Menu
&.bigmenu {
width: 170px !important;
.pd-menu a {
flex-direction: column;
padding: $grid-gutter-width;
width: 170px;
min-width: auto;
.pd-menu {
a{
flex-direction: column;
padding: $grid-gutter-width - .2;
i {
margin-right: 0;
margin-bottom: $grid-gutter-width * 0.85;
font-size: $font-size-base + 1.5rem;
width: auto;
}
}
i {
margin-right: 0;
margin-bottom: $grid-gutter-width * 0.85;
font-size: $font-size-base + 1.5rem;
width: auto;
& > li > a > span{
padding-right: 0;
text-align: center;
line-height: 1.2;
text-overflow: inherit;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/DataTable/AbstractDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
use Symfony\Component\HttpFoundation\HeaderUtils;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* Ajax Data Table
Expand All @@ -24,7 +24,7 @@ abstract class AbstractDataTable implements DataTableInterface
private ?Request $request;

public function __construct(protected AuthorizationCheckerInterface $auth,
protected MessageBusInterface $bus)
protected TranslatorInterface $trans)
{
}

Expand Down
53 changes: 53 additions & 0 deletions translations/acl.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
access_denied: Access denied!
access_denied_not_authorized: Access denied! You are not authorized for this action.
not_login_own_account: Access denied! You cannot log into your own account.
not_login_super_admin: Access denied! You cannot login to the Super Admin account.
not_login_already_switched: Access denied! You have already switched to an existing user.
not_login_switch_authorized: Access denied! Your authorization is not sufficient for this operation.

ACL:
title: Access Control
ACLProcess:
title: Special Process
ROLE_USER:
title: User
ROLE_SUPER_ADMIN:
title: Super Admin
ROLE_ALLOWED_TO_SWITCH:
title: Account Switching
ROLE_DASHBOARD:
title: Admin - Dashboard
PANEL: Display Admin Panel
ROLE_ACCOUNT:
title: Admin - User Management
LIST: Listing
EDIT: Edit
PASSWORD: Change Password
ROLES: Authorization
ACTIVATE: Activation
GROUP: Add/Remove Group
DELETE: Delete
FREEZE: Account Freeze
ALLREAD: Reading All Accounts
ALLWRITE: Writing All Accounts
ROLE_GROUP:
title: Admin - User Group Management
LIST: Listing
EDIT: Edit
CREATE: New Group
DELETE: Delete
ROLES: Authorization
ROLE_CONFIG:
title: Admin - System Settings
GENERAL: General
USER: Account
MEDIA: Media
ROLE_WIDGET:
title: Admin - Dashboard Widget
USERINFO: User Information
QUICKACTION: Quick Menu
USERSTATISTICS: User Statistics
ROLE_ACTIVITY:
title: Admin - Log Management
HTTP: Activity Log
MAIL: Mail Log
142 changes: 142 additions & 0 deletions translations/messages.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Message & Button & Text
message:
saved: Changes are saved.
deleted: The deletion is complete.
button:
save: Save
add: Add
delete: Delete
move: Move
yes: Yes
no: No
cancel: Cancel
edit: Edit
confirm:
delete: Are you sure you want to delete it?
approve: Are you sure you want to perform this action?
date: Date
save: Save

# Toolbar
toolbar:
language: Language
profile:
edit: My Profile
password: Change my password
return_admin: Back to Admin
logout: Sign Out

# Pages
404:
title: Page Not Found!
description: Sorry, the page you are looking for was not found or may have been deprecated.

dashboard:
title: Admin Panel

config:
title: Settings
system: System Settings
general:
title: General
head_title: Site Title
head_title_help: The name of the site, shown as a suffix.
head_title_pattern: Title Pattern
head_title_pattern_help: '&T: Active page title, <br>&P: Panel suffix'
head_description: Site Description
head_description_help: The meta 'description' tag field for the panel.
head_author: Site Author
head_author_help: Determines the site builder.
head_keywords: Keywords
footer_copyright: Footer Copyright
default_locale: Default Language
site_logo: Site Logo
site_favicon: Site Favicon
list_count: Number of Listings
list_count_help: Default listing number for admin panel
media:
title: Media
optimize: Image Optimize
optimize_help: Enables optimization for images uploaded with the pdAdmin upload system.
max_height: Image Maximum Height
max_height_help: It is the maximum height value for images.
max_width: Image Maximum Width
max_width_help: Maximum width for images.
quality: Picture Quality
quality_help: Enter value from 0-100, default is 80.
user:
title: User
registration: Member Registration
registration_help: Activates member registration.
default_group: Default Group
default_group_help: The group that new members join automatically.
login_redirect: Login Redirect
login_redirect_help: The page that the user will be redirected to after logging in.
logout_redirect: Exit Redirect
logout_redirect_help: The page that the user will be redirected to after logging out.
email_confirmation: Email Verification
email_confirmation_help: Enables email verification for new members.
welcome_email: Welcome Email
welcome_email_help: Sends a welcome email for new members.

account:
title: Edit Account
edit:
title: My Profile
firstname: Your name
lastname: Last name
phone: Phone
language: Language
groups: Member Groups
password:
title: Password
roles:
title: Roles
groups:
title: Groups

accounts:
title: Account Management
account:
title: Accounts
approve: Approve Account
unapprove: Unapprove
freeze: Freeze Account
unfreeze: Activate Account
switch: Login to Account
group:
title: Groups
add: New Group
add_title: Create New Group
roles: Authorization
edit_title: Edit Group

activity:
log:
title: Activity Log
mail:
title: Mail Log

# Widgets
widget:
modal_title: Add New Widget
user_info:
name: User Information
description: Shows the number of registered members.
count: Registered Member
user_statistic:
name: User Statistics
description: Shows detailed user statistics.
last_week: Last 1 Week
last_month: Last 1 Month
last_three_month: Last 3 Months
quick_action:
name: Quick Buttons
description: Creates easy access buttons to menus.
add_button: Add Button
account: accounts
account_desc: Displays the user account list
group: Groups
group_desc: Displays user group settings
general: General Settings
general_desc: Displays general system settings

0 comments on commit 133f467

Please sign in to comment.