NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 89 90 91 92 93 Next »
getPluginHelper() addition request

 
  • 0 Vote(s) - 0 Average
getPluginHelper() addition request
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#1
2004-04-16, 02:09 AM
Sub, could you please sneak in a new helper function for the next release?

PluginHelperFactory.getPluginHelper().GetInstallDirectory()

Which would return the directory gb-pvr is installed in.

I would like this because I want to install the weather icons under the media folder because they are not skin specific.

Thanks.
-CodeMonkey
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#2
2004-04-16, 02:21 AM
ok.
AndyCherry
Offline

Member

Posts: 137
Threads: 25
Joined: Nov 2003
#3
2004-04-16, 07:33 AM
Would it not be better to have a function

PluginHelperFactory.getPluginHelper().GetSpecialDirectory(string DirName)

using an enumeration for the string names - this way you could localise the folder names without having to change the plugin code (i.e. "media" would become "médias", "Mittel", "mezzi", "medios", etc. depending on the language of the install).

Cheers,
Andy
TypQxQ
Offline

Junior Member

Posts: 36
Threads: 9
Joined: Apr 2004
#4
2004-04-16, 08:57 AM
I don't think we should do the same mistake as Microsoft. Localizing folders was a BIG headache for them. I know that in the Swedish Windows "Program Files" is called Program. Most programs install in Program but some in "Program Files" and then the folder program would open every time you start windows.

Anyway, A Lot of people use English OS and Programs to avoid globalization problems like this.

Globalizing folders is just too much overhead for something the enduser will probably never care about.

And by the way, how would you globalize meda to Japanese? Then all directory handling must check for unicode and handle that and everything. I know .Net does much of the work, but far from all.

That's just my opinion.

If you need globalization then the first step would ba a "prefered language" setting and a pluginhelper to get it. My globalization source code for my ShutDown plugin is almost done. Just a couple of bugs left.... Will be released soon.
/Q
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#5
2004-04-16, 09:44 AM
I agree with TypQxQ. There is no point in localizing folder names. It isn't something the end user has to see or care about anyway.
-CodeMonkey
AndyCherry
Offline

Member

Posts: 137
Threads: 25
Joined: Nov 2003
#6
2004-04-16, 07:13 PM
Good point - I concede I may not have thought that through particularly before posting! [Image: tounge.gif]

Cheers,
Andy
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  API request returns xml on error scJohn 4 1,931 2020-08-25, 05:41 PM
Last Post: sub
  Waking a PC with a network request bgowland 3 2,212 2011-05-17, 10:38 AM
Last Post: doogle
  NPVR NewStyleButtonListPlugin request whurlston 4 1,994 2010-06-16, 06:49 PM
Last Post: whurlston
  PluginHelperFactory.getPluginHelper().Shutdown(); McBainUK 1 1,552 2009-03-04, 09:50 PM
Last Post: sub
  How do I request wake-up? bgowland 4 2,162 2009-02-08, 10:35 PM
Last Post: bgowland
  Video play queue request. whurlston 2 1,729 2008-12-17, 08:12 PM
Last Post: whurlston
  Suggested Addition to Skinning KingArgyle 5 2,645 2008-09-09, 04:32 PM
Last Post: PartialGestalt
  PluginHelperFactory.getPluginHelper().GetAudioPlay List sometimes returns a NULL ralphy 7 2,240 2007-11-05, 03:46 PM
Last Post: sub
  PluginHelperFactory.getPluginHelper().IsPlayListPa used returns false ralphy 1 1,244 2007-11-04, 03:21 PM
Last Post: sub
  getPluginHelper().PlayVideoFiles() - what is it expecting in the Queue? McBainUK 1 1,211 2007-09-21, 10:59 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode