分类目录

Howto: Transifex Installation and Configuration

Translation service: http://www.transifex.net/ Open source software: http://www.transifex.org/

1. Installation (CentOS 5.2 & Python 2.6 & Django 1.2.4) # easy_install -U transifex Note 1: some related rpm packages will be installed by yum Note 2: the following packages will be installed by python ./Jinja2-2.5.5-py2.6.egg ./Pygments-1.4-py2.6.egg ./PIL-1.1.7-py2.6-linux-i686.egg ./polib-0.6.3-py2.6.egg ./httplib2-0.6.0-py2.6.egg ./userprofile-0.7_r422_correct_validation-py2.6.egg ./Markdown-2.0.3-py2.6.egg ./pycurl-7.19.0-py2.6-linux-i686.egg ./ctypes-1.0.2-py2.6-linux-i686.egg ./transifex-1.0.0-py2.6.egg

2. Configuration [...]

Howto: Translation

Gettext Gettext 主页 简介:是GNU国际化与本地化(i18n)函数库。它常被用于编写多语言程序。

xgettext: 源代码 => .pot模板文件 # xgettext –help e.g. # xgettext -LPHP /xxx/yyy/zzz.php

# xgettext –help Usage: xgettext [OPTION] [INPUTFILE]…

Extract translatable strings from given input files.

Mandatory arguments to long options are mandatory for short options too. Similarly for optional arguments.

Input file location: INPUTFILE … input files -f, –files-from=FILE [...]

Howto: narro installation and setup

Homepage: Narro

Download version:

narro-0.9.4.tar.gz

OS version: CentOS 5

# uname -a Linux hzserver2 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux

Installation path:

# cat /etc/httpd/conf.d/narro.conf …… Alias /narro /var/www/narro

Order Deny,Allow Deny from all # Allow from 127.0.0.1 Allow from xxx.xxx.xxx.xxx/24

Modify the config file:

[...]