data/TWiki/TWikiPluralsDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 ---+ Package =TWiki::Plurals=
     2 
     3 Handle conversion of plural topic names to singular form.
     4 
     5 
     6 %TOC%
     7 
     8 ---++ StaticMethod *singularForm* <tt>($web,$pluralForm) -> $singularForm</tt>
     9 
    10 Try to singularise plural topic name.
    11    * =$web= - the web the topic must be in
    12    * =$pluralForm= - topic name
    13 Returns undef if no singular form exists, otherwise returns the
    14 singular form of the topic
    15 
    16 I18N - Only apply plural processing if site language is English, or
    17 if a built-in English-language web (Main, TWiki or Plugins).  Plurals
    18 apply to names ending in 's', where topic doesn't exist with plural
    19 name.
    20 
    21 SMELL: this is highly langauge specific, and shoud be overridable
    22 on a per-installation basis.
    23 
    24