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 [2011/11/30 14:43] – Update some TPAC docs 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 /openils/conf/oils_web.xml<code> +  * Add your .po file to the Apache ''eg_vhost.conf'' file in the ''<Location /eg>'' section:<code> 
-    <locales> +    PerlAddVar OILSWebLocale "en_ca" 
-        <en_US/> +    PerlAddVar OILSWebLocale "/openils/var/templates/locale/tpac.en_CA.po
-        <en_CA>/openils/var/data/locale/tpac.en_CA.po</en_CA> +    PerlAddVar OILSWebLocale "fr_ca" 
-        <fr_CA>/openils/var/data/locale/tpac.fr_CA.po</fr_CA> +    PerlAddVar OILSWebLocale "/openils/var/templates/locale/tpac.fr_CA.po" 
-    </locales></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.1322682220.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.