分类目录

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:

# cat /var/www/narro/includes/configuration.inc.php
……
define (‘__DOCROOT__’, realpath(dirname(__FILE__) . ‘/../..’));
define (‘__VIRTUAL_DIRECTORY__’, ”);
define (‘__HTTP_URL__’, ‘http://xxx.xxx.xxx.xxx’);
define (‘__SUBDIRECTORY__’, ‘/narro’);
define (‘__PHP_CLI_PATH__’, ‘/usr/bin/php’);
define (‘ADMIN_EMAIL_ADDRESS’, ‘xxx@yyy.com’);
……
define(‘DB_CONNECTION_1′, serialize(array(
‘adapter’ => ‘MySqli5′,
‘encoding’ => ‘UTF8′,
‘server’ => ‘localhost’,
‘port’ => null,
‘database’ => ‘narro’,
‘username’ => ‘narro’,
‘password’ => ‘narro’,
‘profiling’ => false)));
……

Install database script

# mysql -u narro narro < /var/www/narro/narro.sql

Modify permission

# chmod -R 777 /var/www/narro/data
# chmod -R 777 /var/www/narro/locale

Restart httpd service

# service httpd restart

Access Narro web page

http://xxx.xxx.xxx.xxx/narro

Register one account of narro

Note: The first account will get super powers.

Create one new language

Chinese Simplified

Create one new project

sandbox

Setup the project

Go to manage the project as admin, import project with the archive file (*.tar.gz, *.zip)

e.g. sandbox.zip (two directories, en-US and zh-CN)

|- en-US – messages.po
|- zh-CN

e.g. messages.po (one file to be transferred)

……
msgid “%1$s created platform %2$s”
msgstr “%1$s 新增了平台 %2$s”
……

Refer to:
http://code.google.com/p/narro/source/browse/narro/INSTALL

Howto: Update php 5.1 to 5.2 in CentOS 5

使用yum升级php

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

# cat /etc/yum.repos.d/CentOS-Testing.repo
[c5-testing]
name=CentOS-5 Testing
#baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
baseurl=http://dev.centos.org/centos/5/testing/i386/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

# yum update php

Refer to:
PHP 5.1 To 5.2

选择在线协作翻译平台

主要平台主要有三类:

第一类:专业协同翻译平台。以Launchpad.net为代表,另外还有Narro,py3k.cn。

https://launchpad.net 适用于互联网翻译
http://code.google.com/p/narro/ 适用于自己构建网站,互联网,企业和个人
http://djangobook.py3k.cn/ 程序员
http://www.transifex.net/ 提供服务 & http://www.transifex.org/ 开源软件 适用于自己构建网站,程序员

第二类:Wiki网站。以Wikipedia(维基百科)为代表。

MediaWiki
MoinMoin
参考:Wiki软件比较

第三类:在线办公套件。以Google Docs为代表。

Refer to:
中文协作翻译平台的选择 – Translation Platform Selection