home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Changed Language System and Strings files
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="James" data-source="post: 138177" data-attributes="member: 12681"><p>The Language string system has been replaced.</p><p></p><p>The new system includes:</p><p>* New file format</p><p>* Hierarchical language support</p><p>* User defined language strings</p><p></p><p></p><p>The hierarchical system works like this:</p><p></p><p>1. User strings</p><p>2. Selected language</p><p>3. Selected language parent (if exists)</p><p>4. Default English</p><p></p><p>If the Selected language is English then steps 3 and 4 don't apply. That means that if strings are not found at the one level the strings from the next level will be used instead. </p><p></p><p>This enables the user strings file to just contain a few strings, and also if regional languages are required they do not need to be complete, but only have the differences to the parent language.</p><p></p><p>For example, if there was a string file for Swiss German it would be called <em>strings_de-CH.xml </em>and might look like:</p><p>[CODE]</p><p><?xml version="1.0" encoding="utf-8"?></p><p><Language name="Schwiizertüütsch" characters="255"></p><p> <Section name="unmapped"></p><p> <String id="11">Mäntig</String></p><p> <String id="12">Zischtig</String></p><p> <String id="13">Mittwuch</String></p><p> <String id="14">Dunschtig</String></p><p> <String id="15">Fritig</String></p><p> <String id="16">Samschtig</String></p><p> <String id="17">Sunntig</String></p><p> </Section></p><p></Language></p><p>[/CODE]</p><p></p><p>Then any strings not found here would be used from the Standard German file <em>strings_de.xml</em>. If any strings are not found there then English (<em>strings_en.xml</em>) will be used.</p><p></p><p>This means the Swiss german language file never needs to contain all the strings, but only those that are different from the Standard German file.</p><p></p><p>The same applies to the user string file <em>strings_user.xml</em>. For example if I want Sunday to be called "My Day" then the following can be used:</p><p>[CODE]</p><p><?xml version="1.0" encoding="utf-8"?></p><p><Language name="Custom" characters="255"></p><p> <Section name="unmapped"></p><p> <String id="17">My Day</String></p><p> </Section></p><p></Language></p><p>[/CODE]</p><p></p><p>Also because the <em>strings_user.xml</em> file is not in the release it will not be over written by each update. At the moment this file needs to be in the main language directory. However, in the future this should be changed.</p><p></p><p>The section name is for future use and at the moment is always "unmapped".</p><p></p><p><strong>Note: Spanish Latin users</strong> I could not convert this language file, because this is not a specific language for .NET. It needs to be linked to a language + country. For example: es-AR - Spanish (Argentina), es-CL - Spanish (Chile), etc. (see here for a list with more options: <a href="http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx</a>)</p></blockquote><p></p>
[QUOTE="James, post: 138177, member: 12681"] The Language string system has been replaced. The new system includes: * New file format * Hierarchical language support * User defined language strings The hierarchical system works like this: 1. User strings 2. Selected language 3. Selected language parent (if exists) 4. Default English If the Selected language is English then steps 3 and 4 don't apply. That means that if strings are not found at the one level the strings from the next level will be used instead. This enables the user strings file to just contain a few strings, and also if regional languages are required they do not need to be complete, but only have the differences to the parent language. For example, if there was a string file for Swiss German it would be called [i]strings_de-CH.xml [/i]and might look like: [CODE] <?xml version="1.0" encoding="utf-8"?> <Language name="Schwiizertüütsch" characters="255"> <Section name="unmapped"> <String id="11">Mäntig</String> <String id="12">Zischtig</String> <String id="13">Mittwuch</String> <String id="14">Dunschtig</String> <String id="15">Fritig</String> <String id="16">Samschtig</String> <String id="17">Sunntig</String> </Section> </Language> [/CODE] Then any strings not found here would be used from the Standard German file [i]strings_de.xml[/i]. If any strings are not found there then English ([i]strings_en.xml[/i]) will be used. This means the Swiss german language file never needs to contain all the strings, but only those that are different from the Standard German file. The same applies to the user string file [i]strings_user.xml[/i]. For example if I want Sunday to be called "My Day" then the following can be used: [CODE] <?xml version="1.0" encoding="utf-8"?> <Language name="Custom" characters="255"> <Section name="unmapped"> <String id="17">My Day</String> </Section> </Language> [/CODE] Also because the [i]strings_user.xml[/i] file is not in the release it will not be over written by each update. At the moment this file needs to be in the main language directory. However, in the future this should be changed. The section name is for future use and at the moment is always "unmapped". [b]Note: Spanish Latin users[/b] I could not convert this language file, because this is not a specific language for .NET. It needs to be linked to a language + country. For example: es-AR - Spanish (Argentina), es-CL - Spanish (Chile), etc. (see here for a list with more options: [url]http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx[/url]) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Changed Language System and Strings files
Contact us
RSS
Top
Bottom