📜 ⬆️ ⬇️

How not to be dishonored with localization and internationalization

On the subject of this article, I got a story from a very recent past. I went to the product page, called Supersite, of the company We Will Not Poke LLC (but people from the domainer industry will find out). I came from my cozy office in Latvia and was surprised to find the following picture:


And, to put it mildly, I was embarrassed by the currency in which the cost of services was indicated. After all, the second half of 2018 is in the yard, and the Latvian lat officially ceased to exist in January 2014 and was replaced by the euro. And for 4 years the company not mentioned above did not bother to conduct an audit of the locales used.

Under the cut, I will tell you what to remember when internationalizing and localizing your product and where to draw data for periodic revisions.

Definitions


It will be logical to understand at the beginning what is what and agree on what we will call what we will do in the future. So…
')

Why do you need it?


Good question. Many modern programming languages ​​contain built-in algorithms for basic localization (formatting dates, numbers, currencies). And if you don’t care, you are fully prepared to trust the technology you have chosen, and you don’t care about your users. Your i18n vision for your product does not go beyond this, the only possible reason is idle curiosity and general development.

However, the devil is in the details. And sometimes these little things do not pay attention, which can be annoying to users. If you already have a solid experience in i18n, most likely you will find little new in this article (unless some real life examples). In this case, I will be grateful if you add comments from your experience (and correct me if I am mistaken about something). The rest, I hope, will find food for thought.

What aspects does the locale include?


Often the locale is defined as a combination of language and country. These parameters are enough to set the set of linguistic nuances and other parameters used in the region. Some specific tasks may require more complex divisions (for example, tax jurisdictions of some countries). In this case, the third parameter is also specified - variation (for example, for a specific region, operating system, etc.). Also, much depends on how close you want to be to your user (for example, in the Philippines there are 12 indigenous languages ​​with more than a million speakers, they would be pleased).

So what does the locale include?

Popular and obvious


Formatting most of the parameters from this group provides, perhaps, the majority of modern programming languages. Although it is better to keep a close eye on them just in case. Or at least in time to update the versions of the corresponding libraries.


Less obvious


Some data related to i18n are used quite often, but sometimes with small omissions. There a programming language will not help you, you have to work with pens.


More rare options


Aspects of i18n from this category most of you are unlikely to ever need. But it may still be useful to have them in mind.


Where to get information?


In the text of the article I gave links to Wikipedia, but we all know that using it as a serious source of knowledge is not worth it. Fortunately, there is a Common Locale Data Repository project ( Common Locale Data Repository ) supported by the Unicode Consortium . Not only does it contain an incredible amount of aspects and locale settings and is regularly updated by the community, the data is available for free download in XML format, which allows for the correct development of the architecture to regularly and painlessly update the standards.

I touched on only the main aspects in my opinion. If you think that I missed something, write in the comments, add. At the same time share your experience with localized products.

Thank you for staying with us. Do you like our articles? Want to see more interesting materials? Support us by placing an order or recommending to friends, 30% discount for Habr users on a unique analogue of the entry-level servers that we invented for you: The whole truth about VPS (KVM) E5-2650 v4 (6 Cores) 10GB DDR4 240GB SSD 1Gbps from $ 20 or how to share the server? (Options are available with RAID1 and RAID10, up to 24 cores and up to 40GB DDR4).

VPS (KVM) E5-2650 v4 (6 Cores) 10GB DDR4 240GB SSD 1Gbps until December for free if you pay for a period of six months, you can order here .

Dell R730xd 2 times cheaper? Only we have 2 x Intel Dodeca-Core Xeon E5-2650v4 128GB DDR4 6x480GB SSD 1Gbps 100 TV from $ 249 in the Netherlands and the USA! Read about How to build an infrastructure building. class c using servers Dell R730xd E5-2650 v4 worth 9000 euros for a penny?

Source: https://habr.com/ru/post/427641/


All Articles