Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
(OP)
or has that to be programmed .
I know, that sounds not international, but....
as one could transform by "set date german" it could be that a setting exists like "set cdow() german (french, italy etc.")
I did not find it.
How do you manage that?
English German
Monday - Montag
Tuesday - Dienstag
Wednesday - Mittwoch
Thursday - Donnerstag
Friday - Freitag
Saturday - Samstag
Sunday - Sonntag
January - Januar
February - Februar
March - März
April - April
May - Mai
June - Juni
July - Juli
August - August
September - September
October - Oktober
November - November
December - Dezember
I know, that sounds not international, but....
as one could transform by "set date german" it could be that a setting exists like "set cdow() german (french, italy etc.")
I did not find it.
How do you manage that?
English German
Monday - Montag
Tuesday - Dienstag
Wednesday - Mittwoch
Thursday - Donnerstag
Friday - Freitag
Saturday - Samstag
Sunday - Sonntag
January - Januar
February - Februar
March - März
April - April
May - Mai
June - Juni
July - Juli
August - August
September - September
October - Oktober
November - November
December - Dezember
Peace worldwide - it starts here...
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
I work with ARRAYS. Sketch of code below.
CODE -->
hth
MarK
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Below the code of a fully working CDOW() translation procedure. I added this method to my base form class and call it with TRCdow(dMyDate, cMyLanguageCode) - dMyDate is any date whereas cMyLanguageCode is "FR", "DE" or "LU". I have a similar method for the months.
CODE -->
hth
MarK
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Maybe, but afaik I'm not able to have all three VFP9r*.DLL (DEU, ENU, FRA) active at the same time. Furthermore there is no "VFP9rLUX". In our multi-language situation I need however the CDOW() awa the CMONTH() in English, in French, in Luxembourgish and in German.
BTW do you have a VFP9rSCO.DLL ?
MarK
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
In any case, I'm not sure if these DLLs affect the output of things like CDOW(). Perhaps they are only for things like "Yes / No / Cancel".
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
I checked, they do - but since only one VFP9r*.DLL can be active at a time, you'll have to rely on custom routines in a multi-language environment.
MarK
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Your considerations help me a lot to create a program
in which the German names for calendar days and months appear.
For me it is not a problem to live with the names that VFP offers, but this is not the case with all friends, e.g. if they never had English at school.
Stay healthy.
Klaus
Peace worldwide - it starts here...
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
hth
n
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
...
and a demo with the translated days and months. Run the code. Enjoy.
CODE -->
MarK
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
This only works in the final EXE, in the IDE cdow() uses vfp9.exe as "runtime", which returns English names and terms.
Chriss
RE: Character day of week (cdow()) or cmonth() in VFP into german -are there settings in the VFP?
Doug described another way using wwdotnetbride :
https://doughennig.blogspot.com/2021/03/getting-lo...
regards
tom