5 ms·
OP, what does this line do? if (wn == 1) pwn = '1-ին շաբաթ'; It looked like something related to week number; looks interesting.
by libria 15y ago
OP, what does this line do?
if (wn == 1) pwn = '1-ին շաբաթ';
It looked like something related to week number; looks interesting.
- sushimako 15y agoGoogle Translate says it's Armenian and means "1st week"
- Aramgutang 15y agoIn a fuller context: if(p_wn=='hy'){if(wn==1)pwn='1-ին շաբաթ';else pwn=wn+'-րդ շաբաթ'} So if the locale is "hy" (Armenian), and the week number is one, set the string to "1st week", else set the string to "#th week" (both in Armenian). Unlike English, which also has exceptions for "2nd" and "3rd", Armenian only uses a different suffix for "1st".