Expand my Community achievements bar.

I18n translation fallback

Avatar

Level 1

Hi All,

We're implementing translations using the Dictionary. Using the I18n class, we get a key and attempt to retrieve it in a provided Locale.

We're aware it always falls back to the name of the key if the translation isn't available. However, we need to log the failure somewhere.

Looking at the ResourceBundle class, it's supposed to be sending a MissingResourceException, however we're never getting it.

Do you know of a way we can log if the translation attempt failed?

Thanks in Advance.

Dipanjan

5 Replies

Avatar

Administrator

Checking internally!!



Kautuk Sahni

Avatar

Level 2

Hi,

I am also trying to get the approach for log the failure.  Anyone got any solution for this?

Regards

Sofiyan

Avatar

Level 3

trying to find similar solution.. any suggestions?