4 ms·
We are using IDs on our website instead of hard-coded variables. It causes no end of problems. A non-exhaustive list: 1. Using variables to put numbers in the
by lucumo 17y ago
We are using IDs on our website instead of hard-coded variables. It causes no end of problems. A non-exhaustive list:
1. Using variables to put numbers in the string. Singular and plural are not always only two options. Rules in this regard can get quite complex. gettext has this solved by using rules: n%2 == 0? Use A. n==0? Use B. n%2 == 1? Use C. etc. That should give you an idea about complexity.
2. Replacing words into the string is nearly impossible due to declensions.
3. Names. When using a different script, will the name be transliterated? Do the names need to be inflected? Will they be handled correctly when changing writing direction?
3a. Names have a whole load of problems anyway. The "given name" isn't always the first name. The surname isn't always the most important one. Some people don't have family names, some people have two or more. Some people have double-barrelled given names. Etc.
4. Ordinals differ greatly from language to language.
5. String length can mess up your layout. A good translator can help by using different idiom, but sometimes it's just not possible.
6. Layout expectations are different when the writing system is right-to-left. You also need to learn the details of Unicode's direction algorithm, because you will encounter situations where it doesn't work properly without guidance.
These are just some problems we've actually encountered when using multiple languages.
- tseabrooks 17y agoDisclaimer: I'm don't do any web software at all, I work on embedded devices. We use IDs and I've not seen too many of the problems you mention. I will, however, agree that the string length can cause serious problems for a layout. We tend towards using very flexible UI designs where the UI elements resize and reposition themselves a long with the strings. However, UI design isn't as stylish for embedded devices so we get let off easy here. One of the biggest problems we have with our newer developers is that they don't know how to write their UIs so that they can easily re-arrange themselves for our various languages. Also, the Left and Right layout changes are all part of our look and feel engine. I wonder if some of these problems are specific to web applications and some of the 'fancier' UI designs that we don't use? I don't actually know enough about the differences between the two to say.
- oikujhgfvg 17y agoYou don't even need to go outside English for some of these to be a problem, What letter does the name Van der Waals sort under? What about D'Arcy Does McKay come before MacKay ? Is 7-4-09 an American holiday or a week after April fools?