Re: [Xbmc-addons] [GIT Pull] Wiener Linien

2013-10-01 Thread Martijn Kaijser
updated


On Tue, Oct 1, 2013 at 3:25 PM, Daniel Weidacher <
daniel.weidac...@lowfidelity.at> wrote:

>
>   *addon -   plugin.program.wienerlinien
>   *version - 0.1.1
>   *url -https://github.com/s0faking/plugin.program.wienerlinien
>   *revision - f60cd41d4c
>   *branch - master
>   *xbmc version - frodo
>
> fixed the encoding error when german language is active.
>
> Cheers,
> sofaking
>
>
>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> ___
> Xbmc-addons mailing list
> Xbmc-addons@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xbmc-addons
>



-- 
regards,
Martijn Kaijser
Team XBMC
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk___
Xbmc-addons mailing list
Xbmc-addons@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xbmc-addons


[Xbmc-addons] Plugins branch, frodo, updated. f496e81cb0fdbdd14bf0c48630d9759e077a4d8d

2013-10-01 Thread Martijn Kaijser
The branch, frodo has been updated
   via  f496e81cb0fdbdd14bf0c48630d9759e077a4d8d (commit)
  from  f78bd3153066cff3ea183d215b6fc27f22f66372 (commit)

- Log -
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=f496e81cb0fdbdd14bf0c48630d9759e077a4d8d

commit f496e81cb0fdbdd14bf0c48630d9759e077a4d8d
Author: Martijn Kaijser 
Date:   Tue Oct 1 15:34:06 2013 +0200

[plugin.program.wienerlinien] 0.1.1

diff --git a/plugin.program.wienerlinien/addon.xml 
b/plugin.program.wienerlinien/addon.xml
index d499a63..5068a9b 100755
--- a/plugin.program.wienerlinien/addon.xml
+++ b/plugin.program.wienerlinien/addon.xml
@@ -1,5 +1,5 @@
 
-
+
 
 

diff --git a/plugin.program.wienerlinien/changelog.txt 
b/plugin.program.wienerlinien/changelog.txt
index bbd0417..8e8b95e 100755
--- a/plugin.program.wienerlinien/changelog.txt
+++ b/plugin.program.wienerlinien/changelog.txt
@@ -1,7 +1,11 @@
+0.1.1
+
+* fixed Translation Error (German) 
+
 0.1.0
 
 * Access Live data from open.wien.at
 * List Stations
 * Search by Stations
 * Favourites
-* Show Failures
\ No newline at end of file
+* Show Failures
diff --git a/plugin.program.wienerlinien/default.py 
b/plugin.program.wienerlinien/default.py
index 3b32d7a..625bfb7 100755
--- a/plugin.program.wienerlinien/default.py
+++ b/plugin.program.wienerlinien/default.py
@@ -22,7 +22,7 @@ except:
 cache = StorageServer.StorageServer("plugin.program.wienerlinien", 99)
 
 
-version = "0.1.0"
+version = "0.1.1"
 plugin = "WienerLinien-" + version
 author = "sofaking"
 
@@ -52,10 +52,10 @@ urllib.urlretrieve(positions_url, positionpath)
 
 
 def getMainMenu():
-addDirectory(translation(3),"","searchStation")
-addDirectory(translation(30001),"","getFavorites")
-addDirectory(translation(30002),"","getMonitor")
-addDirectory(translation(30003),"","getFailures")
+addDirectory((translation(3)).encode("utf-8"),"","searchStation")
+addDirectory((translation(30001)).encode("utf-8"),"","getFavorites")
+addDirectory((translation(30002)).encode("utf-8"),"","getMonitor")
+addDirectory((translation(30003)).encode("utf-8"),"","getFailures")
 xbmcplugin.setContent(pluginhandle,'episodes')
 xbmcplugin.endOfDirectory(pluginhandle)
 
@@ -118,7 +118,7 @@ def getStationPositions(haltestellen_id):
 def notFound():
 parameters = {"title" : translation(30004),"mode" : "notFound"}
 u = sys.argv[0] + '?' + urllib.urlencode(parameters)
-
liz=xbmcgui.ListItem(translation(30004),iconImage=os.path.join(basepath,"icon.png"))
+
liz=xbmcgui.ListItem((translation(30004)).encode("utf-8"),iconImage=os.path.join(basepath,"icon.png"))
 liz.setProperty('IsPlayable', 'false')
 
xbmcplugin.addDirectoryItem(handle=pluginhandle,url=u,listitem=liz,isFolder=True)
 xbmcplugin.setContent(pluginhandle,'episodes')
@@ -126,7 +126,7 @@ def notFound():
 xbmcplugin.endOfDirectory(pluginhandle)
 
 def searchStation():
-addDirectory(translation(30005),"","searchStationResult")
+addDirectory((translation(30005)).encode("utf-8"),"","searchStationResult")
 cache.table_name = "searchhistory"
 some_dict = cache.get("searches").split("|")
 for str in reversed(some_dict):
@@ -156,9 +156,9 @@ def findStationDuplicate(list,id):
 def getJsonMessage(url):
 url = urllib.unquote_plus(url)
 print "URL:%s" % url
-parameters = {"title" : translation(30006),"mode" : "refreshStations" , 
"id" : url}
+parameters = {"title" : (translation(30006)).encode("utf-8"),"mode" : 
"refreshStations" , "id" : url}
 u = sys.argv[0] + '?' + urllib.urlencode(parameters)
-liz=xbmcgui.ListItem(label=translation(30006), 
label2="",iconImage=os.path.join(basepath,"icon.png"))
+liz=xbmcgui.ListItem(label=(translation(30006)).encode("utf-8"), 
label2="",iconImage=os.path.join(basepath,"icon.png"))
 liz.setProperty('IsPlayable', 'false')
 
xbmcplugin.addDirectoryItem(handle=pluginhandle,url=u,listitem=liz,isFolder=True)
 json_response = urllib2.urlopen(url).read()
@@ -172,7 +172,7 @@ def getJsonMessage(url):
 name = row['name']
 towards = row['towards']
 if row['trafficjam']:
-jam_str = translation(30007)
+jam_str = (translation(30007)).encode("utf-8")
 title = "%s | %s | %s | %s" % 
(name.encode('utf-8'),towards.encode('utf-8'),departure_str,jam_str)
 parameters = {"title" : title,"mode" : "refreshStations","id": url}
 u = sys.argv[0] + '?' + urllib.urlencode(parameters)
@@ -200,7 +200,7 @@ def getJsonFailureMessage():
 try:
 desc += column["description"].encode('utf-8')
 except:
-desc += translation(30008)
+desc += (translation(30008)).encode("utf-8")
 try:
 reason = column['attributes']["reason"].encode('utf-8')
 

[Xbmc-addons] [GIT Pull] Wiener Linien

2013-10-01 Thread Daniel Weidacher

  *addon -   plugin.program.wienerlinien
  *version - 0.1.1
  *url -https://github.com/s0faking/plugin.program.wienerlinien
  *revision - f60cd41d4c
  *branch - master
  *xbmc version - frodo

fixed the encoding error when german language is active.

Cheers,
sofaking


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
___
Xbmc-addons mailing list
Xbmc-addons@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xbmc-addons