Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Cleanup localization files, remove unused string
Remove unused function in utilities
  • Loading branch information
nate1280 committed May 6, 2013
1 parent fb01404 commit 9e74152
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 206 deletions.
12 changes: 6 additions & 6 deletions rating.py
Expand Up @@ -73,17 +73,17 @@ def rateMedia(media_type, summary_info, unrate=False, rating=None):
utils.Debug("[Rating] Rating for '%s' is being set to '%d' manually." % (s, rating))
rateOnTrakt(rating, media_type, summary_info)
else:
utils.notification(utils.getString(1174), s)
utils.notification(utils.getString(1353), s)
utils.Debug("[Rating] '%s' already has a rating of '%d'." % (s, rating))
else:
utils.notification(utils.getString(1172), s)
utils.notification(utils.getString(1351), s)
utils.Debug("[Rating] '%s' is already rated." % s)
return

if summary_info['rating'] or summary_info['rating_advanced']:
if not rerate:
utils.Debug("[Rating] '%s' has already been rated." % s)
utils.notification(utils.getString(1172), s)
utils.notification(utils.getString(1351), s)
return
else:
utils.Debug("[Rating] '%s' is being re-rated." % s)
Expand Down Expand Up @@ -160,11 +160,11 @@ def rateOnTrakt(rating, media_type, media, unrate=False):
s = utils.getFormattedItemName(media_type, media)
if 'status' in data and data['status'] == "success":
if not unrate:
utils.notification(utils.getString(1171), s)
utils.notification(utils.getString(1350), s)
else:
utils.notification(utils.getString(1173), s)
utils.notification(utils.getString(1352), s)
elif 'status' in data and data['status'] == "failure":
utils.notification(utils.getString(1175), s)
utils.notification(utils.getString(1354), s)
else:
# status not in data, different problem, do nothing for now
pass
Expand Down
118 changes: 4 additions & 114 deletions resources/language/Dutch/string.xml
@@ -1,144 +1,34 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<!-- Preferences -->
<!-- General Settings -->
<string id="1010">Algemeen</string>
<string id="1012">API Key (te vinden op trakt -&gt; Settings -&gt; API)</string>
<string id="1013">Gebruikersnaam</string>
<string id="1014">Wachtwoord</string>

<string id="1020">Automatisch synchroniseren</string>
<string id="1021">Automatisch bijwerken Film Collectie bij opstarten</string>
<string id="1022">Automatisch bijwerken TV Serie Collectie bij opstarten</string>
<string id="1023">Automatisch synchroniseren bekeken Films bij het opstarten</string>
<string id="1024">Automatisch synchroniseren bekeken TV Series bij het opstarten</string>
<string id="1025">Automatisch opschonen Film Collectie bij opstarten</string>
<string id="1026">Automatisch opschonen TV Serie Collectie bij opstarten</string>

<!-- Rating Settings -->
<string id="1030">Waardering</string>
<string id="1031">Beoordeel Film na het bekijken</string>
<string id="1032">Beoordeel TV Serie na het bekijken</string>
<string id="1033">Beoordeel elk afspeellijst item</string>
<string id="1034">Minimum percentage gezien om dialoogvenster beoordelen weer te geven</string>

<!-- Scrobbling Settings -->
<string id="1040">Scrobblen</string>
<string id="1041">Scrobble Films</string>
<string id="1042">Scrobble TV Series</string>
<string id="1043">Minimum percentage gezien om te scrobbelen</string>

