ClipBucket 中文化 – 管理選單

這一部分講的主要是針對ClipBucket的管理選單進行中文化
但是選單內的功能內容並沒有 ( 等有餘力再來完成 )
並且這部分會有點麻煩
主要需要搭配前一篇文章的附件進行 ClipBucket 中文化
下面的內容顯示主要是以 (原本內容) ==> (更改的內容) 進行

修改/var/www/html/includes/classes/ClipBucket.class.php
針對function LatestAdminMenu()進行修改,大約在第320行附近
vim /var/www/html/includes/classes/ClipBucket.class.php

$NewMenu[ 'Stats And Configurations'] ==> $NewMenu[ lang('Stats_And_Configurations')]
'Reports & Stats' ==> lang('Reports_Stats')
'Website Configurations' ==> lang('Website_Configurations')
'Email Settings' ==> lang('Email_Settings')
'Language Settings' ==> lang('Language_Settings')
'Add New Phrases' ==> lang('Add_New_Phrases')
'Manage Pages' ==> lang('Manage_Pages')
'Manage Comments' ==> lang('Manage_Comments')
$NewMenu['Videos'] ==> $NewMenu[lang('menu_videos')]
'Videos Manager' ==> lang('grp_manage_vdos')
'Manage Categories' ==> lang('video_Manage_Categories')
'List Flagged Videos' ==> lang('List_Flagged_Videos')
'Upload Videos' ==> lang('Upload_Videos')
'List Inactive Videos' ==> lang('List_Inactive_Videos')
$NewMenu['Users'] ==> $NewMenu[lang('members')]
'Manage Members' ==> lang('grp_manage_members_title') '會員管理'
'Add Member' ==> lang('Add_Member') '新增會員'
'Manage categories' ==> lang('User_Manage_categories') '會員目錄管理'
'User Levels' ==> lang('User_Levels') '會員層級畫分'
'Search Members' ==> lang('Search_Members') '搜尋會員'
'Inactive Only' ==> lang('Inactive_Only') '列出未啟用的會員'
'Active Only' ==> lang('Active_Only') '列出已啟用的會員'
'Reported Users' ==> lang('Reported_Users') '列出被標記的會員'
'Mass Email' ==> lang('Mass_Email') '寄發群組信件'
$NewMenu['Groups'] ==> $NewMenu[lang('groups')] $NewMenu['群組']
'Add Group' ==> lang('grp_create_grp_title') '新增群組'
'Manage Groups' ==> lang('Manage_Groups') '群組管理'
'Manage Categories' ==> lang('Group_Manage_Categories') '群組目錄管理'
'View Inactive Groups' ==> lang('View_Inactive_Groups') '列出未啟用的群組'
'View Reported Groups' ==> lang('View_Reported_Groups') '列出已標記的群組'
$NewMenu['Advertisement'] ==> $NewMenu[lang('advertisements')]
'Manage Advertisments' ==> lang('Manage_Advertisments') '廣告管理'
'Manage Placements' ==> lang('Manage_Placements')'廣告放置區域管理'
$NewMenu['Templates And Players'] ==> $NewMenu[lang('Templates_And_Players')] $NewMenu['樣板及播放器']
'Templates Manager' ==> lang('Templates_Manager') '樣板管理'
'Templates Editor' ==> lang('Templates_Editor') '樣板編輯'
'Players Manager' ==> lang('Players_Manager') '播放器管理'
'Player Settings' ==> lang('Player_Settings') '播放器設定'
$NewMenu['Plugin Manager'] ==> $NewMenu[lang('Plugin_Manager')]
'Plugin Manager' ==> lang('Plugin_Manager') '套件管理'
$NewMenu['Tool Box'] ==> $NewMenu[lang('Tool_Box')] $NewMenu['工具箱']
'PHP Info' ==> lang('PHP_Info') 'PHP資訊'
'View online users' ==> lang('View_online_users') '列出線上使用者'
'Server Modules Info' ==> lang('Server_Modules_Info') '伺服器模組資訊'
'Conversion Queue Manager' ==> lang('Conversion_Queue_Manager') '轉檔佇列管理'
'ReIndexer' ==> lang('ReIndexer') '重新索引'
'Conversion Lab α' ==> lang('Conversion_Lab') '轉檔檢測'
'Repair video duration' ==> lang('Repair_video_duration') '影片修復時間區段'
$NewMenu['Tool Box']['Maintenance'] ==> $NewMenu[lang('Tool_Box_2')][lang('Maintenance')] $NewMenu['進階工具箱']['網站維護']


 
修改/var/www/html/includes/classes/photos.class.php
針對function photos_admin_menu()進行修改,大約在第118行
vim /var/www/html/includes/classes/photos.class.php

$am['Photos'] ==> $am[lang('photos')]
'Photo Manager' ==> lang('manage_photos')
'Flagged Photos' ==> lang('flagged_photos')
'Orphan Photos' ==> lang('manage_orphan_photos')
'Photo Settings' ==> lang('photo_settings')
'Watermark Settings' ==> lang('watermark_settings')
'Recreate Thumbs' ==> lang('recreate_thumbs')


 
修改/var/www/html/includes/classes/collections.class.php
針對修改function setting_up_collections()進行修改,大約在第86行
vim /var/www/html/includes/classes/collections.class.php

AdminMenu['collections'] ==> AdminMenu[lang('collections')]
lang('Manage Collections') ==> lang('manage_collections')
lang('manage Categories') ==> lang('manage_categories')
lang('Flagged Collections') ==> lang('flagged_collections')


 
修改/var/www/html/styles/cbv2new/layout/header.html
vim /var/www/html/styles/cbv2new/layout/header.html
大約在第45行

My Info ==> {lang code='My_Info'}


大約在第49行

My Info ==> Upload video ==> {lang code='Upload_Video'}
Upload Photo ==> {lang code='Upload_Photo'}


 
修改/var/www/html/styles/global/admin_bar.html
vim /var/www/html/styles/global/admin_bar.html
大約在第80行

Hide Menu ==> {lang code='Hide_Menu'}


大約在第84行

Show Menu ==> {lang code='Show_Menu'}

This entry was posted in ClipBucket. Bookmark the permalink.