Functie: nume luna

Lasă un comentariu

19 Decembrie 2013 de liviustoica55


/* Month name in local */

#define.RO(„EN-ZA”)

static MonthName monthNumberToName(Months _num, LanguageId _languageId = #RO)

{

#define.january(1)

#define.february(2)

#define.march(3)

#define.april(4)

#define.may(5)

#define.june(6)

#define.july(7)

#define.august(8)

#define.september(9)

#define.october(10)

#define.november(11)

#define.december(12)

 

MonthName ret;

Label label = _languageId ? new Label(_languageId) : new Label();

 

switch (_num)

{

case #january :

ret = label.extractString(literalStr(„@SYS24776”));

break;

 

case #february :

ret = label.extractString(literalStr(„@SYS24777”));

break;

 

case #march :

ret = label.extractString(literalStr(„@SYS24778”));

break;

 

case #april :

ret = label.extractString(literalStr(„@SYS24779”));

break;

 

case #may :

ret = label.extractString(literalStr(„@SYS24780”));

break;

 

case #june :

ret = label.extractString(literalStr(„@SYS24781”));

break;

 

case #july :

ret = label.extractString(literalStr(„@SYS24782”));

break;

 

case #august :

ret = label.extractString(literalStr(„@SYS24783”));

break;

 

case #september :

ret = label.extractString(literalStr(„@SYS24784”));

break;

 

case #october :

ret = label.extractString(literalStr(„@SYS24785”));

break;

 

case #november :

ret = label.extractString(literalStr(„@SYS24786”));

break;

 

case #december :

ret = label.extractString(literalStr(„@SYS24787”));

break;

 

default :

throw error(strFmt(„@SYS54195”,funcName()));

}

 

return ret;

}

Lasă un răspuns

Completează mai jos detaliile despre tine sau dă clic pe un icon pentru autentificare:

Logo WordPress.com

Comentezi folosind contul tău WordPress.com. Dezautentificare / Schimbă )

Poză Twitter

Comentezi folosind contul tău Twitter. Dezautentificare / Schimbă )

Fotografie Facebook

Comentezi folosind contul tău Facebook. Dezautentificare / Schimbă )

Fotografie Google+

Comentezi folosind contul tău Google+. Dezautentificare / Schimbă )

Conectare la %s

%d blogeri au apreciat asta: