Commit b39a931c9dbf720b1b9e3519766e6a35037be5cc
1 parent
6a7f67c3
Exists in
master
and in
1 other branch
arrumando o esquema de traducao, desculpa Adriano
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@440 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
include/library.php
... | ... | @@ -15,6 +15,17 @@ |
15 | 15 | */ |
16 | 16 | session_start(); |
17 | 17 | require_once 'config.php'; |
18 | +if(!include_once( TRANSLATOR_PATH.'/Translator.php')) | |
19 | + die ("<h1>There is a trouble with phpTranslator package. It isn't found.</h1>"); | |
20 | + | |
21 | +/* | |
22 | + * componente (objeto) para realizar traducao | |
23 | + */ | |
24 | +$oTranslator = new Translator( CACIC_LANGUAGE, CACIC_PATH.CACIC_LANGUAGE_PATH, CACIC_LANGUAGE_STANDARD ); | |
25 | +$oTranslator->setURLPath(TRANSLATOR_PATH_URL); | |
26 | +$oTranslator->setLangFilesInSubDirs(true); | |
27 | +$oTranslator->initStdLanguages(); | |
28 | + | |
18 | 29 | //Debug($_SERVER['SCRIPT_FILENAME']); |
19 | 30 | |
20 | 31 | // -------------------------------------------------------------------------- | ... | ... |