Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The broad topic you're asking about is called "Internationalization and Localization" (or I18N and L10N for short). The important thing to remember is that it's <em>not</em> just about translating messages. There are many other things that go into internationalizing a website.</p> <p>The more obvious things you will need are:</p> <ul> <li>A character encoding that works for characters in all languages, not just English (This means everything down to the database should use UTF encoding)</li> <li>Some way of representing the user's <a href="http://en.wikipedia.org/wiki/Locale" rel="noreferrer">Locale</a> (ie: Java's <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Locale.html" rel="noreferrer">Locale</a> class)</li> <li>A common pattern for producing a message in that user's locale (ie: Spring's <a href="http://www.jarvana.com/jarvana/view/org/springframework/spring/1.2.9/spring-1.2.9-javadoc.jar!/org/springframework/context/MessageSource.html" rel="noreferrer">MessageSource</a></li> </ul> <p>Other things you need to consider:</p> <ul> <li>Properly sorting strings based on Locale</li> <li>Formatting date based on locale</li> <li>Always showing times in the user's time zone</li> <li>Showing distance measurements for the user's locale (ie: Miles versus Kilometers?)</li> <li>Laying out the website in right-to-left for languages like Hebrew</li> <li>Think about how you pluralize your messages. <code>String message = "Please fix the following error" + (errors.size() > 1 ? "s" : "");</code> just doesn't work in an internationalized program.</li> <li>Think about how to lay out your web pages when the length of text may vary wildly.. and never assume that a character is more-or-less a certain width (a single character in Kanji might be 8 times wider than a lower case 'i')</li> </ul> <p>The best resource I can find for this is the <a href="http://userguide.icu-project.org/" rel="noreferrer">ICU library's User guide</a>. If you use Java, this is the library to use.</p> <p>Hopefully this answer is a helpful start!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload