T
tom forsmo
Hi
I have the following comparison problem with regards to Locale.
I need to compare two Locales and find out if they are related and which
is more specific than the other. In the same way as a ResourceBundle
finds the most specific resource property file. E.g for
locale 1: nb_NO
locale 2: NO
locale 1 is the most specific of them. locales of two unrelated
countries/languages should be treated as different locales no matter. So
locale 1: nb_NO
locale 2: UK
are different and should not be reported as that instead of locale 1
being more specific.
Any ideas if there is an implementation that does this out there?
tom
I have the following comparison problem with regards to Locale.
I need to compare two Locales and find out if they are related and which
is more specific than the other. In the same way as a ResourceBundle
finds the most specific resource property file. E.g for
locale 1: nb_NO
locale 2: NO
locale 1 is the most specific of them. locales of two unrelated
countries/languages should be treated as different locales no matter. So
locale 1: nb_NO
locale 2: UK
are different and should not be reported as that instead of locale 1
being more specific.
Any ideas if there is an implementation that does this out there?
tom