Roxen.git / server / languages / french.pike

version» Context lines:

Roxen.git/server/languages/french.pike:1:   /*    - string cvs_version = "$Id: french.pike,v 1.7 1998/09/22 14:53:53 grubba Exp $"; + string cvs_version = "$Id: french.pike,v 1.8 2000/01/17 21:03:20 nilsson Exp $";   Created by:      ---------------------+--------------------------------------------------   Patrick KREMER | U.c. de Louvain (Belgium) Institute of Geography   kremer@geog.ucl.ac.be| Xin1-Lu3wen4 Da4xue2 (Bi3li4shi2) Di4li3xue2 Xi4   fax:++32-10/472877 | Pl. Pasteur,3 B-1348 Louvain-la-Neuve Belgium   ---------------------+--------------------------------------------------   http://ftp.geog.ucl.ac.be/~patrick/         */      /*    * name = "French language plugin ";    * doc = "Handles the conversion of numbers and dates to French. You have to restart the server for updates to take effect. Translation by Patrick Kremer.";    */    -  + inherit "abstract.pike";    - string month(int num) - { -  return ({ "janvier", "février", "mars", "avril", "mai", + constant _id = ({ "fr", "french" }); + constant _aliases = ({ "fr", "fra", "français", "french" }); +  + constant months = ({ +  "janvier", "février", "mars", "avril", "mai",    "juin", "juillet", "août", "septembre", "octobre", -  "novembre", "décembre" })[ num - 1 ]; - } +  "novembre", "décembre" });    -  + constant day = ({ +  "dimanche", "lundi", "mardi", "mercredi", +  "jeudi", "vendredi", "samedi" }); +    string ordered(int i)   {    switch(i)    {    case 1:    return "1:ier";    default:    return (string)i;    }   }
Roxen.git/server/languages/french.pike:129:    case 1000001..1999999:    return number(num/1000000)+" million "+number(num%1000000);    case 2000000..999999999:    if(num%1000000 == 0)    return number(num/1000000)+" millions de ";    return number(num/1000000)+" millions "+number(num%1000000);    default:    return "beaucoup";    }   } -  - string day(int num) - { -  return ({ "dimanche", "lundi", "mardi", "mercredi", -  "jeudi", "vendredi", "samedi" })[ num - 1 ]; - } -  - array aliases() - { -  return ({ "fr", "fra", "français", "french" }); - } -  +