<!-- Info -->
<string id="1105"></string>
<!-- General Notifications -->
<string id="1106">Vul uw gebruikersnaam en wachtwoord in bij instellingen</string>
<string id="1107">Voer uw wachtwoord in bij instellingen</string>
<string id="1108">Kan geen verbinding maken met Trakt</string>
<string id="1109">Fout</string>
<string id="1110">Onjuiste gebruikersnaam of wachtwoord</string>
<string id="1120">Controle Database voor Updates</string>
<string id="1121">Fout bij uploaden Film collectie</string>
<string id="1122">Geen nieuwe Films in XBMC Database om bij te werken</string>
<string id="1123">Fout bij het uploaden van bekeken Films</string>
<string id="1124">Geen nieuwe Films bekeken om bij te werken voor Trakt</string>
<string id="1125">Films zullen worden toegevoegd aan Trakt Collectie</string> <!-- XX Movies will be added to Trakt Collection -->
<string id="1126">Films worden bijgewerkt op Trakt</string> <!-- XX Movies updated -->
<string id="1127">Films worden toegevoegd als bekeken op Trakt</string> <!-- XX Movies will be added as seen on Trakt -->
<string id="1128">Geen nieuwe bekeken Films om bij te werken voor XBMC</string>
<string id="1129">Films bijgewerkt op XBMC</string>
<string id="1130">Geen Films om uit database te verwijderen op Trakt</string>
<string id="1131">TV Serie Afleveringen zullen worden toegevoegd aan Trakt Collectie</string>
<string id="1132">Controle van XBMC Database voor nieuwe Films</string>
<string id="1133">Controle van XBMC Database voor nieuwe Afleveringen</string>
<string id="1134">Opdracht afgebroken door de gebruiker</string>
<string id="1135">Fout bij het uploaden van TV Serie Collectie</string>
<string id="1136">Geen nieuwe Afleveringen in XBMC Database om bij te werken</string>
<string id="1137">Afleveringen met succes bijgewerkt op Trakt</string>
<string id="1138">Films overgeslagen</string>
<string id="1139">Controle van XBMC Database voor verwijderde Films</string>
<string id="1140">Controle van XBMC Database voor verwijderde Afleveringen</string>
<string id="1141">Afleveringen zullen worden verwijderd van Trakt Collectie</string>
<string id="1142">Geen Afleveringen om te verwijderen van Trakt</string>
<string id="1143">Controle van XBMC Database voor nieuwe bekeken Afleveringen</string>
<string id="1144">Afleveringen zullen worden toegevoegd als gezien op Trakt</string>
<string id="1145">Fout bij het uploaden van bekeken TV-series</string>
<string id="1146">Geen nieuwe bekeken Afleveringen in XBMC database om bij te werken</string>
<string id="1147">Films worden toegevoegd als bekeken in XBMC</string>
<string id="1148">Controle Trakt Database voor nieuwe bekeken Afleveringen</string>
<string id="1149">Afleveringen zullen worden ingesteld als gezien in XBMC</string>
<string id="1150">Bijwerken XBMC Database</string>
<string id="1151">Geen nieuwe afleveringen bekeken om bij te werken op Trakt</string>
<string id="1152">Fout: XBMC Film Database kan niet worden geopend</string>
<string id="1153">Dit zal alle Films verwijderen uit uw Trakt Collectie</string>
<string id="1154">die niet in de XBMC Database aanwezig zijn.</string>
<string id="1155">Wil je doorgaan?</string>
<string id="1156">Dit zal alle TV Series verwijderen uit uw Trakt Collectie</string>
<string id="1157">binnenkort</string>
<string id="1158">Er zijn geen aanbevolen Films voor u</string>
<string id="1159">Er zijn geen aanbevolen TV Series aanbevolen voor u</string>
<string id="1160">Geen Films aanwezig in je volglijst</string>
<string id="1161">Geen TV Series aanwezig in je volglijst</string>
<string id="1162">Niet gevonden in uw XBMC Database</string>
<string id="1163">Ontvangen van informatie van Trakt servers</string>
<string id="1164">Doorverwijzing met lokale informatie</string>
<string id="1166">Beoordeling met succes verwijderd</string>
<string id="1167">Waardering voor '%s' werd toegevoegd</string>
<string id="1168">Fout bij het toevoegen van waardering</string>
<string id="1300">Controle van XBMC Database voor nieuwe bekeken films</string>
<string id="1301">Controle Trakt Database voor nieuwe bekeken films</string>
<string id="1302">Kan film niet af spelen</string>
<string id="1303">Beoordeel deze film?</string>
<string id="1304">Beoordeel deze aflevering?</string>
<string id="1305">Beoordeel hele serie?</string>
<string id="1306">Beoordeel deze serie?</string>
<string id="1307">Trek beoordeling in</string>
<string id="1308">Niet beoordeeld</string>
<string id="1309">Toevoegen aan volglijst mislukt</string>
<string id="1310">Succesvol aan volglijst toegevoegd</string>
<string id="1311">Fout bij verwijderen van volglijst</string>
<string id="1312">Succesvol verwijderd van volglijst</string>

<!-- auto update / sync -->
<string id="1180">Beginnen bijwerken Film collectie</string>
<string id="1181">Beginnen bijwerken TV Series collectie</string>
<string id="1182">Start synchronisatie bekeken Films</string>
<string id="1183">Start synchronisatie bekeken TV Series</string>
<string id="1184">Bijwerken / synchroniseren gedaan</string>

<!-- Titles -->
<string id="1201">trakt</string>

<!-- Menu -->
<string id="1210">Volglijst</string>
<string id="1211">Vrienden</string>
<string id="1212">Aanbevelingen</string>
<string id="1213">Trending Films / TV Series</string>
<string id="1214">Bijwerken / Synchroniseren / Opschonen</string>
<string id="1215"></string>
<string id="1216"></string>

<!-- Submenu -->
<string id="1217">Werk Film Collectie bij</string>
<string id="1218">Synchroniseer bekeken Films</string>
<string id="1219">Werk TV Serie Collectie bij</string>
<string id="1220">Synchroniseer bekeken TV Series</string>
<string id="1221">Opschonen Film Collectie</string>
<string id="1222">Opschonen TV Serie Collectie</string>

