Auto set Thread.CurrentThread.CurrentCulture

More
7 years 7 months ago - 7 years 7 months ago #1757 by mcmorry
I have an issue with Turkish language.
C# won't do correct uppercasing until I run this code:
Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR", false);

specifically the dotless i (ı) and the i at the end in this text:
Başlangıç Paketi
should become:
BAŞLANGIÇ PAKETİ

Would be possible to execute it automatically when the language is chosen/detected, and also when clicking on the "Show" button in the list of languages?
Last edit: 7 years 7 months ago by mcmorry.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #1758 by Frank
Will add that in the next beta, thanks for the suggestion!
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The following user(s) said Thank You: mcmorry

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #1767 by mcmorry
I installed the new version b7 but I didn't find any reference in the readme.
I wanted to test it but now I have a compilation error in the ScriptLocalization file because GetTermTranslation requires one new params.
I tried to regenerate the file (Toos -> Script -> Build Script with Selected Terms) but didn't change. Is it a bug or I'm doing something wrong? (I didn't select any terms)
A put false as default and compiled, but I still have problem with Turkish language.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #1768 by Frank
Hi,

I installed the new version b7 but I didn't find any reference in the readme.


Changing the currentCulture didn't make it into b7. However, if you download 2.6.8b9 it is included!

I wanted to test it but now I have a compilation error in the ScriptLocalization file because GetTermTranslation requires one new params.


Yes, when I made b7 I didn't fully tested the scriptLocalization generation.
b9 fixes that!

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The following user(s) said Thank You: mcmorry

Please Log in or Create an account to join the conversation.

Time to create page: 0.560 seconds
Template by JoomlaShine