Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Translation to Portuguese
#1
Because i really like ehcp, and i need to give some free host, i'll have to translate it to Portuguese.
Does anyone wanna help me? I'll do it anyway, but with help it'll be faster.

Thanks

Restored from old drupal forum, for user uid:1106 username:guilhermecardoso
You may reset your password to access your new account here.
Reply
#2
sure somebody helps,

basicly, you need to edit template files at ehcp/templates
below templates folder, you may choose to translate default or xp2 template,

other than templates, you may translate file at ehcp/languages/
dont forget to rename files ...._en.html to ...._port.html , i dont know what is shortage for portuguese is..

you may find additional info on following posts:
http://www.ehcp.net/?q=node/250
http://www.ehcp.net/?q=node/29


if you wish to donate free hosting, reseller or vps or dedicated server, you may contact me, send me reseller info or vps info you can donate,
Absolutely we need such hosting, either to host ehcp files or to continue to this project for our other hosting needs...
I need almost all type of help/donate...

nice to hear that you liked ehcp. ehcp's philosopy is: easy installation, easy usage, easy programming, fast, lightweight, works, usable,

nice to meet you,

Restored from old drupal forum, for user uid:1106 username:guilhermecardoso
You may reset your password to access your new account here.
Reply
#3
I had finished the translation of xp2. The translation is not 100% perfect, and Monday i will talk with some friends to help me choosing the corrects words (we cannot translate letter-by-letter, because they've diferent meanings!). And my english is not perfect too!
Now i'm having a problem, how can i use this translation? Inside xp2 folder i have "en" and "pt". I had changed the "default language" to pt, but i still can't use it.
What should i do?
Another think, this translation was made to Portuguese from Portugal (not from Brazil). Of course that it's almost the same, and portuguese can read brazilan and vice versa, but some words are different. For example, to portuguese, password is "palavra chave". To Brazilian, password doesn't have a translation. There're other fews diferences, but that's not a big problem.

About The hosting support, i'll send you a private message to talk about that. If you want, i can send you the translation too.
Cheers

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
sory i found a bug on it and fixed it in my local copy, will be released with next version,

You may do it yourself as following:

Way 1:
You should enter on address line as, each time you login,
http://.../vhosts/ehcp/index.php?op=setlanguage&id=pt

Way 2:
or alternatively,just overwrite en files with yours Smile

Way 3, permanently:
open classapp.php in your ehcp dir,

replace function loadConfig with following:
<code>
function loadConfig(){

if(!$this->checkConnection('config load')) return false;

$miscconfig=$this->loadConfigIntoArray("select * from misc where panelusername is null or panelusername=''");
#$this->output.="<hr><b>Loading config. </b>".print_r2($miscconfig)."<hr>";

if(is_array($miscconfig))
foreach($miscconfig as $name=>$value)
switch($name){
case 'dnsip' : $this->conf['dnsip']=trim($value);break;
case 'adminname' : $this->conf['adminname']=trim($value);break;
case 'adminemail' : $this->conf['adminemail']=trim($value);break;
}

#$this->output.="dnsip: ".$this->conf['dnsip'];
$this->miscconfig=$miscconfig;
# get defaultlanguage value from db, options, misc table..
if($this->miscconfig['defaultlanguage']) $this->defaultlanguage=$this->miscconfig['defaultlanguage'];
$this->setLanguage($this->defaultlanguage);


if($this->conf['dnsip']=='') {
$this->output.="<font size=+1>your dns/server ip is not set.<br>
this causes ehcp/dns/bind/named to malfunction <br>
please set it in your <a href='?op=options'>Settings</a></font><br><br>";
}

# other settigns, template, session etc..

$this->selecteddomain=$_SESSION['selecteddomain'];
$this->template=$_SESSION['template']; # load template in session if any..
if ($this->template=='') $this->template=$this->miscconfig['defaulttemplate'];


return true;

}

</code>
in fact, only one line added: $this->setLanguage($this->defaultlanguage);
which is missing, i just forgot it after some code cleanup... Smile

Restored from old drupal forum, for user uid:1106 username:guilhermecardoso
You may reset your password to access your new account here.
Reply
#5
Hi,
I did a translation in the theme ubuntu to Portuguese.
To download follow the link below:

http://enfoco.com.br/2011/05/13/ehcp-em-portugues/

Olá
Fiz uma tradução do tema ubuntu para português.
Quem quiser fazer o download siga o link abaixo:

http://enfoco.com.br/2011/05/13/ehcp-em-portugues/

Ricardo

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#6
thanks for nice work and contribution.

Restored from old drupal forum, for user uid:3972 username:ricardo-enfoco
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping