data/TWiki/TWikiPluralsDotPm.txt,v
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 head	1.1;
       
     2 access;
       
     3 symbols;
       
     4 locks; strict;
       
     5 comment	@# @;
       
     6 
       
     7 
       
     8 1.1
       
     9 date	2006.02.01.12.01.25;	author TWikiContributor;	state Exp;
       
    10 branches;
       
    11 next	;
       
    12 
       
    13 
       
    14 desc
       
    15 @new-topic
       
    16 @
       
    17 
       
    18 
       
    19 1.1
       
    20 log
       
    21 @buildrelease
       
    22 @
       
    23 text
       
    24 @---+ Package =TWiki::Plurals=
       
    25 
       
    26 Handle conversion of plural topic names to singular form.
       
    27 
       
    28 
       
    29 %TOC%
       
    30 
       
    31 ---++ StaticMethod *singularForm* <tt>($web,$pluralForm) -> $singularForm</tt>
       
    32 
       
    33 Try to singularise plural topic name.
       
    34    * =$web= - the web the topic must be in
       
    35    * =$pluralForm= - topic name
       
    36 Returns undef if no singular form exists, otherwise returns the
       
    37 singular form of the topic
       
    38 
       
    39 I18N - Only apply plural processing if site language is English, or
       
    40 if a built-in English-language web (Main, TWiki or Plugins).  Plurals
       
    41 apply to names ending in 's', where topic doesn't exist with plural
       
    42 name.
       
    43 
       
    44 SMELL: this is highly langauge specific, and shoud be overridable
       
    45 on a per-installation basis.
       
    46 
       
    47 
       
    48 @