Roxen.git / server / languages / catala.pike

version» Context lines:

Roxen.git/server/languages/catala.pike:2:   /* Trans by: jordi@lleida.net    * This version revised by a catalan linguist.    */   /*    * name = "Catalan language plugin ";    * doc = "Handles the conversion of numbers and dates to Catalan. You have to restart the server for updates to take effect. Translation by jordi@lleida.net, revised by a catalan linguist.";    */      inherit "abstract.pike";    - constant cvs_version = "$Id: catala.pike,v 1.7 2000/01/17 21:03:19 nilsson Exp $"; + constant cvs_version = "$Id: catala.pike,v 1.8 2000/01/17 21:13:34 nilsson Exp $";   constant _id = ({ "ca", "catala" });   constant _aliases = ({ "ca", "cat", "catala", "es_CA" });      constant months=({    "gener", "febrer", "març", "abril", "maig",    "juny", "juliol", "agost", "setembre", "octubre",    "novembre", "desembre" });      constant days = ({    "diumenge","dilluns","dimarts","dimecres",
Roxen.git/server/languages/catala.pike:24:      string ordered(int i)   {    switch(i)    {    case 1: return "1r";    case 2: return "2n";    case 3: return "3r";    case 4: return "4t";    default: -  return i+"è"; +  return i+"è";    }   }      string d_apostrof(int i)   {    switch(i)    {    case 4:    case 8:    case 10:
Roxen.git/server/languages/catala.pike:57:       if(!(m["full"] || m["date"] || m["time"]))    {    if(t1["yday"] == t2["yday"] && t1["year"] == t2["year"])    return "avui, "+ ctime(timestamp)[11..15];       if(t1["yday"]+1 == t2["yday"] && t1["year"] == t2["year"])    return "ahir, "+ ctime(timestamp)[11..15];       if(t1["yday"]-1 == t2["yday"] && t1["year"] == t2["year"]) -  return "demà, "+ ctime(timestamp)[11..15]; +  return "demà, "+ ctime(timestamp)[11..15];       if(t1["year"] != t2["year"])    return (month(t1["mon"]+1) + " " + (t1["year"]+1900));    return ( t1["mday"] + d_apostrof(t1["mon"]+1) + month(t1["mon"]+1) );    }       if(m["full"])    return ctime(timestamp)[11..15]+ " del " +    (t1["mday"]) + d_apostrof(t1["mon"]+1) + month(t1["mon"]+1)    + " de l'any " + (t1["year"]+1900);
Roxen.git/server/languages/catala.pike:130:    case 1000..1999: return "mil "+number(num%1000);    case 2000..999999: return number(num/1000)+" mil "+number(num%1000);       case 1000000..1999999:    return "un milio "+number(num%1000000);       case 2000000..999999999:    return number(num/1000000)+" milions "+number(num%1000000);       default: -  return "moltíssim"; +  return "moltíssim";    }   }