|
|
|||||||
Is there a way to display @day and @month in other language than english, I went around the problem by defining a variable for $day and $month and set them to something weird and doing a series of if which is not pretty. Code: CLS ? ? $day="blabla" $month="blabla" If @DAY = "Monday" $day = "Lundi" EndIf If @DAY = "Tuesday" $day = "Mardi" EndIf If @DAY = "wednesday" $day = "Mercredi" EndIf If @DAY = "thursday" $day = "Jeudi" EndIf If @DAY = "Friday" $day = "Vendredi" EndIf If @DAY = "Saturday" $day = "Samedi" EndIf If @DAY = "Sunday" $day = "Dimanche" EndIf If @MONTH = "january" $month = "janvier" EndIf If @MONTH = "february" $month = "Février" EndIf If @MONTH = "march" $month = "mars" EndIf If @MONTH = "april" $month = "avril" EndIf If @MONTH = "may" $month = "mai" EndIf If @MONTH = "june" $month = "juin" EndIf If @MONTH = "july" $month = "juillet" EndIf If @MONTH = "august" $month = "août" EndIf If @MONTH = "september" $month = "septembre" EndIf If @MONTH = "october" $month = "octobre" EndIf If @MONTH = "november" $month = "novembre" EndIf If @MONTH = "december" $month = "décembre" EndIf If $month= "blabla" $month= @MONTH EndIf If $day= "blabla" $day= @DAY EndIf Color g+/n ? "=================================================================" ? "Bienvenue sur le réseau de notre entreprise." ;? "Today is " + @DAY + ", " + @MONTH + " " + @MDAYNO + "." ? "Aujourd'hui nous sommes " "" + $day + " le " + @MDAYNO + " " + $month |
||||||||
|
|
|||||||
thought it would be localized anyways, to shorten your current code: Code: $days = "","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche" $curdayname=$days[@wdayno] |
||||||||
|
|
|||||||
Originally Posted By: cividan ...which is not pretty. |
||||||||
|
|
|||||||
that would be nice. I've been embarrassed by some of the earliest posts I made... and some newer ones too |
||||||||
|
|
|||||||
Maybe one day I will laught at this but for now I'm too happy to receive help in my baisc programming mind to think about that. Thanks for the code I will test and come back with feedback! |