PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → How to modify day name from english to italian
How to modify day name from english to italian
Started by Gianni Spano, Apr., 11 2004 3:30 AM - 4 replies
Posted on April, 11 2004 - 3:30 AM
Hello to all
I'm evaluating Windev 7.5 US and the first approach is amazing..
I'm a Netcobol for windows user and i'm impressed about this ide, that perharps i already knew.
But, as for all users who are using the product for the first time, i don't know how to replace (Is there some configuration file?) the days name from english to italian.
I need to substitute the "Sunday" with "Domenica" and so on for other days.
Someone can help me?
Thanks in advance...
Gianni
Posted on April, 11 2004 - 10:24 AM
Hello Gianni,
number = daytointeger(DATUM)
switch number
case 1 : DAYNAME = "Montag"
case 2 : DAYNAME = "Dienstag"
..........
end
Christoph

Hello to all
I'm evaluating Windev 7.5 US and the first approach is amazing..
I'm a Netcobol for windows user and i'm impressed about this ide, that perharps i already knew.
But, as for all users who are using the product for the first time, i don't know how to replace (Is there some configuration file?) the days name from english to italian.
I need to substitute the "Sunday" with "Domenica" and so on for other days.
Someone can help me?
Thanks in advance...
Gianni
Posted on April, 12 2004 - 1:43 PM
Hello to all
I'm evaluating Windev 7.5 US and the first approach is amazing..
I'm a Netcobol for windows user and i'm impressed about this ide, that perharps i already knew.
But, as for all users who are using the product for the first time, i don't know how to replace (Is there some configuration file?) the days name from english to italian.
I need to substitute the "Sunday" with "Domenica" and so on for other days.
Someone can help me?
Thanks in advance...
Gianni

Hello Gianni,
WinDev knows French and English day names as default. You can customize all your code to Italian but not all of the builtins message.
E.g., the print preview is available in FR and EN. If you need the preview in IT you have to define your own preview window. You need WDINT if you want to have all builtins in IT . WDINT allows you to create a WDM file which you can load at the start of your app.
HTH Raimund
Posted on April, 12 2004 - 4:26 PM
Hi Gianni,
I use this global procedure:
Function MakeDayName(xDate,bFull=False)
i is int
if not dateValid(xDate)then result ""
i=IntegerToDay(DateToInteger(xDate))
if bFull then result ExtractString"maandag@dinsdag@woensdag@donderdag@vrijdag@zaterdag@zondag@",i,"@")
result ExtractString("ma@di@wo@do@vr@za@zo@",i,"@")
Use it like: DisplayDay=MakeDayName(Date,True)
MakeDayName(Date,True) returns the full name
MakeDayName(Date,False) returns an abbreviation
Regards,
Piet
Posted on April, 13 2004 - 12:47 AM
Thanks to all for your useful support.
Gianni