Roxen.git / server / languages / danish.pike

version» Context lines:

Roxen.git/server/languages/danish.pike:1:   /*    * name = "Danish language plugin ";    * doc = "Handles the conversion of numbers and dates to Danish. You have to restart the server for updates to take effect.";    */      inherit "abstract.pike";    - constant cvs_version = "$Id: danish.pike,v 1.1 2010/02/24 16:56:16 grubba Exp $"; + constant cvs_version = "$Id$";   constant _id = ({ "dk", "danish", "dansk" });   constant _aliases = ({ "dk", "da", "dan", "dnk", "dansk", "danish" });      constant months = ({    "januar", "februar", "marts", "april", "maj",    "juni", "juli", "august", "september", "oktober",    "november", "december" });      constant days = ({    "søndag","mandag","tirsdag","onsdag", "torsdag","fredag",    "lørdag" });    -  + constant implode_conjunction = "og"; +    string ordered(int i)   {    if (i%100 == 2)    return i + ":n";    return i + ":e";   }      string date(int timestamp, mapping|void m)   {    mapping t1=localtime(timestamp);
Roxen.git/server/languages/danish.pike:129:    if (num<0) {    return("minus "+_number(-num));    } if (num) {    return(_number(num));    } else {    return("noll");    }   }       - static void create() + protected void create()   {    roxen.dump( __FILE__ );   }