MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2005-09-26, 08:25   #1 (permalink)
Portal Member
 
Join Date: May 2005
Location: Stockholm, Sweden
Posts: 147
Thanks: 5
Thanked 1 Time in 1 Post


Default Translation problem - english words hardcoded!

After working with a swedish translation of prerelease 0.2.0.0 of MP I realized that some words in the UI cannot be referenced in the stings file. It seems like these are hardcoded into the software. I am not a programmer so I do not know the technicalities but the words are not to find in the strings file and therefore cannot be translated.

One example is the word "Teletext" (Text-TV in swedish) in the main menue och My TV. Another is the textstrings "NOW:" and "NEXT:" that can't be changed.

Can someone more involved in the programming enlighten me here? Have I done something wrong or are parts of the application written in a way that can't be translated? If so it would be really nice if someone could clean the code up and move these english words to the strings-file instead.
kamrat is offline   Reply With Quote
Old 2005-09-26, 11:25   #2 (permalink)
Portal Member
 
MrMad's Avatar
 
Join Date: May 2005
Location: Göteborg
Age: 33
Posts: 172
Thanks: 6
Thanked 36 Times in 17 Posts

Country:

My System

Send a message via MSN to MrMad
Default

You have done nothing wrong. In the teletext case it seems that the value is hardcoded in the skins.
For example you can look in the mytvhome.xml file in mediaportal\skin\BlueTwo directory and you will see it hardcoded to Teletext instead of a number (<label>Teletext</label>).
MrMad is offline   Reply With Quote
Old 2005-09-26, 11:32   #3 (permalink)
Portal Member
 
Smirnuff's Avatar
 
Join Date: Dec 2004
Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post

My System

Default

There are instances of hard-coded strings and it sure would be nice to get rid of them so please finish what kamrat has started by using this thread to notify us of them so that we can go about fixing them in the least destructive way.

It might be wise to wait until after 0.2 is released before making any changes but that shouldn't stop us from using this thread in the meantime to prepare as much info on what needs changing.

Cheers,
Smirnoff.
Smirnuff is offline   Reply With Quote
Old 2005-09-26, 15:03   #4 (permalink)
Portal Member
 
Join Date: May 2005
Location: Stockholm, Sweden
Posts: 147
Thanks: 5
Thanked 1 Time in 1 Post


Default

Okey - that sounds great. I'll make a list as soon as I find the time.
kamrat is offline   Reply With Quote
Old 2005-10-17, 22:28   #5 (permalink)
Portal Member
 
Join Date: May 2005
Location: Stockholm, Sweden
Posts: 147
Thanks: 5
Thanked 1 Time in 1 Post


Default

Ok! I've taken some time to look through the menues of 0.2.0.0 with a CVS from the 14:th of october.

Apart from the problems mentioned above in this thread most hard coded strings seem to be in the new settings section. Here is a list of what I have found. The biggest annoyances are of course the things in my tv and tv-guide.


"NOW:
NEXT:" (When changing channel)

"Teletext" (in my TV)

"Time Interval" (TV-guide)

There is a single "." inserted after the date and before the month in the home screen.

"Setup Wizard" (Settings screen)

"Repeat/loop slideshows" (Settings/My pictures)
"Auto Shuffle slideshow" (Settings/My pictures)

"Aspect ratio" (Settings/My movies)
"Aspect ratio" (Settings/My movies)

"Aspect ratio" (Settings/My TV)
"Timeshift buffer" (Settings/My TV)
"Auto turn on TV" (Settings/My TV)
"Recording options" (Settings/My TV)
"Channel sorting" (Settings/My TV)

And finally - in version 0.2.0 there is a new feature showing the cathegory of television shows (sports, film and more). These are only shown in english and do not show up as missing in the language strings. I don't know if these are part of the software or part of the downloaded guide-data.

I hope I have contributed to cleaning up the code in this aspect. Please let me know if there is anything else I can do.

