¼Ò½ºÄڵ带 ÁغñÇÑ ´ÙÀ½, ÇÁ·Î±×·¡¸Ó´Â PO Ʋ ÆÄÀÏÀ» ¸¸µç´Ù. ÀÌ ÀýÀº
¿©±â¿¡¼ xgettext
¸¦ »ç¿ëÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÑ´Ù.
xgettext
ÇÁ·Î±×·¥ ½ÇÇàÇϱâxgettext [¿É¼Ç] ÀÔ·ÂÆÄÀÏ ...
xgettext
ÇÁ·Î±×·¥ÀÌ °áÁ¤ÇÏ°í, c-formatÀº
ÇÁ·Î±×·¡¸Ó°¡ ¹Ì¸® ½á³õ´Â °æ¿ì¿¡ »ç¿ëµÈ´Ù.
±âº»°ªÀ¸·Î c-format ÇüŸ¸ÀÌ »ç¿ëµÈ´Ù. ¹ø¿ªÀÚ´Â ÀÌ·± ÀÚ¼¼ÇÑ
»çÇ׿¡ ½Å°æ¾µ ÇÊ¿ä°¡ ¾ø´Ù.
xgettext
´Â id ÇÔ¼ö ȤÀº ¸ÅÅ©·ÎÀÇ Ã¹¹ø° ÀÎÀÚÀÎ ¹®ÀÚ¿À»
¸ðµÎ ã´Â´Ù. keywordspecÀÌ `id:argnum'ÀÇ ÇüÅÂÀÎ
°æ¿ì, xgettext
´Â ¸ÅÅ©·ÎÀÇ argnum¹ø° ÀÎÀÚÀÎ ¹®ÀÚ¿À»
ã´Â´Ù. keywordspecÀÌ
`id:argnum,argnum2'ÀÎ °æ¿ì, xgettext
´Â
argnum1¹ø° ÀÎÀÚ¿Í argnum2¹ø° ÀÎÀÚÀÎ ¹®ÀÚ¿À» ã°í ±× µÎ
¹®ÀÚ¿À» °¢°¢ ´Ü¼ö/º¹¼öÇü ¸Þ¼¼Áö·Î Ãë±ÞÇÑ´Ù.
ÀϺη¯ ²ôÁö ¾Ê´Â ÇÑ ¾ðÁ¦³ª ã°Ô µÇ´Â ±âº» Å°¿öµå´Â gettext
,
dgettext:2
, dcgettext:2
, ngettext:1,2
,
dngettext:2,3
, dcngettext:2,3
, ±×¸®°í
gettext_noop
ÀÌ´Ù.
.gmo
ÆÄÀÏ¿¡¼ ¼Ò½º°£ÀÇ Â÷ÀÌ°¡ ¾ø¾îÁö¹Ç·Î Å×½ºÆ®
¸ñÀûÀ¸·Î ÁÁ´Ù. ¿ì¸®´Â ÀÌ·± ÆÄÀϵéÀ» ¸î°³ GNU gettext
ÆÐÅ°Áö¿¡
°°ÀÌ Æ÷ÇÔÇÒ ¼ö ÀÖ°í, msgfmt
À¸·Î ¸¸µç °á°ú´Â °°Àº °ªÀ» ´Ù½Ã
¸¸µé¾î¾ß ÇÑ´Ù.
Ãß°¡ PO ÆÄÀÏÀÇ Ã£±â °æ·Î´Â: `/usr/local/share/nls/src/'ÀÌ´Ù.
ÀÔ·ÂÆÄÀÏÀÌ `-'À̸é, Ç¥ÁØ ÀÔ·ÂÀ» Àд´Ù.
xgettext
´Â ±«»óÇÑ °æ¿ìµµ ó¸®ÇÒ ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î Àüó¸®
¸ÅÅ©·Î, ¹®ÀÚ¿À» ¿¬¼ÓÇؼ ¾µ¶§ ANSI ¹æ½ÄÀ¸·Î ¹®ÀÚ¿ ºÙÀÌ´Â °Í, ±×¸®°í
¿¬¼ÓµÈ ¹®ÀÚ¿¿¡¼ ÁÙ ³¡¿¡ À̽ºÄÉÀÌÇÁ ¹®ÀÚ¸¦ ½á¼ ÁÙÀ» ¹Ù²Ù´Â °Í µîÀÌ´Ù.
¹ø¿ªÀ» »õ·Î ½ÃÀÛÇÒ ¶§, ¹ø¿ªÀÚ´Â `package.pot' Ʋ ÆÄÀÏÀ» `LANG.po' ÆÄÀÏ·Î º¹»çÇÑ´Ù. ±× ´ÙÀ½¿¡ ¹ø¿ªÀÚ´Â ÆÄÀÏÀÇ ÃÖÃÊ ÁÖ¼®¹®°ú Çì´õ Ç׸ñÀ» ¼öÁ¤ÇÑ´Ù.
ÃÖÃÊ ÁÖ¼®¹®ÀÎ "SOME DESCRIPTIVE TITLE", "YEAR" ±×¸®°í "FIRST AUTHOR <EMAIL@ADDRESS, YEAR"´Â ±¸Ã¼ÀûÀÎ Á¤º¸¸¦ ´ãµµ·Ï ¼öÁ¤µÇ¾î¾ß ÇÒ °ÍÀÌ´Ù. ÀÌ ÀÛ¾÷Àº ¾î¶² ¹®¼ ÆíÁý±â¿¡¼µçÁö ÇÒ ¼ö ÀÖ´Ù; ¸¸¾à À̸ƽº°¡ »ç¿ëµÇ°í PO ¸ðµå·Î ÀÚµ¿À¸·Î ÀüȯµÇ´Â °æ¿ì (ÆÄÀÏÀÇ Á¢¹Ì»ç¿¡ µû¶ó ÀÚµ¿À¸·Î PO ¸ðµå·Î °áÁ¤µÈ´Ù), M-x fundamental-mode¸¦ ŸÀÌÇÁÇؼ PO ¸ðµå¸¦ ºüÁ®³ª°¥ ¼ö ÀÖ´Ù.
PO ¸ðµå¸¦ ÀÌ¿ëÇؼµµ Çì´õ Ç׸ñÀ» ÆíÁýÇÒ ¼ö ÀÖ´Ù: À̸ƽº¿¡¼, M-x po-mode RETÀ» ŸÀÌÇÁÇÏ°í ´Ù½Ã RETÀ» ŸÀÌÇÁÇϸé Çì´õ Ç׸ñÀ» ÆíÁýÇÑ´Ù. ´ÙÀ½ Ç׸ñÀ» ä¿ö ³Ö¾î¾ß ÇÑ´Ù.
xgettext
°¡ ÀÌ¹Ì ÀÌ Ç׸ñÀ» ä¿ö ³ÖÀ» °ÍÀÌ´Ù.
msgmerge
¿Í msgfmt
ÇÁ·Î±×·¥ÀÌ ¿Ã¹Ù¸£°Ô µ¿ÀÛÇÏ´Â µ¥
²À ÇÊ¿äÇÏ°í, »ç¿ëÇÏ°í ÀÖ´Â ¹®ÀÚ ÀÎÄÚµùÀÌ ¹ø¿ªÀÚÀÇ ÀÎÄÚµù°ú ´Ù¸¥ »ç¿ëÀÚ¸¦
À§Çؼµµ ÇÊ¿äÇÏ´Ù (section gettext
°¡ »ç¿ëÇÒ Ãâ·Â ¹®ÀÚÀÇ ¹®Àڼ ÁöÁ¤Çϱâ).
¿©·¯ºÐ ·ÎÄÉÀÏÀÇ ¹®ÀÚ ÀÎÄÚµùÀº ½© ¸í·É¾î `locale charmap'À» ½ÇÇàÇϸé
¾Ë ¼ö ÀÖ´Ù. ¸¸¾à ±× °á°ú°¡ `C'À̰ųª
`ANSI_X3.4-1968'(`ASCII', `US-ASCII'¿Í °°´Ù)À̶ó¸é,
¿©·¯ºÐÀÇ ·ÎÄÉÀÏÀÌ Á¤È®È÷ ¼³Á¤µÇÁö ¾Ê¾Ò´Ù´Â ¶æÀÌ´Ù. ÀÌ °æ¿ì¿¡, ¿©·¯ºÐÀÇ
¹ø¿ªÆÀ¿¡ ¾î¶² ¹®ÀÚ¼ÂÀ» ¾µ Áö ¹°¾î º¸±â ¹Ù¶õ´Ù. `ASCII'´Â ¶óƾ
¾îÁ·ÀÇ ¾ð¾î¸¦ Á¦¿ÜÇÑ ¾î¶² ¾ð¾î¿¡µµ »ç¿ëÀÌ ºÒ°¡´ÉÇÏ´Ù.
PO ÆÄÀÏÀº ±¹Á¦È ±â´ÉÀÌ ±×¸® ÁÁÁö ¾ÊÀº ¿î¿µÃ¼Á¦¿¡µµ µ¿ÀÛÇØ¾ß Çϱâ
¶§¹®¿¡, ¹®ÀÚ ÀÎÄÚµùÀº GNU libc
¿Í GNU libiconv
°¡ Áö¿øÇÏ´Â
¹®ÀÚ ÀÎÄÚµùÀ¸·Î Á¦ÇѵȴÙ. ±× ÀÎÄÚµùÀº:
ASCII
, ISO-8859-1
, ISO-8859-2
, ISO-8859-3
,
ISO-8859-4
, ISO-8859-5
, ISO-8859-6
, ISO-8859-7
,
ISO-8859-8
, ISO-8859-9
, ISO-8859-13
, ISO-8859-15
,
KOI8-R
, KOI8-U
, CP850
, CP866
, CP874
,
CP932
, CP949
, CP950
, CP1250
, CP1251
,
CP1252
, CP1253
, CP1254
, CP1255
, CP1256
,
CP1257
, GB2312
, EUC-JP
, EUC-KR
, EUC-TW
,
BIG5
, BIG5-HKSCS
, GBK
, GB18030
, SJIS
,
JOHAB
, TIS-620
, VISCII
, UTF-8
.
GNU ½Ã½ºÅÛ¿¡¼´Â °¢°¢ÀÇ ¾ð¾î¿¡ ´ëÇØ ´ÙÀ½ ÀÎÄÚµùÀÌ ÁÖ·Î ¾²ÀδÙ.
ISO-8859-1
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
¾Æ¶ø¾î,
ISO-8859-7
±×¸®½º¾î,
ISO-8859-8
È÷ºê¸®¾î,
ISO-8859-9
ÅÍÅ°¾î,
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
·¯½Ã¾Æ¾î,
KOI8-U
¿ìÅ©¶óÀ̳ª¾î,
CP1251
for Bulgarian, Byelorussian,
GB2312
, GBK
, GB18030
Áß±¹¾î °£Ã¼,
BIG5
, BIG5-HKSCS
Áß±¹¾î ¹øü,
EUC-JP
ÀϺ»¾î,
EUC-KR
Çѱ¹¾î,
TIS-620
ŸÀ̾î,
UTF-8
À§¿¡ ¿°ÅµÈ ¾ð¾î¸¦ Æ÷ÇÔÇÑ ¸ðµç ¾ð¾î.
xmodmap
ÇÁ·Î±×·¥À» »ç¿ëÇØ Å°º¸µå
¸ÅÇÎÀ» ¹Ù²Ù¸é µÈ´Ù. µû¿ÈÇ¥ ¹®ÀÚÀÇ X11 À̸§Àº "leftsinglequotemark",
"rightsinglequotemark", "leftdoublequotemark", "rightdoublequotemark",
"singlelowquotemark", "doublelowquotemark"ÀÌ´Ù.
ÃֽŠ¹öÀüÀÇ GNU À̸ƽº¸¸ÀÌ UTF-8 ÀÎÄÚµùÀ» Áö¿øÇÑ´Ù´Â °Í¿¡ À¯ÀÇÇÑ´Ù:
Mule-UCS¸¦ Æ÷ÇÔÇÑ À̸ƽº 20À̳ª, À̸ƽº 21ÀÌ Áö¿øÇÑ´Ù. 2001³â 2¿ù ÇöÀç,
XÀ̸ƽº´Â UTF-8 ÀÎÄÚµùÀ» Áö¿øÇÏÁö ¾Ê´Â´Ù.
¹®ÀÚ ÀÎÄÚµù À̸§Àº ´ë¹®ÀÚ È¤Àº ¼Ò¹®ÀÚ·Î ¾²¿©Áú ¼ö ÀÖ´Ù. º¸Åë ´ë¹®ÀÚ·Î
¾²´Â °ÍÀÌ ÁÁ´Ù.
8bit
·Î ¾´´Ù.
Go to the first, previous, next, last section, table of contents.