PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::I18N
Child packages:

    SMELL / FIX / TODO count: 1

    internal package Foswiki::I18N::Extract

    Support translatable strings extraction from Foswiki 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 Foswiki 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.

    SMELL: although here we can extract properly the string,
    Searched: ...

    Results from System web retrieved at 15:12 (GMT)

    AccessControl
    … = FilesMatch "(attach edit ...= section with this: …
    AdminSkillsAssumptions
    … a program (configure, make, ...) * install the program …
    AutoViewTemplatePlugin
    … by stripping off the suffix ...Form from the form name and … appending ...View. The Wiki engine will … . Note that you must omit the ...Template from the template … section viewtemplate in topic...) when used in "section" mode …
    BeginnersStartHere
    … * Anyone can add content... or change what is written... … * Whatever you write is... nicely presented... … remembered... and never forgotten * … Get (WYSIWYG) text editing ... or you can use plain text …
    CommandAndCGIScripts
    … call manage from an = a href ... = link. Parameter … register from an = a href ... = link. The verify action is … call rename from an = a href ... = link. resetpasswd This …
    CommentPlugin
    … * %URLPARAM{...}% Parameters to the current …
    DataForms
    … topic. * You can use ... double bracket links to … select ... Foswiki will look for the …
    DefaultPreferences
    … and add the "what" and "use to..." description for the site map … = * Note: Use the ... ... syntax to link topics … linking. The = noautolink ... /noautolink = syntax can be …
    DefaultWebStatistics
    … ="More info about Statistics ..." hidelink="Close info" …
    DeveloperDocumentationCategory
    … and Web Pages Using %INCLUDE{...}% Macro $ QuerySearch …
    DevelopingPlugins
    … only plugins): \ {Plugins}...{Module} \ {Plugins}...{ …
    DocumentGraphics
    … Icon Description Write... airplane airplane … Icon Description Write... viewtopic View topic … Icon Description Write... person Person % … Icon Description Write... changes Changes % …
    EditRowPlugin
    … row at a time. An %EDITTABLE{...}% in the topic will be … table, or another %EDITTABLE{...}% is seen before the next …
    EditTablePlugin
    … Settings Add a %EDITTABLE{...}% macro just before an … format in %EDITTABLE{format="..."}% and the date format … . Place an %EDITCELL{ "type, ..." }% macro at the end of the …
    EditingShorthand
    … Arabic numerals 1, 2, 3, 4... A. Uppercase letters … A, B, C, D... a. Lowercase letters … a, b, c, d... I. Uppercase Roman … Numerals I, II, III, IV... i. Lowercase Roman …
    FAQHiddenUsersAndGroups
    … access to a users home topic .... * The users topic will …
    FAQRebuildingWikiUsersTopic
    Under normal circumstances, there should be no need to rebuild your . topic. Sometimes, the . topic maintained by .TopicUserMappingContrib may not reflect the tru...
    FAQTemplate
    The answer is...
    FAQViewTemplate
    … The extraneous characters: %{...}% are interpreted as comments …
    FAQWhyYouAreAskedToConfirm
    %ADDTOZONE{"head" id="FAQWhyYouAreAskedToConfirm" text=" #expl1 { position:absolute; left:17px; top:23px; } #you1 { position:absolute; left:307px; top:130px...
    FileAttachment
    File Attachments Each topic can have one or more files of any type attached to it by using the Attach screen to upload (or download) files from your local PC. Att...
    FormattedSearch
    … output format of a %SEARCH{...}% is a table consisting of … summaries. Use the format="..." parameter to customize the … summary " }%. See %SEARCH{...}% for other search parameters …
    FrequentlyAskedQuestions
    … words, e.g. "I did this ..., how do I … ..." " icon="fa … "}% More sources... Other places where you can …
    GlossaryOfTerms
    … viewed and downloaded. Details... $ Contrib: Any Extension … about the topic Details... $ Extension: Prepackaged … ID or email address. Details... $ Macro: Text strings of …
    GoodStyle
    … the text http://etcete.ra/... it'll be clear to anyone … letters: Jan, Feb, Mar, Apr,... * Check the source when …
    IconService
    IconService The IconService functions as a central definition and delivery method for all sorts of icons: image icons as well as font icons. Different kinds of i...
    IncludeTopicsAndWebPages
    … and Web Pages Using %INCLUDE{...}% Macro Embed topics, or … other web pages. The %INCLUDE{...}% macro embeds the content of …
    InstallationGuide
    … } (/foswiki/bin): ... It can also be run in a non …
    InstallationGuidePart2
    … (mod_perl, FastCGI, ...) Foswiki is installed by …
    JQueryAjaxHelper
    … This one returns an = img... = to a user's photo. See the … ; will be wrapped into %...% before executing it * …
    JQueryAnimate
    … Default data effect="..." either an effect name as … ").on("finish", function() {...}) is equivalent to the much … ", function() { ... }); to cover all browsers. …
    JQueryBlockUI
    … . Demo Click here Hey there ... jQuery(function …
    JQueryCodingStandards
    … possible: $(function() { ... }); instead of $(document). … ready(function() { ... }); Global variables If you …
    JQueryI18N
    … homepage = 'http://...', i18n = $ … /System/SomePlugin/i18n/en.js ... pub/System/SomePlugin/i18n/uk … type="application/l10n" ... elements might even be …
    JQueryLoader
    … " data_target="..." data_icon_class … ="..." data_spin_class="..." }% Parameters … $rev $wikiusername" }% ... if installed: Effect …
    JQueryMasonry
    … HTML5 data attributes. ... ... ... ... Options …
    JQueryMetadata
    … that aren't init'ed yet // ... using livequery instead of …
    JQueryRender
    … the same using DOM plumbing... {{:firstName}} {{:lastName … as the {{for ..}} tag or {{: ...}}. All JsRender template … "/}} {{for pathOrExpr }} ... {{/for}} template …
    JQueryStars
    … array of values such as in ... or an array of objects of the …
    JQuerySuperfish
    … :Extensions.TreePlugin Topics... #187; %TREE{ web="" …
    JQueryTextboxList
    … ", function(value) { ... }); }); Event …
    JQueryUIAutocomplete
    … strings: "term1", "term2", "..." Array of json objects … value: "value is this" }, ... Custom properties may be …
    JQueryUIDialog
    … Here goes the content. ... ... which is activated … when creating the dialog: ... or by binding it afterwards …
    JQueryWikiWord
    … value', /* e.g. 'Project...' */ prefix:'string to be …
    JSCalendarContrib
    … ::JSCalendarContrib (); ... my $fromDate = Foswiki:: … ::JSCalendarContrib (); ... sub commonTagsHandler … { .... # Enable 'showCalendar' …
    JavascriptFiles
    … use the %ADDTOZONE{"script" ...}% macro if you do so. Bear in …
    JsonRpcContrib
    … (); sub initPlugin { ... Foswiki::Contrib:: … jsonRpcSomeMethod ); ... } # Plugin's implementation … session, $request) = @_; ... # Return some result …
    MailerContrib
    … list of topics: * ... without a Web. prefix … * ...that exist in this web. Users … nochanges web1 web2 ... webN bin path to the … mail was sent. web1 web2 ... webN List of webs to …
    MainFeatures
    What makes Foswiki .... the ideal collaboration tool … ? Foswiki is... Wiki Structured Data …
    ManagingTopics
    … , click Rename or move topic... or Delete topic... . You … screen, click Delete topic... . That will bring up the " … .g. user confusion). If rename... is used heavily, these …
    ManagingWebs
    … ="More info about sub webs ..." hidelink="Close info" … More info about template webs ..." hidelink="Close info" … have names beginning with "Web..." (like "" or "WebNotify") are …
    MetaData
    … {key1="value1" key2="value2" ...}% * The characters %"\r\n … {name="CV.txt" version="3" ... }% %META:FILEATTACHMENT{name …
    OriginalDocumentGraphics
    … Name Description Write... airplane.gif … Name Description Write... viewtopic.gif View … Name Description Write... person.gif Person … Name Description Write... changes.gif Changes …
    PageCaching
    … looks like this: %SEARCH{ ... }% See .JQueryLoader for more … topic using the = dirtyarea ... /dirtyarea = tags. Foswiki … u root p Enter password: ........ Welcome to the MySQL …
    PatternSkin
    Pattern skin Select a theme to change the look, or tune the entire appearance with CSS or templates. Browse available themes You may quickly change the appearanc...
    PatternSkinCssCookbookHideActions
    … or guest users: (Edit, Attach ...) Note that the solutions in …
    PatternSkinCssCookbookSidebarToggle
    System.PatternSkinCssCookbook Recipe: Left Sidebar Toggle The Sidebar is hidden for screens with width This line loads the extra style definition: * Set USERS...
    PendingRegistrationsTemplate
    Pending Registrations Template Tailoring instructions: The contents of the Pending Registrations report can be modified to report any fields collected on a custo...
    PreferenceSettings
    … the is today (Set in ...). The %TOPIC% shows where the … macro is expanded, and the ... shows where the Set …
    QuerySearch
    … , Maryann, MaryAnn, AnnMarie... Search examples Find all …
    QuerySearchPatternCookbook
    … ="on" format="$topic(25,...)$date $wikiname" }% … ="on" format="$parent(30,...) ($rev)$date $wikiname …
    ReleaseHistory
    … Eng.ajax into the Jump box... Here we go, the third link is … from any topic name ending in ...Template * Functionality … count, $formfield(name, 30, ...), $summary(expandvar), $ …
    ReleaseNotes01x00
    … to store data via an " a href=..." link or img tag. It also … {save}%//" method="post" ... /form The template webs … Item212 stop url(http://... something.png) from being …
    ReleaseNotes01x01
    … correctly, for example: ... will not match these topics. … by jQuery * BUTTON{"text" ...} renders a nice button … * TABPANE{...}, ENDTABPANE, TAB{"text …
    ReleaseNotes02x00
    … e.g. %TABLE{ initsort="... " % will cause confusion as … .com/foswiki/Main/WebHome, ... * Follow the link in the … CA tools/configure save set ... Full help on the available …
    ReleaseNotes02x01
    … DIFF_TEXT rarely used ... and buggy Item15074 …
    SearchPatternCookbook
    … Solution Select... %SEARCH … employed: Select category... %SEARCH{ " \s …
    SkinTemplateTokens
    … , tokens do not support {...} parameters. They are merely …
    SkinTemplates
    … defined block. * %{...}% is a comment. Whitespace … . This is a special template. ... TMPL:INCLUDE recursion You … first. Comments Comments %{...}% are removed from the …
    SlideShowPlugin
    … have seen a secret. Meanwhile... * the King's advisor …
    SpreadSheetPlugin
    … two macros: * The %CALC{"..."}% macro, which gets rendered … lines. * The %CALCULATE{"..."}% macro can span multiple …
    StandardColors
    … percent Lorem ipsum.... $percentENDCOLOR$percent $ …
    SubscribePlugin
    … use the subscription service. .../rest/SubscribePlugin/ …
    SystemRequirements
    … . and click on the "Show ..." link to reveal the details … Algorithm::Diff Archive::Tar ... (install libraries into / …
    TablePlugin
    … before the table using %TABLE{...}%: Specifying and overriding … ="0" cellpadding="1" ... 1 As parameters to the … TABLEPLUGIN_TABLEATTRIBUTES = ... competely overrides previous …
    TemplateTopics
    … . See VarGMTIME %GMTIME{...}% Formatted date/time. See … {type="templateonly"}%...%ENDSECTION{type="templateonly …
    TinyMCEPlugin
    … :Item11369: "Please wait... retrieving page from server" … to install TinyMCE; META..." 05 Mar 2010 … to install TinyMCE; META..." 24 Jan 2010 …
    TipTopic001
    The Go Box as a browser The go box (also called jump box) allows you to jump from page to page and search for documents. If you do not know the entire name of th...
    TipTopic002
    WebChanges to see recent activity Each Foswiki web has a WebChanges topic that lists recent activity from all editors of the web. This can be useful when looking ...
    TipTopic003
    Raw Text link At the bottom of each page among the action links (assuming use of the default PatternSkin), there is a View wiki text link which shows how a topic ...
    TipTopic004
    E mail alert of topic changes Subscribing to WebNotify will enable Foswiki to send you details of changes made on topics in a certain web. You can choose to be no...
    TipTopic005
    Re parenting a topic The breadcrumbs ( Contribs TipsContrib TipsOfTheDay , for example) of any topic is constructed automatically in Foswiki by foll...
    TipTopic006
    Creating a Table of Contents %TOC% automatically creates a table of contents based on the headings present in the topic. To exclude a heading from a %TOC% add !! ...
    TipTopic007
    Linking to a file attachment A link to a file attachment may be created in a few different ways: 1 If using the WYSIWYG editor (TinyMCEPlugin), use the attach ...
    TipTopic008
    Escaping Foswiki rendering Use the verbatim tag to surround code excerpts and other formatted text with = verbatim = and = /verbatim = tags. For Example: verbati...
    TipTopic009
    Disabling links in large blocks of text You can disable automatic linking of WikiWords by surrounding the text with = noautolink = and = /noautolink = tags. Each ...
    TipTopic010
    Disabling individual WikiWords Prevent a WikiWord from being linked by prefixing it with an exclamation point. Example: To escape SunOs write SunOs to get SunOs. ...
    TipTopic011
    Server side include To include the contents of a web page or Foswiki topic, use %INCLUDE{"page"}%. Examples: This example requires {INCLUDE}{AllowURLs} enabled in...
    TipTopic012
    WikiWords for linking WikiWords are capitalized words, run together, such as WebPreferences and CollaborationPlatform. Using a lot of WikiWords creates a good bro...
    TipTopic013
    Preference settings Foswiki has several levels of preferences settings. See PreferenceSettings for a full list and more information: 1 Default settings: (nev...
    TipTopic014
    … properties More Information... See More Tips …
    TipTopic015
    Breadcrumb The breadcrumb of a topic shows you page hierarchy. It is constructed using a topic's parent setting; for example, the breadcrumb on this page looks l...
    TipTopic016
    Foswiki Skins Skins overlay regular templates with alternate layouts (and styles). You can use Skins to change the look of a Foswiki topic, for example, the layo...
    TipTopic017
    Revision control In Foswiki, assuming appropriate AccessControls, anyone can change anything but those changes are logged. There is a complete audit trail with r...
    TipTopic018
    … applications. More Information... See More Tips …
    TipTopic019
    Commenting with hidden text To hide sections of a Foswiki topic, use HTML comments. Example comment within a sentence: Visible ! and hidden text Example spa...
    TipTopic020
    … to long URLs. More information... See More Tips …
    TipTopic021
    … nice small icon. More smilies... See More Tips …
    TipTopic022
    … if preceeded by an %EDITTABLE{...}% macro. Each column can be a … . More Information... See More Tips …
    TipTopic023
    … ="0" cellpadding="1" ... To change table … characteristics place %TABLE{...}% before the table. More … Information... See More Tips …
    TipTopic024
    … purposes only More Information... See More Tips …
    TipTopic025
    … : to get: == More Information... See More Tips …
    TipTopic026
    … etc. More Information... See More Tips …
    TipTopic027
    … list. More Information... See More Tips …
    TipTopic028
    Keyword search Interactive search is a keyword search by default. For example, to search for all topics that contain "SOAP", "WSDL", a literal "web service", but ...
    TipTopic029
    RSS news feed of topic changes You can use an RSS news reader to find out what is new in a Foswiki web. This complements WebChanges that shows recent changes in a...
    TipsOfTheDayTemplate
    Heading Quick Summary with link to more information. See More Tips...
    TopicUserMappingContrib
    … all the ALLOWWEB/ALLOWTOPIC... declarations, if any. … topic ends with an upper case ...Group suffix 4.61 (22 Nov … ) removed unused UserList... topics in Main 4.58 (25 …
    TwentyMinuteTutorial
    … with all the Foswiki basics... 1. Get set... Open two … other. 2. Take a quick tour... A Foswiki site is divided … . 3. Open a private account... To edit topics, you need to …
    TwistyPlugin
    … %TWISTY{ showlink="Show..." hidelink="Hide" … this: %TWISTY{ showlink="Show..." hidelink="Hide" showimgleft … . %TWISTY{ showlink="Show..." hidelink="Hide" …
    UpgradeGuide
    … method validate_permissions ... also can be run on: { …
    UserAuthentication
    … = tags must start with: "Fwk0..." (if this is an optional … entry), or "Fwk1..." (if this is a required entry … in the %SET{"FIELDS" value="..." You can hide the block by …
    UsingHTML
    … closing angle brackets = ... = of a HTML tag are on the …
    VarADDTOHEAD
    ADDTOHEAD deprecated, use ADDTOZONE instead This macro is deprecated. Please use VarADDTOZONE instead. It effecively is a shortcut for %ADDTOZONE{"head" ...}%
    VarADDTOZONE
    … in the skin templates using: ... The body zone is added to the … allows an ADDTOZONE{"head"...} to to successfully require … page using %ADDTOZONE{"script"...requires="library id"}% with …
    VarBUTTON
    … 3D button data_... add html5 data attributes …
    VarEXAMPLETAG
    … Description Default "..." Unnamed parameter … text example text "..." format format of …
    VarFORMFIELD
    … form field topic="..." Topic where form data is …
    VarINCLUDE
    … Default "http://..." A full qualified URL, i.e … Default "doc:..." A full qualified Foswiki …
    VarJQICON
    … is set, this expands to alt='...' \ $iconTitle: … set, this expands to title='...' \ for image …
    VarMAKETEXT
    … alphabetic character (a...z, A...Z) in the translatable … expanded before the %MAKETEXT{...}% itself is handled. You …
    VarMETASEARCH
    … empty ! format="..." Custom format results. …
    VarNOP
    … , it is removed. * %NOP{...}% deprecated * In …
    VarSET
    … in * Set foo = %SEARCH{... or in META settings will … search_result" value="%SEARCH{...}%"}%. The result of the value …
    VarSTARTSECTION
    … " like %STARTINCLUDE% ... %STOPINCLUDE% except that you … * %STARTSECTION{"name"}% ................... %ENDSECTION{" …
    VarSUBSCRIBE
    … or template: * %SUBSCRIBE{...}% or simply %SUBSCRIBE …
    VarTAB
    … is set the content of the TAB ... ENDTAB area will be shown …
    VarTABPANE
    … , containing a series of TAB...ENDTABs and ends with … looks like this: ... ... Multiple …
    VarTOC
    … ID. #foswikiTOC, #foswikiTOC2 ... "foswikiTOC" Preference …
    VarURLPARAM
    … {"skin"}% returns print for a .../view/System/?skin=print URL …
    VarUSERINFO
    … USERINFO{"name" format="..."}% expands to (lists $ …
    WelcomeGuest
    … looks like a normal web site... except that it encourages …
    WysiwygPlugin
    … the following REST handlers: .../rest/WysiwygPlugin/html2tml? … TML. topic must be specified. .../rest/WysiwygPlugin/tml2html? … eating newlines inside %MACRO{...} expressions (Michael Tempest …
    WysiwygPluginSettings
    … with parameters e.g. %MACRO{...}% * pre blocks (= pre … ) * HTML comments ( ! = ... = =) * script = inline …
    Number of topics: 134

    This topic: System > Category > DeveloperDocumentationCategory > PerlDoc
    Topic revision: 15 Mar 2026, UnknownUser
    This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
    Ideas, requests, problems regarding Foswiki? Send feedback