Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1 from amet/master
Browse files Browse the repository at this point in the history
Fixed a strings.xml encoding on US strings.xml file (will have to fix the French one).
  • Loading branch information
metabaron committed May 11, 2011
2 parents f33eded + 9d5305a commit 4b6cbe8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions default.py
Expand Up @@ -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' ) )
Expand All @@ -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
Expand Down
10 changes: 6 additions & 4 deletions resources/language/English/strings.xml
@@ -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>
Expand All @@ -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.