evergreen-admin:customizations:i18n
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
evergreen-admin:customizations:i18n [2009/11/07 16:14] – Include python-dev so that simplejson gets c extension speedups dbs | evergreen-admin:customizations:i18n [2012/06/27 11:36] – kivilahtio | ||
---|---|---|---|
Line 10: | Line 10: | ||
===Prerequisites=== | ===Prerequisites=== | ||
On Debian, install the translation build tools:< | On Debian, install the translation build tools:< | ||
- | sudo aptitude | + | apt-get |
- | sudo easy_install | + | </ |
- | sudo easy_install | + | |
===Creating or updating a set of PO files for translation=== | ===Creating or updating a set of PO files for translation=== | ||
Line 18: | Line 17: | ||
# Change into the i18n directory | # Change into the i18n directory | ||
cd build/i18n | cd build/i18n | ||
+ | # THIS MUST BE DONE ALSO | ||
+ | mkdir locale | ||
# Update the en-US POT files | # Update the en-US POT files | ||
make newpot | make newpot | ||
Line 28: | Line 29: | ||
make LOCALE=fr-CA install</ | make LOCALE=fr-CA install</ | ||
This will automatically update the PO files with the latest definitions from the en-US source POT files, then generate the full set of project files for the requested locale. Any strings that have not been translated, or that are marked as " | This will automatically update the PO files with the latest definitions from the en-US source POT files, then generate the full set of project files for the requested locale. Any strings that have not been translated, or that are marked as " | ||
+ | |||
+ | **NOTE** If you have trouble installing your translated .po-files, make sure you are installing your files in valid gettext-standard PO-format. Things to look for include (but not limited to): | ||
+ | * BOM BOM! Gettext tools do not support BOM (http:// | ||
+ | * Runaway newlines. Some translators like to end their translations to a newline. On each row, msgid and msgstr definitions must have a starting and ending double quote | ||
===Inserting the strings into the database=== | ===Inserting the strings into the database=== | ||
Line 36: | Line 41: | ||
# * username ' | # * username ' | ||
psql -h localhost -U evergreen -f Open-ILS/ | psql -h localhost -U evergreen -f Open-ILS/ | ||
+ | |||
+ | |||
+ | **NOTE** This does not copy the correct files into / | ||
=====Technical details behind localization===== | =====Technical details behind localization===== | ||
Line 78: | Line 86: | ||
* Org unit interface: | * Org unit interface: | ||
* **Major**: Has inline JavaScript regexes for telephone number, zip code | * **Major**: Has inline JavaScript regexes for telephone number, zip code | ||
- |
evergreen-admin/customizations/i18n.txt · Last modified: 2023/08/11 10:40 by sandbergja