GetText
-
Every gettext implementation requires a directory structure similar to this .
每个gettext实现都要求使用与此类似的目录结构。
-
Mark up strings by moving them into arguments to the special function gettext () .
通过将字符串移入特定函数gettext()的参数来标记字符串。
-
With this approach , the localized strings are not extracted by a tool like gettext .
使用这种方法,经过本地化的字符串不是通过诸如gettext之类的工具提取的。
-
This macro calls the gettext () routine and is essential for translating your interface .
这个宏调用gettext()例程,并且对于界面转换至关重要。
-
Note that JDOM has already solved this problem for us with the convenient funtion getText .
注意,JDOM已经利用便利的函数getText为我们解决了这个问题。
-
First you define a HelloWorld class with a single String field named text and the getter method getText () .
首先定义一个HelloWorld类,只有一个String字段,名为text,还有getter方法,名为getText()。
-
As you can see , we define the image and text represented by each node using the getImage and getText methods .
正如您可以看到的那样,我们将使用getImage和getText方法定义每个节点所表示的图像和文本。
-
The gettext extraction framework
gettext提取框架
-
Gettext , a toolset that assists GNU packages in producing multi-lingual messages
一个工具集,可以帮助GNU软件包生成多语言的消息
-
The message ID ( msgid ) is the original text that was marked for extraction with a call to the gettext () function .
消息ID(msgid)是用于提取而调用gettext()函数进行标记的原始文本。
-
As we discussed earlier , it is much more intuitive to call a getText () method than to call getProperty (" . value ") . toString () .
正如前面所讨论的,调用getText()方法要比调用getProperty(“.value”)直观得多。
-
The article does not deal with the problem of localization in general & especially with translation ; such a task is best handled by additional PHP libraries like GNU gettext ( see Resources ) .
本文不会解决全部的本地化问题&尤其是对于翻译;这类任务可由额外的PHP库,比如GNUgettext,进行很好地处理(参见参考资料)。
-
But this information isn 't directly provided by any GuiTestObject method ( there is no getText method in GuiTestObject that provides the name of one of these buttons , for instance ) .
但是这些信息并不能通过任何GuiTestObject方法(例如,在GuiTestObject中不存在提供按钮名称的getText方法)直接获得。