Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/view/TWiki/TWikiI18NExtractDotPm?rev=2
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 10:06:21 2016
Кодировка:
TWikiI18NExtractDotPm - TWiki - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...

Package =TWiki::I18N::Extract

Support translatable strings extraction from TWiki topics and templates. Depends on Locale::Maketext::Extract (part of CPAN::Locale::Maketext::Lexicon).

ClassMethod new ($session) -> $extract

Constructor. Creates a fresh new Extract object. A $session object, instance of the TWiki class, is optional: if it's available, it'll be used for printing warnings.

ObjectMethod extract ($file,$text)

Extract the strings from $text,m using $file as the name of the current file being read (for comments in PO file, for example). Overrides the base class method but calls it so the base behavior is preserved.

As in base class, extracted strings are just stored in the =$self='s internal table for further use (e.g. creating/updating a PO file). Nothing is returned.

r2 - 2007-01-16 - 04:12:05 - TWikiContributor
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiI18NExtractDotPm
Syndicate this site RSSATOM