UPDATE to the original posting below:
OK, so we discovered that we can achieve the behaviour that we wanted, including ui language translation, by calling the function:
So, the only issue here is that isc.DateUtil.getDayNames() is not documented in the Reference but using the dayNames array directly is documented, see:
https://smartclient.com/smartclient-...eUtil.dayNames
Ideally, the Reference could be updated but that's a just a little detail.
Thanks
modules-debug\ISC_Core.js
Version v13.0p_2023-12-06/LGPL Development Only (2023-12-06)
Line: 22204
The isc.DateUtil.dayNames array has 8 entries? Sunday is duplicated.
Is this in error or "by design"?
These names also remain in English, even when the SmartClient UI is running under another language (ie when other descriptors in the SmartClient library are showing in a different language). Again, is this as expected?
We have some custom functionality showing a days-of-the-week selector, so it would be neat and tidy to use dayNames for that.
Many thanks
OK, so we discovered that we can achieve the behaviour that we wanted, including ui language translation, by calling the function:
Code:
isc.DateUtil.getDayNames()
https://smartclient.com/smartclient-...eUtil.dayNames
Ideally, the Reference could be updated but that's a just a little detail.
Thanks
modules-debug\ISC_Core.js
Version v13.0p_2023-12-06/LGPL Development Only (2023-12-06)
Line: 22204
Code:
dayNames: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
Is this in error or "by design"?
These names also remain in English, even when the SmartClient UI is running under another language (ie when other descriptors in the SmartClient library are showing in a different language). Again, is this as expected?
We have some custom functionality showing a days-of-the-week selector, so it would be neat and tidy to use dayNames for that.
Many thanks
Comment