Hi all ..
I translated ispconfig to czech language .. and here is small guide how you can translate ispconfig to your language too .. sorry for my english .. :rolleyes:
I hope it somebody helps ..
I wanted use utf-8 but it was not work properly .. so I used my national charset encoding .. I translated to czech language so I used cz as my lang and iso-8859-2 charset encoding.
1. copy english language files
you can use this to locate *.lng and *.hlp english files:
copy these files to new one .. in my case I copied its to cz.lng, cz*.hlp and standard_index.html_cz
2. change setting in config.inc.php
edit /home/admispconfig/ispconfig/lib/config.inc.php from
reload your ispconfig .. if you don't see any changes all is ok :)
4. Now translate text in new created files to your language ..
remember that you have to use right charset encoding .. same as you will use on ispconfig pages. It will be a lot of work .. you will translate a lot of sentenses more than once .. so be patient .. sometimes check your work by reloading ispconfig .. it should be partialy translated ..
Done? Now you have to change charset encoding in some files.
5. changing and adding meta tags
For properly working encoding you have to change or insert meta tags to some files .. here is list of its ..
/home/admispconfig/ispconfig/web/index.html (you can change title to your needs too ..)
menu files (put meta tag after <title></title> tag):
"loading folders" files (put meta tag after <title></title> tag):
-- in these files change english text to your language too if you don't like "loading folders"
6. Translating of error pages
Go to /root/ispconfig/isp/ and copy error_en to error_XX (in my case error_cz) and edit *.html files in created directory.
And it is all .. that was quite easy .. wasn't that? :)
Little suggestion for Falco and Till .. if it is possible it would be nice to have meta tags in files listed here with charset encoding variable from config.inc.php file .. translation will be more easy ..
Nice guide. I think we can refer to this if anyone else is asking for translation guidelines. :)
I will follow this guide and build the Brazilian Portuguese version of ISPConfig.
What I have to do after this translation to publish to anothers users?
Contact Till. He can provide you an account for the SVN repository, so you can tranfer your work into it. If you do so, your work will be integrated in a near future release of ISPConfig.
I have Thai version of ISPconfig .Tell me about publish to your team.
in osCommerce they put this lines in some english.php file located under /languages:
// look in your $PATH_LOCALE/locale directory for available locales..
// on RedHat6.0 I used 'en_US'
// on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
// this may not work under win32 environments..
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
and these lines too:
// Global entries for the <html> tag
// charset for web pages and emails
and somewhere in some file...
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
A setting for the chraset is already in the config.inc.php file. Are the global entries for the HTML tag nescessray? Then we will add them too.
|All times are GMT +2. The time now is 03:53.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.