<string id="1250">Trending Films</string>
<string id="1251">Trending TV Series</string>

<string id="1252">Volglijst Films</string>
<string id="1253">Volglijst TV Series</string>
<string id="1254">Volglijst Afleveringen</string>

<string id="1255">Aanbevolen Films</string>
<string id="1256">Aanbevolen TV Series</string>
<string id="1257">Aanbevolen Afleveringen</string>

<!-- Friends Submenu -->
<string id="1280">Op dit moment aan het kijken</string>
<string id="1281">Volglijst</string>
<string id="1282">Bekeken</string>
<string id="1283">Bibliotheek</string>
<string id="1284">Profiel</string>

<!-- Debug -->
<string id="1701">Activeer debug mode</string>
</strings>
105 changes: 59 additions & 46 deletions resources/language/English/strings.xml
@@ -1,45 +1,46 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<!-- Preferences -->
<!-- General Settings -->
<string id="1010">General</string>
<string id="1013">Username</string>
<string id="1014">Password</string>
<string id="1017">Number of Retries</string>
<string id="1018">Startup Delay</string>

<!-- Rating Settings -->
<string id="1030">Rating</string>
<string id="1031">Rate Movie after watching</string>
<string id="1032">Rate TV Show Episode after watching</string>
<string id="1033">Rate each playlist item</string>
<string id="1034">Minimum percent watched to display rate dialog</string>
<string id="1035">Allow re-rating of media</string>

<!-- Scrobbling Settings -->
<string id="1040">Scrobbling</string>
<string id="1041">Scrobble movies</string>
<string id="1042">Scrobble TV episodes</string>
<string id="1043">Minimum percent watched to scrobble</string>

<string id="1050">Exclusions</string>
<string id="1051">Exclude Live TV</string>
<string id="1052">Exclude HTTP sources</string>
<string id="1053">Exclude path</string>
<string id="1054">Folder's path (and subfolders)</string>

<!-- Info -->
<!-- General Notifications -->
<string id="1106">Enter your Username and Password in settings</string>
<string id="1107">Enter your Password in settings</string>
<string id="1108">Can't connect to trakt</string>
<string id="1109">Error</string>
<string id="1110">Incorrect username or password</string>
<string id="1167">Rating for %s was successfully submitted</string>
<string id="1168">%s has already been rated</string>
<string id="1169">%s successfully unrated</string>
<string id="1170">%s already has the same rating</string>
<string id="1171">trakt.tv - Rating submitted successfully</string>
<string id="1172">trakt.tv - Already rated</string>
<string id="1173">trakt.tv - Unrated successfully</string>
<string id="1174">trakt.tv - Already has the same rating</string>
<string id="1175">trakt.tv - Problem submitting rating</string>

<!-- Manual Rating Notifications -->
<string id="1350">trakt.tv - Rating submitted successfully</string>
<string id="1351">trakt.tv - Already rated</string>
<string id="1352">trakt.tv - Unrated successfully</string>
<string id="1353">trakt.tv - Already has the same rating</string>
<string id="1354">trakt.tv - Problem submitting rating</string>

