Adding Languages Bugs

More
9 years 4 months ago #330 by popcornpete
If I try to add Russian(Russia), Russian(Republic of Modova) appears in the list. Seems to be related to GoogleLanguages.LanguageMatchesFilter and the fact that the word russian contains the word russia.

I can't add regional variations of a language that I already have in my list. If I try to add Chinese(Simplified) when I already have Chinese(Traditional) in my list nothing happens. Seems to happen because LanguageSource.AddLanguage returns early because it thinks the language has already been added.

There look like bugs to me but could be caused by something that I'm doing wrong. are these known issues? is there a recommended fix?

Thanks,
Pete.

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

More
9 years 4 months ago #335 by Frank
Replied by Frank on topic Adding Languages Bugs
Hi,
That is a regression that was fixed on 2.3.1

You can fix it in your current code by adding (false) as the last parameter to the GetLanguageIndex at line 158 of the LanguageSource.cs
		public void AddLanguage( string LanguageName, string LanguageCode )
		{
			if (GetLanguageIndex(LanguageName, false)>=0)
				return;

Thanks,
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

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

Time to create page: 0.207 seconds
Template by JoomlaShine