GeoPrisma logo

Locale (i18n)

Locale extension points allow you to use your favorite i18n system. GeoPrisma’s default locale driver is php getText.

Localizing GeoPrisma

Most GeoPrisma widgets are localized.

Locale global setting

  • LocaleDir - Folder where the file for translation is available
<?php

org_geoprisma_SettingImpl::setLocaleDir('trunk/languages');

?>
  • LocaleLanguageDefault - Default language
<?php

org_geoprisma_SettingImpl::setLocaleLanguageDefault('fr_CA');

?>
  • LocaleLanguageRequest - name of the request parameter for language to use (locale => index.php?locale=fr_CA)
<?php

// setter is not implemented TODO
org_geoprisma_SettingImpl::setLocaleLanguageRequest('lang');

?>

Table Of Contents

Previous topic

Field options for widgets

Next topic

Localizing GeoPrisma

This Page