User Tools

Site Tools


dev:opac:template-toolkit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:opac:template-toolkit [2012/03/26 23:34] – Update i18n section a bit dbsdev:opac:template-toolkit [2022/02/10 13:34] (current) – external edit 127.0.0.1
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>
dev/opac/template-toolkit.1332819255.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.