Permalink
Browse files

Merge pull request #1 from amet/master

Fixed a strings.xml encoding on US strings.xml file (will have to fix the French one).
  • Loading branch information...
2 parents f33eded + 9d5305a commit 4b6cbe8f5659a37ddf681b5207ae754a9a95461c @metabaron committed May 11, 2011
Showing with 12 additions and 7 deletions.
  1. +6 −3 default.py
  2. +6 −4 resources/language/English/strings.xml
View
@@ -14,11 +14,11 @@
__email__ = "mathieu@feulvarch.fr"
__status__ = "Production"
-__settings__ = xbmcaddon.Addon(id='script.gomiso')
+__scriptID__ = "script.gomiso"
+__settings__ = xbmcaddon.Addon(id=__scriptID__)
__language__ = __settings__.getLocalizedString
-_ = sys.modules[ "__main__" ].__language__
__cwd__ = __settings__.getAddonInfo('path')
-__scriptID__ = "script.gomiso"
+
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'lib' ) )
LANGUAGE_RESOURCE_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'language' ) )
@@ -32,6 +32,9 @@
tokensFile = addon_work_folder + '/tokens'
settingsFile = addon_work_folder + '/settings.xml'
+
+print __language__(601)
+
#Now that we appended the directories, let's import
from gomiso import gomiso
import simplejson as json
@@ -1,6 +1,8 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
- <string id="30901">General Settings</string>
+ <string id="601">Testing Strings</string>
+
+ <string id="30901">General Settings</string>
<string id="30913">Submission options</string>
<string id="30905">Username</string>
@@ -9,6 +11,6 @@
<string id="30916">Connected</string>
<string id="30917">Cannot submit</string>
<string id="30918">Submitted</string>
- <string id="30919">Watched on XBMC - Gomiso plugin</script>
- <string id="30920">Display submission message</script>
+ <string id="30919">Watched on XBMC - Gomiso plugin</string>
+ <string id="30920">Display submission message</string>
</strings>

0 comments on commit 4b6cbe8

Please sign in to comment.