������


EMP
���Ա�������κ����ԣ����������������ͻ���ʾΪ�κ��û������ԡ�ϵͳ����Ϊ��ͬ���û���ʾ��ͬ�����ԣ�����ͬһʱ�䣭�����ݸ����û������е��������á�

��������Ľ���������£�
1. Join the mailing list here
�����ʼ��б�

������б�֪����Ҫ�������룭����Щ�˿����Ѿ���Ϊ�˹����ˡ�

2.
ȡ�����µ�messages.po�ļ���ʹ����ϲ���ı༭��������poedit)�������ġ������messages.po�ļ����������µĵ����У�
www_root/EMP/locale/en_GB/LC_MESSAGES/message.po


�༭�ṩ���ļ���������Ϊmsgid���ִ��ķ��룬���ڱ��Ϊmsgstr��λ�á�ע���ִ���Ƕ���html�ַ�����htmlҲҪ���뵽���������ȷ��ÿ����ɵ��ִ������ڷ���('')���Ҳ����ļ�ͷ��Ϣ—����������Ϣ���������Ϊ���Ĺ��׵õ��ʵ��Ͽɡ�

������Ҫ����ȷ���ַ���“ISO-8859-1”����Լλ���ļ�messages.po��19400�����ң����������ϣ����ɵ��ַ�����EMPʹ�ô��ַ����ͳ�htmlͷ�����������ҳ�����֪����������ͳ����ַ�����

�о�һ��poedit�����ֵ�õģ������ڴ���gettext�����ļ�ʱ����Щ��Լʱ�书�ܡ�

�����ķ����ļ����͵�submissions@EMP.org

��sourceforge�ϻ�Ϊ�������Դ���һ���µ�·����˵�������������˷��ʡ�


��������

�������ʵ�ֵ�

EMP
ʹ��GNU gettext�������Է��롣Ҫʹ��gettex�⣬������װ������������ϣ��Уȣб�����gettxt�������롣Ȼ������3.01�濪ʼ������ Briain Gomez��PHP-GETTEXT����Danilo Segan��Nico Kaiser��Ŭ�������ǵ�php��ʹ�����Ϊ���ܣ��������ǻ��gettex�⺯����������EMP�󶨣���������û�а�װgettext,���뻹�ǿ�����ɡ�
gettext
�����ļ�������locale·��������·���£���ÿ�ֵ������Ի����Ĵμ�Ŀ¼����λ�������ʹ�õ����ԡ�����en����Ӣ�ģ�����һ���»��ߣ�����������������д�ַ��������԰汾������US����USA�����������������Ի���������en_US. ���ڴ��е�Ӣ����������Ի�������ͱ��en_GB--���DZ�дEMPĬ�ϵ����ԡ�������루en_GB)�����Ի���Ҫ��װ��web- server�ϡ���linux����������ϣ������������� #locale -a�������а�װ�����Ի�������Ubuntu�£���������ʾ����ֱ������local3 -a���ɣ�

New directories will need to be made up if a translator wishes to have a local version for their language. Under the locale directory the five character locale abbreviation code directory there is a further sub-directory called LC_MESSAGES - this is where the translation files exist. There are two files in each of these directories:
���������Աϣ��Ϊ�����Լ������Դ���һ�����ذ汾����Ҫ����һ���µ�·���������Ի���Ŀ¼locale�£���������ַ������Ի�����д�����ʾ��·���£���һ�����²��·������LC_MESSAGES�������Ƿ����ļ����ڵĵط�����ÿ��������·�����������ļ���

1
��messages.po ����ļ�����Ҫ����������ַ��������Ƿ�����ԱҪ���ǵ�Ψһ�ļ���

2. messages.mo
����һ�������ƵĻ������Բ�ѯ�ķ����ļ�����gettext���á����.mo�ļ���gettext���ߣ�msgfmt.exe����msgfmt �� ��nix),ʹ��messages.po�ļ����������д��ڵ��﷨�� msgfmt.ext messages.po)�Զ�������,.��Ҫ��Ŭ�����ڽ�.po�ļ������������.mo�ļ�����EMP��Ŀ����Ա�dz������뿪�ĵش����ġ�

�κε����ֱ༭�����������༭.po�ļ� ��GNU Emacs����רҵ�Ĺ��ܱ༭.po�ļ���������һ�������PO-ģʽ������Ҳ��һ�����߽���poedit��������Ա��������ʹ��������ߡ�

���messages.po�ļ�


������ǰ�messages.po�ļ����ַ���ת�����������ԡ�����Ҫ���������CVS�ļ��У�·��locale/en_GB/LC_MESSAGES/����messages.po�ļ�����Ȼ�����µ�ģ���ļ����Ե�����info@EMP.org���߷�һ����Ϣ�������嵥��ȡ��

messages.po�ɼ��������

���磬Ҫ����ɷ���

#: AccountGroups.php:8 index.php:890
msgid "An example string in English that needs to be translated"
msgstr="Une corde d'exemple dans le ce anglais doit
re traduite "


����#: AccountGroups.php:8 index.php:890
��ζ�Ÿ�����ַ�����ʹ����AccountGroups.php�ű���8�к�index.php�ű��� 890�С� ����˽ű����ںδ������ֿ��ܻ����á��ڳ�����ʹ���˼��εĽű�ֻ��Ҫ����һ�Ρ�����Щ�����£�������ʾ���ַ�ʹ�õĵط�����ʱ���Ǻܳ��Ľű��嵥��
msgid "An example string in English that needs to be translated"

��������msgstr��Ҫ�����Ӣ���ַ��������msgstr��ֵ�ǿհ�-"",gettext�᷵��Ӣ���ַ�����

�����Ŭ�����ڱ༭messages.po�ļ������Ұѷ�����������뵽msgstr��������ȥ��

.po
�����

.po
�ļ���һЩע�Ϳ�ͷҲӦ�÷��������

"SOME DESCRIPTIVE TITLE", - should be replaced with EMP - LANGUAGE Translation File - where LANGUAGE is the language being translated into
“SOME DESCRIPTIVE TITLE”
������Ӧ�ñ���EMP-���Է����ļ��������������ָ����ɵ����ԣ�ȡ��
# FIRST AUTHOR , YEAR. -
Ӧ����������ֺ͵����ʼ���ַ������ͬ������ɵ���ݡ�

Project-Id-Version
Ӧ����EMP�İ汾��

PO-Revision-Date
���������һ�α༭���ļ�������

Last-Translator
����������ֺ͵��ʵ�ַ�����ڵ���Щ���벻�Ǻ����ʱ,ʹ���������Ե��û���������
Content-Type
�����õ����ֱ���ȡ��‘CHARSET',����������Ի�������UTF-8.

��GNUϵͳ�У������ı��뾭�����ڶ�Ӧ�����ԣ�

* ISO-8859-1 for Afrikaans, Albanian, Basque, Catalan, Dutch, English, Estonian, Faroese, Finnish, French, Galician, German, Greenlandic, Icelandic, Indonesian, Irish, Italian, Malay, Norwegian, Portuguese, Spanish, Swedish,
* ISO-8859-2 for Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak, Slovenian,
* ISO-8859-3 for Maltese,
* ISO-8859-5 for Macedonian, Serbian,
* ISO-8859-6 for Arabic,
* ISO-8859-7 for Greek,
* ISO-8859-8 for Hebrew,
* ISO-8859-9 for Turkish,
* ISO-8859-13 for Latvian, Lithuanian,
* ISO-8859-15 for Basque, Catalan, Dutch, English, Finnish, French, Galician, German, Irish, Italian, Portuguese, Spanish, Swedish,
* KOI8-R for Russian,
* KOI8-U for Ukrainian,
* CP1251 for Bulgarian, Byelorussian,
*GB2312
��GBK�� GB18030���ڼ�������
*BIG5
�� BIG5��HKSCS������������
*EUC
��JP��������
*EUC
��KR���ں���
*TIS
��620����̩��
*UTF
��8�����κ����ԣ����������г���

������utf-8���д���DZ���ַ���ҪǶ��pdf�ļ��������ļ��������pdf�ļ�̫�������ͨ�����ŷ�ʽ���䣬���Ϊ����������������ʹ�������ر�ָ�������֡�

