TWiki
>
TWiki Web
>
TWikiI18NExtractDotPm
(revision 1) (raw view)
Edit
Attach
---+ Package =TWiki::I18N::Extract= Support translatable strings extraction from TWiki topics and templates. Depends on Locale::Maketext::Extract (part of CPAN::Locale::Maketext::Lexicon). %TOC% ---++ ClassMethod *new* <tt>($session) -> $extract</tt> 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* <tt>($msgid) -> $formated</tt> This method overrides the one with same name in =Locale::Maketext::Extract=, as a workaround for [[http://rt.cpan.org/Public/Bug/Display.html?id=14629][a bug]] in the =Locale::Maketext::Lexicon= Perl package, and was not fixed up to the 0.53 release. What it does is to call an alternative version of the _format function, which avoids [[http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1500][double-escaping]] the extracted strings. This method was tested only under the circumstances of TWiki's needs, i.e., extracting strings from source and topics and generating a brand new POT file. Merging with previous PO files is done with GNU gettext tools, so maybe if it's used for merging it can Once that bug is fixed, in future TWiki versions this method may be removed. !!!extract!!!
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2006-02-01
-
TWikiContributor
TWiki
Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
LAPPD
Sandbox
TWiki
Copyright © 1999-2025 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
.