<!-- Rating Dialog -->
<string id="1313">What Did You Think?</string>
<string id="1314">Totally Ninja!</string>
<string id="1315">Weak Sauce :(</string>
Expand All @@ -56,12 +57,7 @@
<string id="1327">Unrate this episode</string>

<!-- Titles -->
<string id="1201">trakt</string>
<string id="1202">trakt.tv Rating</string>
<string id="1205">Movie</string>
<string id="1206">TV Show</string>
<string id="1207">Season</string>
<string id="1208">Episode</string>
<string id="1201">trakt.tv</string>

<!-- Sync Settings -->
<string id="1400">Synchronize</string>
Expand All @@ -82,69 +78,86 @@
<!-- Sync Notifications -->
<string id="1420">Sync started</string>
<string id="1421">Sync complete</string>
<string id="1422">Getting movies from XBMC</string>
<string id="1423">Getting movie collection from trakt</string>
<string id="1424">Getting seen movies from trakt</string>
<string id="1425">Checking for XBMC movies that are not on trakt</string>
<string id="1426">movie(s) will be added to trakt collection</string>
<string id="1427">Checking watched movies on trakt</string>
<string id="1428">movie(s) playcount will be updated on trakt</string>
<string id="1429">Checking if XBMC playcount is up to date</string>
<string id="1430">movie(s) playcount will be updated on XBMC</string>
<string id="1431">Movie Sync Complete</string>
<string id="1432">Getting TV shows from XBMC</string>
<string id="1433">Getting episodes from XBMC</string>
<string id="1434">Getting episode collection from trakt</string>
<string id="1435">Checking for episodes missing from trakt collection</string>
<string id="1436">shows(s) have episodes added to trakt collection</string>
<string id="1437">episodes missing</string>
<string id="1438">Checking watched episodes on trakt</string>
<string id="1439">shows have missing watched status</string>
<string id="1440">episodes are being updated</string>
<string id="1441">Checking watched episodes on XBMC</string>
<string id="1442">Episode Sync Complete</string>
<string id="1443">Cleaning trakt movie collection</string>
<string id="1444">movie(s) will be removed from trakt collection</string>
<string id="1445">Cleaning trakt tvshow collection</string>
<string id="1446">show(s) will have episodes removed from trakt collection</string>
<string id="1447">episodes are being removed</string>

<!-- Sync Movies - load from xbmc -->
<string id="1460">Loading movies from XBMC</string>
<string id="1461">Movies loaded from XBMC</string>

<!-- Sync Movies - load from trakt -->
<string id="1462">Retrieving movie collection from trakt.tv</string>
<string id="1463">Retrieving seen movies from trakt.tv</string>
<string id="1464">Retrieved seen movies from trakt.tv</string>
<string id="1465">Parsing movies from trakt.tv</string>
<string id="1466">Retrieved movie data from trakt.tv</string>

<!-- Sync Movies - add to trakt -->
<string id="1467">trakt.tv movie collection is up to date, no movies to add.</string>
<string id="1426">movie(s) will be added to trakt collection</string>
<string id="1468">%i movie(s) were added to your trakt.tv collection.</string>

<!-- Sync Movies - update trakt -->
<string id="1469">trakt.tv movie playcount is up to date.</string>
<string id="1428">movie(s) playcount will be updated on trakt</string>
<string id="1470">Play counts updated for %i movie(s) on trakt.tv</string>

<!-- Sync Movies - update xbmc -->
<string id="1471">XBMC movie playcount is up to date.</string>
<string id="1430">movie(s) playcount will be updated on XBMC</string>
<string id="1472">Updating movie play counts in XBMC.</string>
<string id="1473">Play counts updated for %i movie(s) in XBMC.</string>

<!-- Sync Movies - clean trakt -->
<string id="1474">trakt.tv movie collection is up to date.</string>
<string id="1444">movie(s) will be removed from trakt collection</string>
<string id="1475">%i movie(s) were removed from your trakt.tv collection</string>

<!-- Sync Movies - complete -->
<string id="1431">Movie Sync Complete</string>

<!-- Sync Episodes - load from xbmc -->
<string id="1480">Loading episode data from XBMC</string>
<string id="1481">Loading shows from XBMC</string>
<string id="1482">Shows loaded from XBMC</string>
<string id="1483">Parsing episode data from XBMC</string>
<string id="1484">Loaded TV episode data from XBMC</string>

<!-- Sync Episodes - load from trakt -->
<string id="1485">Loading episode data from trakt.tv</string>
<string id="1486">Retrieving episode collection from trakt.tv</string>
<string id="1487">Retrieving seen episodes from trakt.tv</string>
<string id="1488">Parsing episode data from trakt.tv</string>
<string id="1489">Retrieved episode data from trakt.tv</string>

<!-- Sync Episodes - add to trakt -->
<string id="1435">Checking for episodes missing from trakt collection</string>
<string id="1490">trakt.tv episode collection is up to date, no episodes to add.</string>
<string id="1436">shows(s) have episodes added to trakt collection</string>
<string id="1437">episodes missing</string>
<string id="1491">%i episode(s) were added to your trakt.tv collection</string>

<!-- Sync Episodes - update trakt -->
<string id="1438">Checking watched episodes on trakt</string>
<string id="1492">trakt.tv episode play count is up to date.</string>
<string id="1439">shows have missing watched status</string>
<string id="1440">episodes are being updated</string>

<!-- Sync Episodes - update xbmc -->
<string id="1441">Checking watched episodes on XBMC</string>
<string id="1493">XBMC episode play count is up to date.</string>
<string id="1494">Updating episode play counts in XBMC</string>
<string id="1495">Play counts updated for %i episode(s) in XBMC</string>

<!-- Sync Episodes - clean trakt -->
<string id="1445">Cleaning trakt tvshow collection</string>
<string id="1496">trakt.tv episode collection is clean, no episodes to remove.</string>
<string id="1497">%i episode(s) are being removed from your trakt.tv collection.</string>
<string id="1447">episodes are being removed</string>
<string id="1498">%i episode(s) were removed from your trakt.tv collection</string>

<!-- Debug -->

<!-- Sync Episodes - complete -->
<string id="1442">Episode Sync Complete</string>

<!-- Debug Settings -->
<string id="1700">Debug</string>
<string id="1701">Enable debug mode</string>
<string id="1702">Simulate scrobbling (for testing purposes)</string>
Expand Down

0 comments on commit 9e74152

Please sign in to comment.