Roxen.git / server / languages / english.pike

version» Context lines:

Roxen.git/server/languages/english.pike:1:   /* Bugs by: Per */   /*    * name = "English language plugin ";    * doc = "Handles the conversion of numbers and dates to English. You have to restart the server for updates to take effect.";    */    - string cvs_version = "$Id: english.pike,v 1.9 1999/08/30 09:33:02 per Exp $"; - string month(int num) - { -  return ({ "January", "February", "March", "April", "May", + inherit "abstract.pike"; +  + constant cvs_version = "$Id: english.pike,v 1.10 2000/01/17 21:03:19 nilsson Exp $"; + constant _id = ({ "en", "english" }); + constant _aliases = ({ "en", "eng", "english" }); +  + constant months = ({ +  "January", "February", "March", "April", "May",    "June", "July", "August", "September", "October", -  "November", "December" })[ num - 1 ]; - } +  "November", "December" });    -  + constant days = ({ +  "Sunday","Monday","Tuesday","Wednesday", +  "Thursday","Friday","Saturday" }); +  + constant languages=([ +  "ca":"catalan", +  "cs":"czech", +  "du":"dutch", +  "fi":"finnish", +  "fr":"french", +  "de":"german", +  "en":"english", +  "es":"spanish", +  "hr":"croatian", +  "hu":"hungarian", +  "it":"italian", +  "jp":"japanese", +  "mi":"maori", +  "no":"norwegian", +  "pl":"polish", +  "pt":"portuguese", +  "ru":"russian", +  "si":"slovenian", +  "sr":"serbian", +  "sv":"swedish" + ]); +    string ordered(int i)   {    switch(i)    {    case 0:    return "buggy";    case 1:    return "1st";    case 2:    return "2nd";
Roxen.git/server/languages/english.pike:121:    case 1000: case 1100..999999:    return number(num/1000)+" thousand "+number(num%1000);    case 1000001..1000099:    return number(num/1000000)+" million and "+number(num%1000000);    case 1000000: case 1000100..999999999:    return number(num/1000000)+" million "+number(num%1000000);    default:    return "many";    }   } -  - string day(int num) - { -  return ({ "Sunday","Monday","Tuesday","Wednesday", -  "Thursday","Friday","Saturday" })[ num - 1 ]; - } -  - array aliases() - { -  return ({ "en", "eng", "english" }); - } -  -  -  +