This shows you the differences between two versions of the page.
|
dev:opac:template-toolkit [2012/03/26 23:34] dbs Update i18n section a bit |
dev:opac:template-toolkit [2012/03/27 00:20] (current) dbs [Customizing] Put TPAC PO files in templates directory? |
||
|---|---|---|---|
| Line 66: | Line 66: | ||
| === String Localization === | === String Localization === | ||
| - | * Create a .po file for your locale. Requires Locale::Maketext::Extract::Plugin::TT2<code> | + | * Create a ''.po'' file for your locale. Requires the ''Locale::Maketext::Extract::Plugin::TT2'' Perl module:<code> |
| - | sudo -u opensrf xgettext.pl --plugin=tt2 --directory=Open-ILS/src/templates/opac/ --output-dir=/openils/var/data/locale --output=tpac.fr_CA.po</code> | + | sudo -u opensrf xgettext.pl --plugin=tt2 --directory=Open-ILS/src/templates/opac/ --output-dir=/openils/var/templates/locale --output=tpac.fr_CA.po</code> |
| * Add your .po file to the Apache ''eg_vhost.conf'' file in the ''<Location /eg>'' section:<code> | * Add your .po file to the Apache ''eg_vhost.conf'' file in the ''<Location /eg>'' section:<code> | ||
| PerlAddVar OILSWebLocale "en_ca" | PerlAddVar OILSWebLocale "en_ca" | ||
| - | PerlAddVar OILSWebLocale "/openils/var/data/locale/tpac.en_CA.po" | + | PerlAddVar OILSWebLocale "/openils/var/templates/locale/tpac.en_CA.po" |
| PerlAddVar OILSWebLocale "fr_ca" | PerlAddVar OILSWebLocale "fr_ca" | ||
| - | PerlAddVar OILSWebLocale "/openils/var/data/locale/tpac.fr_CA.po" | + | PerlAddVar OILSWebLocale "/openils/var/templates/locale/tpac.fr_CA.po" |
| </code> | </code> | ||
| * Edit strings in your new .po file. For example:<code> | * Edit strings in your new .po file. For example:<code> | ||