1 # <a name="Package <code>TWiki::Plurals="></a> Package =TWiki::Plurals
3 Handle conversion of plural topic names to singular form.
7 <li><a href="#Package =TWiki::Plurals="> Package TWiki::Plurals</a><ul>
8 <li><a href="#StaticMethod <strong>singularForm</strong> ($we"> StaticMethod singularForm <tt>($web,$pluralForm) -> $singularForm</tt></a></li>
14 ## <a name="StaticMethod <strong>singularForm</strong> ($we"></a> [[StaticMethod]] **singularForm** `($web,$pluralForm) -> $singularForm`
16 Try to singularise plural topic name.
18 - `$web` - the web the topic must be in
19 - `$pluralForm` - topic name
21 Returns undef if no singular form exists, otherwise returns the singular form of the topic
23 [[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.
25 SMELL: this is highly langauge specific, and shoud be overridable on a per-installation basis.