Open Source Integrated Library System
 

Differences

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

Link to this comparison view

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>
dev/opac/template-toolkit.txt · Last modified: 2012/03/27 00:20 by dbs
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki

© 2008-2013 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.