Hi,
I have 2 problems with XUI. View
1) I use french words for DialogResponse: "Aujourd'hui" and "Annuler" (today and cancel in french). but for "Aujourd'hui" The word is truncated, the view is not wide enough. How to increase the size of the area
2) The months and days are in English, yet I do have the "fr.lproj" directory in the "B4i/Files/Special" directory.
if I add a call to the SetDateTimeLocale sub. I'm getting an error :
Error: Invalid value: AD20231101 000000
Error occurred on line: 68 (B4XDateTemplate)
Cannot parse: invalid date
What does this "AD" that denotes the date mean?
Thank
I have 2 problems with XUI. View
1) I use french words for DialogResponse: "Aujourd'hui" and "Annuler" (today and cancel in french). but for "Aujourd'hui" The word is truncated, the view is not wide enough. How to increase the size of the area
2) The months and days are in English, yet I do have the "fr.lproj" directory in the "B4i/Files/Special" directory.
if I add a call to the SetDateTimeLocale sub. I'm getting an error :
Error: Invalid value: AD20231101 000000
Error occurred on line: 68 (B4XDateTemplate)
Cannot parse: invalid date
What does this "AD" that denotes the date mean?
setlocale:
Sub SetDateTimeLocale (locale As String)
Dim loc As NativeObject
loc = loc.Initialize("NSLocale").RunMethod("localeWithLocaleIdentifier:", Array(locale))
Dim no As NativeObject = DateTime
no.GetField("dateFormat").SetField("locale", loc)
no.GetField("timeFormat").SetField("locale", loc)
End Sub
call setlocale:
SetDateTimeLocale("fr-FR")
Thank