Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

here you go #1

Merged
merged 1 commit into from

2 participants

@amet

No description provided.

@metabaron metabaron merged commit 4b6cbe8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 10, 2011
  1. @amet

    fix strings

    amet authored
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 7 deletions.
  1. +6 −3 default.py
  2. +6 −4 resources/language/English/strings.xml
View
9 default.py
@@ -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
View
10 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>
@@ -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>
Something went wrong with that request. Please try again.