From: Reini U. <ru...@x-...> - 2005-02-02 15:55:31
|
Charles Corrigan schrieb: >>One note: please use _("") and not _(''), xgettext requires " > > OK, I redid the plugin below, replacing _('') with _(""). One thing I am not certain of - do all calls to _() have to use "" or is > _($key) legal? _($key) is legal but not extracted by xgettext, which collects all the strings for the pot file. So you must be sure to have the string defined somewhere else, otherwise no translation will be printed. And we don't like it, since it's hard to maintain. _WikiTranslation uses the php hash for these kind of tricks. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |