NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information NextPVR Announcements v
« Previous 1 … 3 4 5 6 7 … 11 Next »
Language translators?

 
  • 0 Vote(s) - 0 Average
Language translators?
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#11
2004-08-24, 12:38 AM
wow, thoes flags are huge! [Image: smile.gif]
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#12
2004-08-24, 12:49 AM
Yeah, I thought that too - but I decided to make them the same as the screenshots. I'll give them there own page when we get a couple more. The new page will have smaller flags!
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#13
2004-08-24, 01:35 AM
okay, hehe, it made me think the site was about a soccer match between Denmark and Sweden [Image: smile.gif] all it needs is a 2-2 result between the flags [Image: tounge.gif]
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#14
2004-08-24, 02:43 PM
Sub, how would I go about using this in the weather plugin?
Right now, the text for the button is in the .png files. Would I use a blank button and write the text (from the language.xml file) onto it for each button? Is there some method all plugins could use to generate the button image with the proper text?

There are a lot more strings that should be added to this xml file for weather to use. I will create a weather.xml file and send it to sub to post for you multi-lingual guys [Image: smile.gif].
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#15
2004-08-24, 10:33 PM
There has been a few enhancements to what GB-PVR provides in the way of plugin support clases.

The old method creating png files for the plugins still works, but I no longer use this approach. Instead I use the SkinHelper class which contains utility methods for constructing and caching buttons and other images, fonts, brushes etc. The comics plugin uses this if you're looking for an example.

For buttons you basically call:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
Hashtable buttonArgs = new Hashtable();
buttonArgs["@buttonText"] = "Play";
Image normalButtonImage = skinHelper.getNamedImage("NormalButton", buttonArgs);
[/QUOTE]
Take a look in some of the existing skin.xml files to see how the button image is 'described'.

For translations you call skinHelper.getTranslation() passing in any string you're going to display. If a translation exists, it is returned - otherwise the original string is returned.
e.g.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">g.DrawString(skinHelper.getTranslation("Genre") + ":", ...[/QUOTE]
Exirion
Offline

Junior Member

Posts: 5
Threads: 2
Joined: Aug 2004
#16
2004-08-25, 07:51 AM
MaBo says he will take care of the Dutch translation, but I'm also very willing to do that. Would a Greek translation be interesting? I could ask my girlfriend [Image: smile.gif]
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#17
2004-08-25, 08:13 AM
here is a new translation: german.
just download it from here
---------------------
www.sitecomposer.de
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#18
2004-08-25, 05:45 PM
Thanks dottore, I've added it to the plugins page.

Keep 'em coming guys.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#19
2004-08-25, 09:10 PM
[b Wrote:Quote[/b] (sub @ Aug. 24 2004,13:33)]The old method creating png files for the plugins still works, but I no longer use this approach. Instead I use the SkinHelper class which contains utility methods for constructing and caching buttons and other images, fonts, brushes etc. The comics plugin uses this if you're looking for an example.

For buttons you basically call:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
Hashtable buttonArgs = new Hashtable();
buttonArgs["@buttonText"] = "Play";
Image normalButtonImage = skinHelper.getNamedImage("NormalButton", buttonArgs);
Take a look in some of the existing skin.xml files to see how the button image is 'described'.

For translations you call skinHelper.getTranslation() passing in any string you're going to display. If a translation exists, it is returned - otherwise the original string is returned.
e.g.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">g.DrawString(skinHelper.getTranslation("Genre") + ":", ...[/QUOTE][/QUOTE]
Actually that getnamedImage stuff for buttons is not used in the comic plugin as far as I can see. Which makes sense because there are no buttons for that plugin [Image: smile.gif]

But in theory I could do this I assume:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Hashtable buttonArgs = new Hashtable();
buttonArgs["@buttonText"] = skinHelper.getTranslation("Map");
Image normalMapButtonImage = skinHelper.getNamedImage("NormalButtonImage", buttonArgs);[/QUOTE]

Then redo the wetaher plugin code so that it has skin.xml similar to what the comic plugin uses.
-CodeMonkey
MaBo
Offline

Senior Member

Posts: 346
Threads: 58
Joined: Dec 2003
#20
2004-08-30, 08:03 AM
The Dutch version is ready. Well, last night, I realised that I did not translate available, failed and scheduled in the recordings menu. You see, I based my translation on the danish one and these terms were not there.

langauge.xml.nl

Will do that later.

Any comments are appreciated,
Greetz,
MaBo
ASUS pundit, pvr 350, celeron 2600, 512 MB, 160GB HD, winXP Pro, 12" touchscreen
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode