· The X Window System is faced with two major issues: Text Processing and message display. In terms of message display, before the I18N and L10N standards of libc were established, the article used the resource file (X Resources) to store the translation of messages. The penetration rate of this method is not high. Now with I18N and L10N, you can achieve the desired goal by using LC_MESSAGES.
· However, text processing is much more complicated, mainly in terms of text output and input. In the graphic interface, different characters need different fonts to be displayed. Therefore, to fully display all text symbols in a region, many different fonts are often used at the same time. Therefore, an additional FontSet is defined in the regional environment definition of X Window. Taking our zh_TW.Big5 region environment as an example, in the X Window System Using XFree86 (including GNU/Linux), our font set includes the font of A ISO8859-1, and a BIG5-0 font for displaying English and Big5 Chinese respectively. However, in other UNIX systems that use non-XFree86, the definition of the font set varies.
· With the definition of the font set, the X Window System will automatically select appropriate fonts from the font set to display each text based on the LC_CTYPE encoding identification and analysis mechanism of libc. Therefore, the X Window application does not need to know the encoding details of each language, and the font set can automatically display all the text symbols in the language. Therefore, programs can be internationalized.