�ַ��������ƿ����ô�д����Сд�ַ���ͨ��ƫ�ô�д��

Content-Transter-Encoding

����Ϊ8�ֽ�

����

һ�������ϰ��ɣ��ļ����봫�ظ���Ŀ����Ա��submissions@EMP.org����������.mo�ļ�������ѹ���ļ�zip����һ���µ�·��,���ڴ�web·�����ͷš�������Իᱻ���뵽EMP ϵͳ�Ӷ��������û����档

��ÿ�ε���ϵͳʱ��ϵͳͨ���鿴�û���Ϣ��ȷ���û��趨�����ԣ�Ȼ���趨ʹ�����ԡ��û����Ըı����õ����ԣ�ͨ��������Ͻǵ��û���������ʾ�û��趨����������趨���ڴ�������ʱ�������������ԡ��û�ֻ������ѡ����locale·���£��������¼�·�������ԡ�

������Դ

The GNU gettext manual

���빤��

EMP
����Я����һЩ���߹����������룭��ʹ����Щ����ά���������Щ���⣭��������ijЩ���ֶԽű�������⣬�����ַ����뼯���ܶ�ʧ�����Բ�����ʹ����Щ���ߣ�������ʱ���µ�messages.po�ı��ݷ��������ĵط��������ò���Щ����ά����

��������ֽ��������ʹ��EMP�ṩ�����Է��빤�����������Ժ�ά�����ǵķ��롣

�ܶ���֮����ʹ����Щ����ǰ������Ҫ������Ͻ�����û����֣��Դ��û�������ѡ��Ҫ��������ԣ��ڵ���޸�Modify.���Թ���ȫ��ʹ��Ŀǰѡ����û����ԡ������ϣ��ʹ�õ����Բ��������ô����ʹ��‘Add a New Language'’����һ��������‘��������ʼ�·��룭���ο����档Ĭ�������£��°�װ��EMPֻ��Ӣ��-en_GB.�����ύ�����԰��ɴ�����õ�sourceforge EMP page��


����ӹ��߲˵�ά�����������˵�û�ж��������ӣ���������ֻ��ϵͳ����Ա�ſ��Ի�ȡ�����򡣶Է����ļ�δ ��Ȩ�ĸ�����˽�ֹ�����߲˵��� Z_index.php-�������Ա�����˵���URL�������ӣ�������ǰ�����Z_,�����ͻ���ֹ��߲˵�����ֻ������û��ʺ���õ�ϵͳ����Ա���� Ȩ������������ͨ��“Maintain Language Files"ά�������ļ�”���ӽ��С�

�����ĸ����빤�ߣ�



Ϊϵͳ����һ��������

ʹ��������ߴ���һ�������ԡ��������ֻ�������web-server������������ʵ������Ի����ļ������Բſɱ����ӡ����Ե�ʶ���������web- server����������������ļ��������xx_XX�ĸ�ʽ�������ԣ�ǰ��λ�ַ��Ǵ������Ե�Сд��׼����,����en����Ӣ�����λ�Ǵ�����ҵĴ�д�� ׼��������US����������������Ӿ���en_US.�»��߱��뽫���Ժ͹��ҷֿ����ܹ�5���ַ�������Ҫ���������Ժ󣬵������Proceed��ť��ϵͳ�� �Ǵ���һ��������·����λ��locale���Ի���·���£�������������·���»���һ��LC_MESSAGES·�������ǣ����µ�locale/xx_XX /LC_MESSAGES·���£�������Ĭ�������ļ���messages.po).��ʼʱ�����µ�messages.po�ļ���û�з��롣
һ�������������ԣ�Ҫ�����Է��빤����ά���µķ��루��Ҫר�õ������ԣ���Ҫ�任���ԣ������ʾ��EMP��Ļ���Ͻǵ��û����������˵�����ʾ���������������ԡ�ѡ���µ������������ʹ�÷��빤�߲�����

���ʹ���ṩ�ķ��빤�ߣ��㲻���˽������ļ��Ľṹ�������ṩ��ϸ��ֻ����Ϊ��Ϣ���ѡ������ļ���messages.po������