IronOS icon indicating copy to clipboard operation
IronOS copied to clipboard

Problem In Understanding Language Code UK

Open onxblog opened this issue 1 year ago • 4 comments

We currently have a translation file named translation_UK.json, which is intended for Ukrainian language content. However, the abbreviation 'UK' is incorrect; it typically refers to the United Kingdom. Instead, we should use 'UA' to represent Ukraine. 'UA' is the appropriate abbreviation, akin to the domain zone 'UA', and universally recognized by software applications to denote content related to Ukraine. Therefore, we need to replace all instances of 'UK' with 'UA'.

onxblog avatar Feb 09 '24 13:02 onxblog

@onxblog I believe they follow ISO-639 language codes, as per https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?iso_639_1=uk

agatti avatar Feb 10 '24 15:02 agatti

@onxblog Please refer to the following PR for reference: #407

discip avatar Feb 10 '24 18:02 discip

Oh, I see. In my opinion, it would be better to use ISO 639-2 for this purpose. In this case, Windows utilizes ISO 639-2, which focuses on languages rather than countries, making it more universally understood. The first thing that comes to mind when seeing two letters like UK is the top-level domain.

onxblog avatar Feb 10 '24 19:02 onxblog

Just for the information: as far as I understand, even in ISO 639-2 it's not ua either.

ia avatar Feb 11 '24 02:02 ia

So, in case if no one's mind, I guess this should be closed. Key takeaway: [in discussion's context] ua is internet domain, uk is language code. I perfectly understand that it may be counter-intuitive but that's how it is according to the standards.

ia avatar Mar 26 '24 09:03 ia