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 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))

View File

@ -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')