Quantcast
Channel: PKP Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 27290

Need display (in index site ) current locales selected

$
0
0

@cristianviza wrote:

Hello community.

I want to be a variable with the current locale selected in the site index (es_ES or en_US). (ojs 2.4.8)
I modify:
templates/site/site.tpl --> variable {$formLocale}

and
pages/index/IndexHandler.inc.php --> $templateMgr->assign('formLocale', $site->getCurrentLocale('locale'));

I defines the function getCurrentLocale .
It does not work like this.
1) Where the functions of "site" defined?
2) a better choice: There is an already defined function to report the current locale used in site? what do you recomend? (surely there is a definite function to do this but I do not know)

Regards
Cristian

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 27290

Trending Articles