head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2008.08.03.22.17.45;	author TWikiContributor;	state Exp;
branches;
next	1.1;

1.1
date	2006.02.01.12.01.25;	author TWikiContributor;	state Exp;
branches;
next	;


desc
@new-topic
@


1.2
log
@buildrelease
@
text
@---+ Package =TWiki::Plurals=

Handle conversion of plural topic names to singular form.


%TOC%

---++ StaticMethod *singularForm* <tt>($web,$pluralForm) -> $singularForm</tt>

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}.


@


1.1
log
@buildrelease
@
text
@d21 2
a22 2
SMELL: this is highly langauge specific, and shoud be overridable
on a per-installation basis.
@
