(1 vs. 2) TWikiPluralsDotPm < TWiki < TWiki

Home - this site is powered by TWiki(R)
TWiki  TWikiPluralsDotPm (1 vs. 2)

Welcome | Register | Changes | Topics | Index | Search | Go

 <<O>>  Difference Topic TWikiPluralsDotPm (2 - 2008-08-03 - TWikiContributor)
 

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.

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

 <<O>>  Difference Topic TWikiPluralsDotPm (1 - 2006-02-01 - TWikiContributor)
 

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.

SMELL: this is highly langauge specific, and shoud be overridable on a per-installation basis.


View | History: r3 < r2 < r1 | More

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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.TWikiPluralsDotPm.

Revision r3 - 2009-03-30 - 09:17:52 - TWikiContributor Edit

(%REVTITLE2% vs. %REVTITLE1%) TWikiPluralsDotPm < TWiki < TWiki