Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ellfish"

Ah, ok, that makes sense. Thanks again for getting back to me!

Following up on this in case anyone else has the same problem:

The ApplicationLanguage (stored in the AbpLanguages table) should not be changed from "en" to "en-AU" or similar. I had originally changed this is the AbpLanguages table and in my embedded localization xml file (see original post).

It's a problem because this affects which texts the ABP framework attempts to load from it's own embedded localization files (eg AbpWeb.xml). Because my language was en-AU, no texts were loaded because there were no en-AU xml files, only en files. I noticed this because suddenly the "AreYouSure" text was no longer being localized (via abp.sweet-alert.js).

I know I could compile my own version of ABP with an embedded en-AU file but that's a bit of a maintenance problem for future updates.

Note that it is still safe to override Application_BeginRequest to override the CurrentCulture and CurrentUICulture to en-AU, and this still solves the problem I had.

@hikalkan you might want to think about this, because if someone wants to add another language to Zero it seems the dependencies on abp.localization.abpWeb will prevent localization of those texts.

Thanks for the super speedy response! I basically want to offer my application in en-AU by default and disable language selection because it's too hard to maintain translations.

I didn't realise the cookie was being used to set the culture, thanks for pointing that out. I had tried searching the Zero repo but forgot about the ABP repo.

My problem was that I removed the language select drop-down but the cookie was still set to "en", and without the drop-down there was no way to update the cookie to the new en-AU language. I've resolved it by overriding Application_BeginRequest.

Cheers!

Showing 1 to 3 of 3 entries