Language/HTML customization
 

 

How to create an ASSP Deluxe for cPanel language pack

The default english language pages are located on your /asspdeluxe/language/english directory

the folder /asspdeluxe/language/english contains following files

bayesian_help_page.php
delaying _legend_top.php
delaying _legend_top_right.php
delaying _result_table.php
help_gen_features.php
help_gen_features_scoring.php
index_page.php
legend_right.php
log_page.php
penalty _legend.php
penalty _legend_right.php
scoring.php
scoring_right.php
spambox_help_page.php
white_page.php
language.php

plus the folder

/asspdeluxe/language/english/images

If you would create a language pack create another folder for example
/asspdeluxe/language/mylanguage and follow these 2 steps ;

1) copy all the files and folder image from /asspdeluxe/language/english to /asspdeluxe/language/mylanguage

you can use this way (supposing you have installed the language pack on cPanel x theme)
 

# cd /usr/local/cpanel/base/frontend/x/asspdeluxe
# cp -frd language/english language/mylanguage

2) Now with a editor translate all the files contained located on  /usr/local/cpanel/base/frontend/x/asspdeluxe/language/mylanguage

When you finish to translate all your files contained on /asspdeluxe/language/mylanguage open ASSP Deluxe for cPanel , and mylanguage should be available .

If you would customize image buttons you may use .psd files located on /asspdeluxe/psd


HOW TO CHANGE the default language pack for all my users ?
If you would change default language for all your users with your new language pack name you can do it in this way
(you need assp deluxe 2.8.4 or above) Suppose you created a "german" language pack . You should execute this to set german as default for all your users.

# /usr/local/cpanel/3rdparty/bin/php-cgi /usr/local/assp/deluxe/update_lang.php nl=german

If you have an exclude list of users which should use another language, create a file

/usr/local/assp/deluxe/exclude_language
and enter the usernames which should be excluded from script execution in this way
user1
user2


The file exclude_language will be loaded automatically and the users will be ignored from execution.

NOTE : such as all the ASSP deluxe scripts also this script will detect users on alternative home locations. (more info)
Thank you to  Jan Lange ( ARTADA GmbH ) for update_lang.php idea and testing.

 

 

 

ASSP Deluxe for cPanel
g
rscripts.com 2006-2008
Amicus certus in re incerta cernitur

HOME     HOW TO    POST INSTALLATION FAQS    CHANGELOG     SERVICES    ORDER