Language/html customization

Last update 15 Apr 2008


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 want 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 on /asspdeluxe/language/english on /asspdeluxe/language/mylanguage

In 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 on  /usr/local/cpanel/base/frontend/x/asspdeluxe/language/mylanguage


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

If you want customize image buttons you can 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 /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 idea and update_lang.php testing.