diff --git a/deluge/ui/webui/scripts/extract_template_strings.py b/deluge/ui/webui/scripts/extract_template_strings.py index a4a0309df..3c8d8b0a7 100644 --- a/deluge/ui/webui/scripts/extract_template_strings.py +++ b/deluge/ui/webui/scripts/extract_template_strings.py @@ -1,6 +1,6 @@ import os 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] @@ -9,7 +9,7 @@ files = [] for template_dir in template_dirs: files += [os.path.join(template_dir,fname) for fname in os.listdir(template_dir) - if fname.endswith('.html')] + if fname.endswith('.html') or fname.endswith('.js')] all_strings = [] @@ -18,6 +18,8 @@ for filename in files: content = f.read() 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)) diff --git a/deluge/ui/webui/scripts/template_strings.py b/deluge/ui/webui/scripts/template_strings.py index 64d80a7bf..66b2434bf 100644 --- a/deluge/ui/webui/scripts/template_strings.py +++ b/deluge/ui/webui/scripts/template_strings.py @@ -1,7 +1,11 @@ _('# Of Files') +_('... and delete All files') +_('... and delete Downloaded files') +_('... and delete Torrent file') _('About') _('Active time') _('Add Torrent') +_('Add Torrents') _('Add torrent') _('Address') _('Admin') @@ -9,31 +13,43 @@ _('Auto Managed') _('Auto refresh:') _('Ava') _('Availability') +_('Bottom') +_('Cancel') _('Clear') _('Client') _('Config') _('Connect') _('Connect to Daemon') _('Connected to') +_('Connection Limit') _('Connections') +_('Create Torrent') +_('D/L Speed Limit') _('DHT Nodes') _('Delete .torrent file') _('Delete downloaded files.') _('Deluge : Torrent List') _('Deluge Login') +_('Details') _('Disable') _('Disk Space') _('Do not download') +_('Down') _('Down Speed') _('Download') _('Downloaded') _('ETA') +_('Edit Trackers') _('Enable') _('Error') _('Eta') _('False') _('File') +_('Files') _('Filter on a keyword') +_('Force Recheck') +_('From Session') +_('From Url') _('General') _('High priority') _('Highest priority') @@ -43,6 +59,7 @@ _('Label torrent') _('Login') _('Logout') _('Move') +_('Move Storage') _('Move torrent') _('Name') _('Next Announce') @@ -52,10 +69,12 @@ _('None') _('Normal priority') _('Not Connected to a daemon') _('Off') +_('Ok') _('Options') _('Other') _('Password') _('Password is invalid,try again') +_('Pause') _('Pause all') _('Peers') _('Pieces') @@ -66,8 +85,10 @@ _('Queue Position') _('Ratio') _('Refresh page every:') _('Remove') +_('Remove Torrent') _('Remove torrent') _('Restart') +_('Resume') _('Resume all') _('Save') _('Search') @@ -81,15 +102,22 @@ _('Share Ratio') _('Size') _('Speed') _('Start') +_('Statistics') _('Stop') _('Submit') +_('Top') _('Torrent list') _('Total Size') _('Tracker') _('Tracker Status') _('True') +_('U/L Speed Limit') +_('Unlimited') +_('Up') _('Up Speed') _('Update') +_('Update Tracker') _('Upload') +_('Upload Slot Limit') _('Uploaded') _('seconds')