If anyone else finds more problems please post them in this thread.
kamrat is offline   Reply With Quote
Old 2005-10-20, 08:32   #6 (permalink)
Portal Member
 
Join Date: Oct 2005
Location: Poland
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by kamrat
...
And finally - in version 0.2.0 there is a new feature showing the cathegory of television shows (sports, film and more). These are only shown in english and do not show up as missing in the language strings. I don't know if these are part of the software or part of the downloaded guide-data.
...
Which databese do you use - IMDB?? I think that this cathegory name is taken directly from IMDB site.

Do you have any tool to translate form ENG to SWE ??
dragongc is offline   Reply With Quote
Old 2005-10-24, 22:02   #7 (permalink)
Portal Member
 
wortelsoft's Avatar
 
Join Date: May 2005
Location: Rotterdam, The Netherlands
Age: 32
Posts: 374
Thanks: 1
Thanked 1 Time in 1 Post


Default

In the my weather part there are also a lot of hard coded words. Wind directions, uv index etc.
wortelsoft is offline   Reply With Quote
Old 2005-11-02, 08:21   #8 (permalink)
Portal Member
 
Join Date: May 2005
Location: Stockholm, Sweden
Posts: 147
Thanks: 5
Thanked 1 Time in 1 Post


Default

Quote:
Quote:
kamrat wrote:

...
And finally - in version 0.2.0 there is a new feature showing the cathegory of television shows (sports, film and more). These are only shown in english and do not show up as missing in the language strings. I don't know if these are part of the software or part of the downloaded guide-data.
...

Which databese do you use - IMDB?? I think that this cathegory name is taken directly from IMDB site.

Do you have any tool to translate form ENG to SWE ??
I am using the standard XML-Scheduler. All other information about the programs are in swedish and do not need translation. Note that I am talking about the TV-guide, not the downloaded properties of a DVD from IMDB.
kamrat is offline   Reply With Quote
Old 2005-11-02, 20:36   #9 (permalink)
Portal Member
 
Join Date: Oct 2005
Location: Poland
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by kamrat
Quote:
Quote:
kamrat wrote:

...
And finally - in version 0.2.0 there is a new feature showing the cathegory of television shows (sports, film and more). These are only shown in english and do not show up as missing in the language strings. I don't know if these are part of the software or part of the downloaded guide-data.
...

Which databese do you use - IMDB?? I think that this cathegory name is taken directly from IMDB site.

Do you have any tool to translate form ENG to SWE ??
I am using the standard XML-Scheduler. All other information about the programs are in swedish and do not need translation. Note that I am talking about the TV-guide, not the downloaded properties of a DVD from IMDB.
I missunderstood you. Sorry.
dragongc is offline   Reply With Quote
Old 2005-11-02, 21:20   #10 (permalink)
Portal Member
 
tklon's Avatar
 
Join Date: Sep 2004
Location: Germany
Age: 43
Posts: 311
Thanks: 4
Thanked 0 Times in 0 Posts

Country:

My System

Default

Quote:
Originally Posted by kamrat
There is a single "." inserted after the date and before the month in the home screen.
Did you try getting rid of the dot in the plugins section of the config app. You can change the date time settings for the home plugin there.

There are 2 default settings for date/time, but you can also build your own format.
tklon is offline   Reply With Quote
Reply

Bookmarks

Tags
english, hardcoded, translation, words

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio CD + MP3 via SP/DIF Digital Out? (_NOT_ AC3 passthrough problem) codeeater Installation, configuration support 2 2006-12-13 14:04
TV function not running properly kermit5 General Support 21 2006-10-03 08:12
I want to update translation for my language but... NLS MediaPortal 1 Talk 9 2006-05-06 23:56
Stuttering DVB-C radio - soundcard problem BugsBunny General Support 0 2006-05-05 21:10
Problem with TV-channel that got dual audiotrack (default/AC-3) bigal 0.2.0.0 Release Candidate 2 CVS Bugs 0 2006-03-02 13:02


All times are GMT +1. The time now is 11:14.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress