Page 1 of 2
DayOfWeek
Posted: Sun Feb 02, 2014 6:41 pm
by hugo
Seems that the function DayOfWeek is missing his implementation.
Would be nice to have it's support for several languages including EN, PT, PTBR.
Re: DayOfWeek
Posted: Mon Feb 03, 2014 2:06 pm
by HighAley
Hello.
Please, send us translations of all months. Do you need an additional parameter which will allow to set case of first letter?
Thank you.
Re: DayOfWeek
Posted: Mon Feb 03, 2014 10:00 pm
by hugo
PT (starting on Monday):
Segunda-feira
Terça-feira
Quarta-feira
Quinta-feira
Sexta-feira
Sábado
Domingo
PT-BR (starting on Monday):
segunda-feira
terça-feira
quarta-feira
quinta-feira
sexta-feira
sábado
domingo
An extra parameter to set the case would be nice, yes.
Re: DayOfWeek
Posted: Tue Feb 04, 2014 10:16 am
by HighAley
Hello.
Could you explain how this extra parameter should work with both languages? Is it possible to start with lower case in PT language or in PT-BR only?
Thank you.
Re: DayOfWeek
Posted: Tue Feb 04, 2014 3:13 pm
by hugo
Hello,
The standard case for days of week for PT-PT is upper and for PT-BR is lower. It's the only difference.
However it's possible to have days of week in PT-PT text in lower-case (it's not so usual but it's also correct).
With PT-BR it's also possible to have upper if it's the start of a sentence.
I would say that PT-PT starts with upper by default and PT-BR with lower by default. An extra parameter will change the case of the default.
This extra parameter will be only an extra. It's not so important.
Another possibility would be to have only one function DayOfWeekPt that returns days of week in PT-PT and one extra parameter to put in lower case. I think that this also can solve the problem with the minium effort.
Regards,
Hugo.
Re: DayOfWeek
Posted: Wed Feb 05, 2014 1:41 pm
by HighAley
Hello.
We have added next functions:
Code: Select all
DayName(DataSource.DateColumn, Culture)
DayName(DataSource.DateColumn, Culture, UpperCase)
Where culture could be "PT-PT" or "PT-BR" and third parameter is boolean.
Thank you.
Re: DayOfWeek
Posted: Wed Feb 05, 2014 4:16 pm
by hugo
Thank you.
This function will contribute to make my model layer simpler.
Re: DayOfWeek
Posted: Thu Feb 06, 2014 5:24 am
by HighAley
Hello.
Good. Let us know if you need any additional help.
Thank you.
Re: DayOfWeek
Posted: Mon Feb 10, 2014 10:31 pm
by hugo
Hello,
The current public build still don't support this so I guess will be available latter, right ?
Thank you,
Hugo.
Re: DayOfWeek
Posted: Tue Feb 11, 2014 6:28 am
by HighAley
Hello.
Sorry, due to technical reasons we didn't include this function i our previous prerelease build. It will be available in our next build on February 14.
Thank you.