gettext again

This commit is contained in:
Martijn Voncken 2008-10-31 17:17:06 +00:00
parent 41c121b729
commit 72aaef6191
2 changed files with 32 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import os import os
import re import re
template_dirs = ['../templates/classic','../templates/white'] template_dirs = ['../templates/classic','../templates/white','../templates/ajax/static/js']
template_dirs = [os.path.expanduser(template_dir ) for template_dir in template_dirs] template_dirs = [os.path.expanduser(template_dir ) for template_dir in template_dirs]
@ -9,7 +9,7 @@ files = []
for template_dir in template_dirs: for template_dir in template_dirs:
files += [os.path.join(template_dir,fname) files += [os.path.join(template_dir,fname)
for fname in os.listdir(template_dir) for fname in os.listdir(template_dir)
if fname.endswith('.html')] if fname.endswith('.html') or fname.endswith('.js')]
all_strings = [] all_strings = []
@ -18,6 +18,8 @@ for filename in files:
content = f.read() content = f.read()
all_strings += re.findall("_\(\"(.*?)\"\)",content) all_strings += re.findall("_\(\"(.*?)\"\)",content)
all_strings += re.findall("_\(\'(.*?)\'\)",content) all_strings += re.findall("_\(\'(.*?)\'\)",content)
all_strings += re.findall("Deluge\.Strings\.get\(\'(.*?)\'\)",content)
all_strings += re.findall("Deluge\.Strings\.get\(\'(.*?)\'\)",content)
all_strings = sorted(set(all_strings)) all_strings = sorted(set(all_strings))

View File

@ -1,7 +1,11 @@
_('# Of Files') _('# Of Files')
_('... and delete All files')
_('... and delete Downloaded files')
_('... and delete Torrent file')
_('About') _('About')
_('Active time') _('Active time')
_('Add Torrent') _('Add Torrent')
_('Add Torrents')
_('Add torrent') _('Add torrent')
_('Address') _('Address')
_('Admin') _('Admin')
@ -9,31 +13,43 @@ _('Auto Managed')
_('Auto refresh:') _('Auto refresh:')
_('Ava') _('Ava')
_('Availability') _('Availability')
_('Bottom')
_('Cancel')
_('Clear') _('Clear')
_('Client') _('Client')
_('Config') _('Config')
_('Connect') _('Connect')
_('Connect to Daemon') _('Connect to Daemon')
_('Connected to') _('Connected to')
_('Connection Limit')
_('Connections') _('Connections')
_('Create Torrent')
_('D/L Speed Limit')
_('DHT Nodes') _('DHT Nodes')
_('Delete .torrent file') _('Delete .torrent file')
_('Delete downloaded files.') _('Delete downloaded files.')
_('Deluge : Torrent List') _('Deluge : Torrent List')
_('Deluge Login') _('Deluge Login')
_('Details')
_('Disable') _('Disable')
_('Disk Space') _('Disk Space')
_('Do not download') _('Do not download')
_('Down')
_('Down Speed') _('Down Speed')
_('Download') _('Download')
_('Downloaded') _('Downloaded')
_('ETA') _('ETA')
_('Edit Trackers')
_('Enable') _('Enable')
_('Error') _('Error')
_('Eta') _('Eta')
_('False') _('False')
_('File') _('File')
_('Files')
_('Filter on a keyword') _('Filter on a keyword')
_('Force Recheck')
_('From Session')
_('From Url')
_('General') _('General')
_('High priority') _('High priority')
_('Highest priority') _('Highest priority')
@ -43,6 +59,7 @@ _('Label torrent')
_('Login') _('Login')
_('Logout') _('Logout')
_('Move') _('Move')
_('Move Storage')
_('Move torrent') _('Move torrent')
_('Name') _('Name')
_('Next Announce') _('Next Announce')
@ -52,10 +69,12 @@ _('None')
_('Normal priority') _('Normal priority')
_('Not Connected to a daemon') _('Not Connected to a daemon')
_('Off') _('Off')
_('Ok')
_('Options') _('Options')
_('Other') _('Other')
_('Password') _('Password')
_('Password is invalid,try again') _('Password is invalid,try again')
_('Pause')
_('Pause all') _('Pause all')
_('Peers') _('Peers')
_('Pieces') _('Pieces')
@ -66,8 +85,10 @@ _('Queue Position')
_('Ratio') _('Ratio')
_('Refresh page every:') _('Refresh page every:')
_('Remove') _('Remove')
_('Remove Torrent')
_('Remove torrent') _('Remove torrent')
_('Restart') _('Restart')
_('Resume')
_('Resume all') _('Resume all')
_('Save') _('Save')
_('Search') _('Search')
@ -81,15 +102,22 @@ _('Share Ratio')
_('Size') _('Size')
_('Speed') _('Speed')
_('Start') _('Start')
_('Statistics')
_('Stop') _('Stop')
_('Submit') _('Submit')
_('Top')
_('Torrent list') _('Torrent list')
_('Total Size') _('Total Size')
_('Tracker') _('Tracker')
_('Tracker Status') _('Tracker Status')
_('True') _('True')
_('U/L Speed Limit')
_('Unlimited')
_('Up')
_('Up Speed') _('Up Speed')
_('Update') _('Update')
_('Update Tracker')
_('Upload') _('Upload')
_('Upload Slot Limit')
_('Uploaded') _('Uploaded')
_('seconds') _('seconds')