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
MediaPortal 1 Plugins
myWeather translation and more
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="McMorning" data-source="post: 4993" data-attributes="member: 10459"><p>Hi Schrauber,</p><p></p><p>i never programmed in C# or worked with XML files, so i don't know who helpful my suggestions would be, but give me a try.</p><p></p><p>First i don't know how you generate the XML file with the actual weather data. If this will be generated by you it would be quite simple, but if you get the whole file in this format from weather.com you should try to alter the entries.</p><p>(Actually i don't have a file where i can copy from, so maybe my 'Code' would be fully correct, but it should clear out what i mean)</p><p>[code]<Weather></p><p> <Date>04/11/09</Date></p><p></Weather></p><p>[/code]</p><p>should be break down to:</p><p>[code]</p><p><Weather></p><p> <Date></p><p> <Year>04</Year></p><p> <Month>11</Month></p><p> <Day>09</Day></p><p> </Date></p><p></Weather>[/code]</p><p>Also those things should be done with alle words which will be in the XML file (like the AM Averses proplem showed by epoch1970).</p><p>In that case you'll get a property for every word in the Weather statement. At second you'll need a 'Translation' XML file which should something like this:</p><p>[code]<Translation></p><p> <German></p><p> <Dictionary></p><p> <Fog>Nebel</Fog></p><p> <Sunny>Heiter</Sunny></p><p> <Rain>Regen</Rain></p><p> ... or if words to difficult :)...</p><p> <1>Bewölkt</1></p><p> <2>Glatteis</2></p><p> <3>Stürmisch</3></p><p> </Dictionary></p><p></Translation>[/code]</p><p>At last there would be a second section in this XML file (or a second XML file???) which holds the format for the whole phrase like this</p><p>[code]</p><p> <German></p><p> <Format></p><p> <Date>Day.Month.Year</Date></p><p> </Format></p><p> </German></p><p>[/code]</p><p></p><p>Hopefully you understand what my intention was. The idea just tries to combine a word-by-word translation and a second section which tells you in which order the words have to be shown up. Also you would get a stable code and everyone out there can make a translation for his own language without your intervention.</p><p></p><p>Best regards,</p><p>McMorning</p></blockquote><p></p>
[QUOTE="McMorning, post: 4993, member: 10459"] Hi Schrauber, i never programmed in C# or worked with XML files, so i don't know who helpful my suggestions would be, but give me a try. First i don't know how you generate the XML file with the actual weather data. If this will be generated by you it would be quite simple, but if you get the whole file in this format from weather.com you should try to alter the entries. (Actually i don't have a file where i can copy from, so maybe my 'Code' would be fully correct, but it should clear out what i mean) [code]<Weather> <Date>04/11/09</Date> </Weather> [/code] should be break down to: [code] <Weather> <Date> <Year>04</Year> <Month>11</Month> <Day>09</Day> </Date> </Weather>[/code] Also those things should be done with alle words which will be in the XML file (like the AM Averses proplem showed by epoch1970). In that case you'll get a property for every word in the Weather statement. At second you'll need a 'Translation' XML file which should something like this: [code]<Translation> <German> <Dictionary> <Fog>Nebel</Fog> <Sunny>Heiter</Sunny> <Rain>Regen</Rain> ... or if words to difficult :)... <1>Bewölkt</1> <2>Glatteis</2> <3>Stürmisch</3> </Dictionary> </Translation>[/code] At last there would be a second section in this XML file (or a second XML file???) which holds the format for the whole phrase like this [code] <German> <Format> <Date>Day.Month.Year</Date> </Format> </German> [/code] Hopefully you understand what my intention was. The idea just tries to combine a word-by-word translation and a second section which tells you in which order the words have to be shown up. Also you would get a stable code and everyone out there can make a translation for his own language without your intervention. Best regards, McMorning [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
myWeather translation and more
Contact us
RSS
Top
Bottom