Author Topic: [URGENT] - Change language Pack  (Read 3414 times)

ddoc

  • Newbie
  • *
  • Posts: 1
[URGENT] - Change language Pack
« on: January 19, 2009, 07:20:37 pm »
Dear Members of the Forum,

I need help. Translate for the Brazilian Portuguese version CalemEAM_R2.1. Change the following files:

- AjxMsg_pt_BR.properties
- CalemMsg_pt_BR.properties
- I18nMsg_pt_BR.properties
and
- CalemMsg_pt_BR.js

I could not set the display to show the translation. How do I do this?

Calem.php changed the file in the directory /server/conf, including the following:


241       //pt_BR
242       'CalemMsg_pt_BR.js' => array (' AjxMsg '=> array (' AjxMsg_pt '),
243                            'I18nMsg' => array ( 'I18nMsg_pt', 'I18nMsg_pt_BR'),
244             'CalemMsg' => array ( 'CalemMsg_pt', 'CalemMsgCustom_pt_BR')),


and

     / / Client selection list
     'client_lang_select' => array (
     'Portuguese (Brazil)' => array ( 'id' => 'pt_BR'),
'English (U.S.)' => array ( 'id'=>''),

-------------------------------------------------- -----------------------

When did this change, the index slowed down and does not display anything. Displays blank.

If I remove the //pt_BR, displays the index in English.

I need to make this application urgent!

I try run deploy.sh, change env.sh:

# HOME_DIR is the root location of your website.
# Default XAMPP home directory is /opt/lampp if you have root access, or /home/<username>/www on a production server
HOME_DIR=/
# This is the location of your php exe file
PHP_EXE=$HOME_DIR/usr/bin/php
# This is the location of your CalemEAM root directory and could also be /$HOME_DIR/CaleamEAM
CALEM_HOME=$HOME_DIR/srv/www/htdocs/portal/cmms
# Export CALEM_DIR which is used in PHP scripts
export CALEM_DIR=$CALEM_HOME/

and the result this:

./deploy.sh
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/pdo_pgsql.so' - /usr/lib64/php5/extensions/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/pgsql.so' - /usr/lib64/php5/extensions/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0

I run MySQL 5.

PHP Notice:  Only variable references should be returned by reference in /srv/www/htdocs/portal/cmms/server/include/log4php/LoggerAppender.php on line 73

                return null;

PHP Notice:  Only variable references should be returned by reference in /srv/www/htdocs/portal/cmms/server/include/log4php/LoggerPropertyConfigurator.php on line 565

    }


PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /srv/www/htdocs/portal/cmms/server/conf/calem.php on line 242
« Last Edit: January 19, 2009, 07:49:47 pm by ddoc »

calemadmin

  • Administrator
  • Calem Hero
  • *****
  • Posts: 300
    • http://www.calemeam.com
Re: [URGENT] - Change language Pack
« Reply #1 on: January 27, 2009, 08:50:14 am »
There's a syntax error in your changes. You will need to fix that first.
PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,
Calem Community Forum Admin