Variable Today Localization

Stimulsoft Reports.JS discussion
Post Reply
jimyWeb
Posts: 42
Joined: Wed Feb 03, 2016 8:08 am

Variable Today Localization

Post by jimyWeb »

I format date with the next result:

{Today.ToString("dddd, dd MMMM yyyy")} = Wenesday, 03 February 2016

But I need the day of the week and the month in spanish language.

I use the localization file: es.xml and in the file contents there are:
<DayFriday>Viernes</DayFriday>
<DayMonday>Lunes</DayMonday>
<DaySaturday>Sábado</DaySaturday>
<DaySunday>Domingo</DaySunday>
<DayThursday>Martes</DayThursday>
<DayTuesday>Jueves</DayTuesday>
<DayWednesday>Miércoles</DayWednesday>
<MonthApril>Abril</MonthApril>
<MonthAugust>Agosto</MonthAugust>
<MonthDecember>Diciembre</MonthDecember>
<MonthFebruary>Febrero</MonthFebruary>
<MonthJanuary>Enero</MonthJanuary>
<MonthJuly>Julio</MonthJuly>
<MonthJune>Junio</MonthJune>
<MonthMarch>Marzo</MonthMarch>
<MonthMay>Mayo</MonthMay>
<MonthNovember>Noviembre</MonthNovember>
<MonthOctober>Octubre</MonthOctober>
<MonthSeptember>Septiembre</MonthSeptember>
Hovewer the date is not translated.

Thanks for you help!
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Today Localization

Post by HighAley »

Hello.

Unfortunately, it's impossible now.
We are working on adding localization features.
Please, follow our updates.

Thank you.
gegar
Posts: 31
Joined: Thu Dec 27, 2018 5:12 pm

Re: Variable Today Localization

Post by gegar »

Hello

I have the same example

The last version: 2019.3

{Today.ToString("dddd, dd MMMM yyyy")} = Thursday, June 06, 2019 12:00 AM

I use the localization file: es.xml

// Load and design report
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("localization/es.xml", true);
date.jpg
date.jpg (84.67 KiB) Viewed 1191 times
Why?

Thanks for your help.
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Variable Today Localization

Post by Lech Kulikowski »

Hello,

These values depend from the system localizations, not from load localization file.

Thank you.
Post Reply