<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://okapiframework.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_Add_Languages_to_Rainbow</id>
	<title>How to Add Languages to Rainbow - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://okapiframework.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_Add_Languages_to_Rainbow"/>
	<link rel="alternate" type="text/html" href="http://okapiframework.org/wiki/index.php?title=How_to_Add_Languages_to_Rainbow&amp;action=history"/>
	<updated>2026-04-22T08:56:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://okapiframework.org/wiki/index.php?title=How_to_Add_Languages_to_Rainbow&amp;diff=269&amp;oldid=prev</id>
		<title>Ysavourel: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://okapiframework.org/wiki/index.php?title=How_to_Add_Languages_to_Rainbow&amp;diff=269&amp;oldid=prev"/>
		<updated>2016-06-04T23:19:57Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:19, 4 June 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Ysavourel</name></author>
	</entry>
	<entry>
		<id>http://okapiframework.org/wiki/index.php?title=How_to_Add_Languages_to_Rainbow&amp;diff=268&amp;oldid=prev</id>
		<title>Ysavourel: Reverted edits by 91.214.45.63 (talk) to last revision by Ysavourel</title>
		<link rel="alternate" type="text/html" href="http://okapiframework.org/wiki/index.php?title=How_to_Add_Languages_to_Rainbow&amp;diff=268&amp;oldid=prev"/>
		<updated>2010-11-18T01:20:27Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/index.php/Special:Contributions/91.214.45.63&quot; title=&quot;Special:Contributions/91.214.45.63&quot;&gt;91.214.45.63&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:91.214.45.63&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:91.214.45.63 (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last revision by &lt;a href=&quot;/wiki/index.php?title=User:Ysavourel&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Ysavourel (page does not exist)&quot;&gt;Ysavourel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Rainbow comes with a default list of languages and language codes, but this list is only there to provide some defaults.&lt;br /&gt;
&lt;br /&gt;
* '''You can always use a language code that is not listed in the defaults'''.&lt;br /&gt;
* You can edit the default list to add or modify it.&lt;br /&gt;
&lt;br /&gt;
The list is located in the &amp;lt;code&amp;gt;lib/shared&amp;lt;/code&amp;gt; sub-directory under the main installation directory. The file is named &amp;lt;code&amp;gt;languages.xml&amp;lt;/code&amp;gt;. When you edit it, make sure to save the file in UTF-8.&lt;br /&gt;
&lt;br /&gt;
Each language entry is stored in a &amp;lt;code&amp;gt;&amp;amp;lt;language&amp;gt;&amp;lt;/code&amp;gt; element and look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;language code='ug-CN' lcid='1152' encoding='windows-1256'&lt;br /&gt;
          macEncoding='MacArabic' unixEncoding='iso-8859-6'&amp;gt;&lt;br /&gt;
 &amp;lt;name&amp;gt;Uighur (*China)&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;/language&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Language Tags===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; attribute holds the BCP-47 language tag for the given language. BCP-47 is the standard way to represent languages in XML, HTML and many other technologies.&lt;br /&gt;
&lt;br /&gt;
A language tag is composed of one or more subtags organized according the BCP-47 specification. There is an official list of subtags.&lt;br /&gt;
&lt;br /&gt;
* BCP-47 specification: http://tools.ietf.org/html/rfc4647&lt;br /&gt;
* List of the registered language subtags: http://www.iana.org/assignments/language-subtag-registry&lt;br /&gt;
* A good overview of BCP-47: http://www.w3.org/International/articles/language-tags/&lt;br /&gt;
&lt;br /&gt;
It is recommended that you check your language tags. The following online tools are available: [http://rishida.net/utils/subtags/ Language Subtag Lookup] and [http://schneegans.de/lv/ BCP-47 validator]. &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;lcid&amp;lt;/code&amp;gt; attribute is the Microsoft LCID value for the given language. Use -1 if you do not know the proper value.&lt;br /&gt;
&lt;br /&gt;
===Encodings===&lt;br /&gt;
&lt;br /&gt;
The attributes &amp;lt;code&amp;gt;encoding&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;macEncoding&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;unixEncoding&amp;lt;/code&amp;gt; hold respectively the name of the encodings for Windows, Macintosh and Linux. (The attributes names reflect Rainbow's old heritage, don't pay attention to them). You must set the values to the encoding that support the given language in the given platform.&lt;br /&gt;
&lt;br /&gt;
The best way to use the proper encoding name is to look at what encodings are supported by your Java system. You can get the list using the command &amp;lt;cite&amp;gt;Tools&amp;lt;/cite&amp;gt; &amp;gt; &amp;lt;cite&amp;gt;List Available Encdings&amp;lt;/cite&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Name===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;&amp;amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; element holds the display name of the language. In many case it also has a region or country name associated. use the &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; to indicate which region is the default one for the LCID value.&lt;br /&gt;
&lt;br /&gt;
You can have as many entries needed to reflect the different variants of the language. It is recommended to always provide an entry for the language alone 9without region variant), and the main regional variants. You can also have differences in the scripts used for the same language.&lt;br /&gt;
&lt;br /&gt;
Example of a set of entries for a given language:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;language code='az' lcid='1068' encoding='windows-1254'&lt;br /&gt;
          macEncoding='MacTurkish' unixEncoding='iso-8859-9'&amp;gt;&lt;br /&gt;
 &amp;lt;name&amp;gt;Azerbaijani&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;/language&amp;gt;&lt;br /&gt;
&amp;lt;language code='az-AZ' lcid='1068' encoding='windows-1254'&lt;br /&gt;
          macEncoding='MacTurkish' unixEncoding='iso-8859-9'&amp;gt;&lt;br /&gt;
 &amp;lt;name&amp;gt;Azerbaijani (*Azerbaijan)&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;/language&amp;gt;&lt;br /&gt;
&amp;lt;language code='az-Cyrl-AZ' lcid='2092' encoding='windows-1251'&lt;br /&gt;
          macEncoding='MacCyrillic' unixEncoding='iso-8859-5'&amp;gt;&lt;br /&gt;
 &amp;lt;name&amp;gt;Azerbaijani (Azerbaijan, Cyrillic)&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;/language&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{NoteBox|Be aware that any change you make to the languge list in Rainbow will be lost next time you install an update.&amp;lt;br/&amp;gt;&lt;br /&gt;
If the changes are relevant to others, you should consider contributing them to the project, so they are available to all. You can use &amp;lt;cite&amp;gt;Help&amp;lt;/cite&amp;gt; &amp;gt; &amp;lt;cite&amp;gt;Send Feedback&amp;lt;/cite&amp;gt; to contact the developers.}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Rainbow]]&lt;/div&gt;</summary>
		<author><name>Ysavourel</name></author>
	</entry>
</feed>