Package TWiki::Plurals

Handle conversion of plural topic names to singular form.

StaticMethod singularForm ($web,$pluralForm) -> $singularForm

Try to singularise plural topic name.

  • $web - the web the topic must be in
  • $pluralForm - topic name
Returns undef if no singular form exists, otherwise returns the singular form of the topic

I18N - Only apply plural processing if site language is English, or if a built-in English-language web (Main, TWiki or Plugins). Plurals apply to names ending in 's', where topic doesn't exist with plural name.

Note that this is highly langauge specific, and need to be enabled on a per-installation basis with $TWiki::cfg{PluralToSingular}.

r3 - 30 Mar 2009 - 09:17:52 - TWikiContributor
 
Linux & Open Source for AT91 Microchip Microprocessors

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Microchip® and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries. This site is powered by the TWiki collaboration platform

Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM