Set Locale per document or on a transform element

These locales are available in the third party library we use (Qt).

E.g. English/Netherlands is a valid locale:

https://www.localeplanet.com/icu/en-NL/index.html

Also English/Denmark:

https://www.localeplanet.com/icu/en-DK/index.html

1 Like

I was not sure how it works, when you showed the first example. On topic I had in mind that it could set the most common format used of the selected country as a suggestion in the Local To field. But this might result into philosophical discussions…

I fine with the implementation as is, only in case the Format to is adapted automatically the above example for German with ā€œ-ā€ wouldn’t be appropriate.

The default Format from is based on scanning the input dataset.

The default Format to is the first data format from the list in Preferences>Dates that is different to Format from.

So you could set your preferred format first in Preferences>Dates. It should then appear as the default.

But we are also going to be looking at improving defaults. So hopefully that will mean that is is remembered after you set it the first time.

1 Like

Was not aware of this feature. I just changed it in the preferences quite helpful. I didn’t see this in the documentation. Maybe worse to add if I haven’t overlooked it.

Experience show that the more we write, the lower % of it people read. So better for the documentation to be concise than exhaustive.

There is library method that returns the default date format for a locale. E.g. it returns dd.MM.yy for German/Germany.

We can add that at the top of the default date formats, e.g. default date formats for German/Germany:

It won’t affect existing installs though.

1 Like

Ok, Iā€˜m strange and old fashioned one :innocent::grin:

1 Like

We have modified Locale from per application to per document (.transform).

The locale set in Preferences is now the Default locale. This is the locale that will be used for newly created .transform files.

When you File>Open a .transform file, the locale will switch to the locale of that .transform file.

You can change the locale of the current .transform by selecting Edit>Locale… from the main menu or clicking the new Locale button in the status bar. The locale of the current .transform is shown in the status bar.

locale-in-statusbar-v290

This will show the Locale window.

Select the locale you want and click OK.

Save the .transform file to save the change of locale.

You will be warned each time opening a .transform file changes the locale, unless you uncheck warn on locale change in Preferences>General.

Please try it and let us know what you think:

Windows: https://www.easydatatransform.com/downloads/EasyDataTransform_2_8_1_snapshot_3.exe

Windows zip: https://www.easydatatransform.com/downloads/EasyDataTransform_Windows_2_8_1_snapshot_3.zip

Mac: https://www.easydatatransform.com/downloads/EasyDataTransform_2_8_1_snapshot_3.dmg

1 Like

There is a bug in snapshot 3 where it doesn’t apply the locale when run from the command line. This will be fixed in the production release.

1 Like

Per document locale is now available in the production version.

1 Like