From: handa Date: Tue, 26 Sep 2006 13:10:18 +0000 (+0000) Subject: Add description about gettext. X-Git-Tag: REL-1-3-4~70 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a70269334a89b5a7a834c863a8fcf12d2339be75;p=m17n%2Fm17n-db.git Add description about gettext. --- diff --git a/FORMATS/IM.ja.txt b/FORMATS/IM.ja.txt index f7ede08..cba76ab 100644 --- a/FORMATS/IM.ja.txt +++ b/FORMATS/IM.ja.txt @@ -28,20 +28,22 @@ INPUT-METHOD ::= TITLE MAP-LIST MACRO-LIST ? MODULE-LIST ? STATE-LIST IM-DECLARATION ::= '(' 'input-method' LANGUAGE NAME ')' -DESCRIPTION ::= '(' 'description' MTEXT ')' +DESCRIPTION ::= '(' 'description' [ MTEXT-OR-GETTEXT | nil] ')' VARIABLE-LIST ::= '(' 'variable' VARIABLE-DECLARATION * ')' COMMAND-LIST ::= '(' 'command' COMMAND-DECLARATION * ')' TITLE ::= '(' 'title' TITLE-TEXT ')' VARIABLE-DECLARATION ::= - '(' VAR-NAME [ VAR-DESCRIPTION | nil ] VALUE VALUE-CANDIDATE * ')' + '(' VAR-NAME [ MTEXT-OR-GETTEXT | nil ] VALUE VALUE-CANDIDATE * ')' COMMAND-DECLARATION ::= - '(' CMD-NAME [ CMD-DESCRIPTION | nil ] KEYSEQ * ')' + '(' CMD-NAME [ MTEXT-OR-GETTEXT | nil ] KEYSEQ * ')' + +MTEXT-OR-GETTEXT ::= + [ MTEXT | '(' '_' MTEXT ')'] LANGUAGE ::= SYMBOL NAME ::= SYMBOL -IM-DESCRIPTION ::= MTEXT VAR-NAME ::= SYMBOL VAR-DESCRIPTION ::= MTEXT VALUE ::= MTEXT | SYMBOL | INTEGER @@ -55,7 +57,9 @@ TITLE-TEXT ::= MTEXT @c IM-DECLARATION ¤Ï¤³¤ÎÆþÎϥ᥽¥Ã¥É¤Î¸À¸ì¤È̾Á°¤ò»ØÄꤹ¤ë¡£ -@c DESCRIPTION ¤Ï¤³¤ÎÆþÎϥ᥽¥Ã¥É¤ÎÀâÌÀ¤Ç¤¢¤ë @c MTEXT ¤ò»ØÄꤹ¤ë¡£ +@c DESCRIPTION ¤Ï¤³¤ÎÆþÎϥ᥽¥Ã¥É¤ÎÀâÌÀ¤ò @c MTEXT-OR-GETTEXT ¤Ç»ØÄꤹ +¤ë¡£¤â¤·¤³¤ì¤¬£²ÈÖÌܤηÁ¼°¤ò¼è¤Ã¤Æ¤¤¤ì¤Ð¡¢ @c MTEXT ¤Ï¸½ºß¤Î¥í¥±¡¼¥ë¤Ë +½¾¤Ã¤Æ "gettext" ¤Ë¤è¤Ã¤ÆËÝÌõ¤µ¤ì¤ë¡ÊËÝÌõʸ¤¬Ä󶡤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡Ë¡£ @c VARIABLE-DECLARATION ¤Ï¤³¤ÎÆþÎϥ᥽¥Ã¥É¤Ç»ÈÍѤµ¤ì¤ëÊÑ¿ô¤òÀë¸À¤¹¤ë¡£ ÊÑ¿ô¤ò¥Ç¥Õ¥©¥ë¥ÈÃͤ˽é´ü²½¤·¤¿¤ê¡¢¥æ¡¼¥¶¤¬¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤ê¤¹¤ë¾ì¹ç¤Ë diff --git a/FORMATS/IM.txt b/FORMATS/IM.txt index 7c9d38c..5cdfe3e 100644 --- a/FORMATS/IM.txt +++ b/FORMATS/IM.txt @@ -28,16 +28,19 @@ INPUT-METHOD ::= TITLE MAP-LIST MACRO-LIST ? MODULE-LIST ? STATE-LIST IM-DECLARATION ::= '(' 'input-method' LANGUAGE NAME ')' -DESCRIPTION ::= '(' 'description' MTEXT ')' +DESCRIPTION ::= '(' 'description' [ MTEXT-OR-GETTEXT | nil] ')' VARIABLE-LIST ::= '(' 'variable' VARIABLE-DECLARATION * ')' COMMAND-LIST ::= '(' 'command' COMMAND-DECLARATION * ')' TITLE ::= '(' 'title' TITLE-TEXT ')' VARIABLE-DECLARATION ::= - '(' VAR-NAME [ VAR-DESCRIPTION | nil ] VALUE VALUE-CANDIDATE * ')' + '(' VAR-NAME [ MTEXT-OR-GETTEXT | nil ] VALUE VALUE-CANDIDATE * ')' COMMAND-DECLARATION ::= - '(' CMD-NAME [ CMD-DESCRIPTION | nil ] KEYSEQ * ')' + '(' CMD-NAME [ MTEXT-OR-GETTEXT | nil ] KEYSEQ * ')' + +MTEXT-OR-GETTEXT ::= + [ MTEXT | '(' '_' MTEXT ')'] LANGUAGE ::= SYMBOL NAME ::= SYMBOL @@ -56,8 +59,10 @@ TITLE-TEXT ::= MTEXT @c IM-DECLARATION specifies the language and name of this input method. -@c DESCRIPTION specifies @c MTEXT as the description text of this -input method. +@c DESCRIPTION specifies the description text of this input method by +MTEXT-OR-GETTEXT. It it takes the second form, the text is translated +according to the current locale by "gettext" (if the translation is +provided). @c VARIABLE-DECLARATION declares a variable used in this input method. If a variable must be initialized to the default value, or is to be