BIG update to translations, due to additions and changes. Unfortunately Launchpad

translations don't work with gettext fuzzy matches, so I'm afraid there's a lot
of rework for translators.

* Add a few new translatable strings
* Update the list of files to scan with additionas and deletions
* Update the template (pot) and country (po) files
* Fix the preferences window to be translated (LP:#1245806)
This commit is contained in:
Stephen Boddy 2015-08-03 16:36:34 +02:00
parent 439a58e13f
commit 114d9dc428
84 changed files with 51872 additions and 21348 deletions

View File

@ -18,12 +18,16 @@ terminatorlib/factory.py
terminatorlib/freebsd.py terminatorlib/freebsd.py
terminatorlib/__init__.py terminatorlib/__init__.py
terminatorlib/keybindings.py terminatorlib/keybindings.py
terminatorlib/layoutlauncher.glade
terminatorlib/layoutlauncher.py
terminatorlib/notebook.py terminatorlib/notebook.py
terminatorlib/optionparse.py terminatorlib/optionparse.py
terminatorlib/paned.py terminatorlib/paned.py
terminatorlib/plugin.py terminatorlib/plugin.py
terminatorlib/plugins/activitywatch.py terminatorlib/plugins/activitywatch.py
terminatorlib/plugins/custom_commands.py terminatorlib/plugins/custom_commands.py
terminatorlib/plugins/logger.py
terminatorlib/plugins/maven.py
terminatorlib/plugins/terminalshot.py terminatorlib/plugins/terminalshot.py
terminatorlib/plugins/testplugin.py terminatorlib/plugins/testplugin.py
terminatorlib/plugins/url_handlers.py terminatorlib/plugins/url_handlers.py
@ -34,10 +38,6 @@ terminatorlib/signalman.py
terminatorlib/terminal_popup_menu.py terminatorlib/terminal_popup_menu.py
terminatorlib/terminal.py terminatorlib/terminal.py
terminatorlib/terminator.py terminatorlib/terminator.py
terminatorlib/tests/__init__.py
terminatorlib/tests/testborg.py
terminatorlib/tests/test_doctests.py
terminatorlib/tests/testsignalman.py
terminatorlib/titlebar.py terminatorlib/titlebar.py
terminatorlib/translation.py terminatorlib/translation.py
terminatorlib/util.py terminatorlib/util.py

911
po/af.po

File diff suppressed because it is too large Load Diff

966
po/ar.po

File diff suppressed because it is too large Load Diff

908
po/ast.po

File diff suppressed because it is too large Load Diff

947
po/az.po

File diff suppressed because it is too large Load Diff

912
po/be.po

File diff suppressed because it is too large Load Diff

958
po/bg.po

File diff suppressed because it is too large Load Diff

936
po/bn.po

File diff suppressed because it is too large Load Diff

968
po/bs.po

File diff suppressed because it is too large Load Diff

979
po/ca.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

912
po/ckb.po

File diff suppressed because it is too large Load Diff

967
po/cs.po

File diff suppressed because it is too large Load Diff

974
po/da.po

File diff suppressed because it is too large Load Diff

972
po/de.po

File diff suppressed because it is too large Load Diff

972
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1001
po/eo.po

File diff suppressed because it is too large Load Diff

964
po/es.po

File diff suppressed because it is too large Load Diff

908
po/et.po

File diff suppressed because it is too large Load Diff

970
po/eu.po

File diff suppressed because it is too large Load Diff

930
po/fa.po

File diff suppressed because it is too large Load Diff

908
po/fi.po

File diff suppressed because it is too large Load Diff

917
po/fo.po

File diff suppressed because it is too large Load Diff

967
po/fr.po

File diff suppressed because it is too large Load Diff

912
po/fy.po

File diff suppressed because it is too large Load Diff

912
po/ga.po

File diff suppressed because it is too large Load Diff

957
po/gl.po

File diff suppressed because it is too large Load Diff

912
po/he.po

File diff suppressed because it is too large Load Diff

915
po/hi.po

File diff suppressed because it is too large Load Diff

914
po/hr.po

File diff suppressed because it is too large Load Diff

956
po/hu.po

File diff suppressed because it is too large Load Diff

912
po/hy.po

File diff suppressed because it is too large Load Diff

963
po/id.po

File diff suppressed because it is too large Load Diff

935
po/is.po

File diff suppressed because it is too large Load Diff

970
po/it.po

File diff suppressed because it is too large Load Diff

978
po/ja.po

File diff suppressed because it is too large Load Diff

908
po/jv.po

File diff suppressed because it is too large Load Diff

894
po/ka.po

File diff suppressed because it is too large Load Diff

926
po/kk.po

File diff suppressed because it is too large Load Diff

980
po/ko.po

File diff suppressed because it is too large Load Diff

912
po/la.po

File diff suppressed because it is too large Load Diff

908
po/lt.po

File diff suppressed because it is too large Load Diff

929
po/lv.po

File diff suppressed because it is too large Load Diff

929
po/mk.po

File diff suppressed because it is too large Load Diff

912
po/ml.po

File diff suppressed because it is too large Load Diff

912
po/mr.po

File diff suppressed because it is too large Load Diff

970
po/ms.po

File diff suppressed because it is too large Load Diff

971
po/nb.po

File diff suppressed because it is too large Load Diff

909
po/nl.po

File diff suppressed because it is too large Load Diff

912
po/nn.po

File diff suppressed because it is too large Load Diff

929
po/oc.po

File diff suppressed because it is too large Load Diff

963
po/pl.po

File diff suppressed because it is too large Load Diff

968
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

914
po/ro.po

File diff suppressed because it is too large Load Diff

973
po/ru.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

926
po/si.po

File diff suppressed because it is too large Load Diff

967
po/sk.po

File diff suppressed because it is too large Load Diff

932
po/sl.po

File diff suppressed because it is too large Load Diff

912
po/sq.po

File diff suppressed because it is too large Load Diff

908
po/sr.po

File diff suppressed because it is too large Load Diff

912
po/su.po

File diff suppressed because it is too large Load Diff

967
po/sv.po

File diff suppressed because it is too large Load Diff

962
po/ta.po

File diff suppressed because it is too large Load Diff

932
po/te.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

928
po/th.po

File diff suppressed because it is too large Load Diff

941
po/tr.po

File diff suppressed because it is too large Load Diff

912
po/tyv.po

File diff suppressed because it is too large Load Diff

970
po/uk.po

File diff suppressed because it is too large Load Diff

5
po/update_all_po.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Update translation files
for po_file in `ls *.po`; do
msgmerge -N -U ${po_file} terminator.pot
done

912
po/ur.po

File diff suppressed because it is too large Load Diff

912
po/vi.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,7 @@ class Logger(plugin.MenuItem):
def start_logger(self, _widget, Terminal): def start_logger(self, _widget, Terminal):
""" Handle menu item callback by saving text to a file""" """ Handle menu item callback by saving text to a file"""
savedialog = gtk.FileChooserDialog(title="Save Log File As", savedialog = gtk.FileChooserDialog(title=_("Save Log File As"),
action=self.dialog_action, action=self.dialog_action,
buttons=self.dialog_buttons) buttons=self.dialog_buttons)
savedialog.set_do_overwrite_confirmation(True) savedialog.set_do_overwrite_confirmation(True)

View File

@ -34,7 +34,7 @@ class TerminalShot(plugin.MenuItem):
# Grab a pixbuf of the terminal # Grab a pixbuf of the terminal
orig_pixbuf = widget_pixbuf(terminal) orig_pixbuf = widget_pixbuf(terminal)
savedialog = gtk.FileChooserDialog(title="Save image", savedialog = gtk.FileChooserDialog(title=_("Save image"),
action=self.dialog_action, action=self.dialog_action,
buttons=self.dialog_buttons) buttons=self.dialog_buttons)
savedialog.set_do_overwrite_confirmation(True) savedialog.set_do_overwrite_confirmation(True)

View File

@ -1167,7 +1167,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Font colour:</property> <property name="label" translatable="yes">Font color:</property>
</object> </object>
<packing> <packing>
<property name="top_attach">1</property> <property name="top_attach">1</property>
@ -1707,7 +1707,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Colour:</property> <property name="label" translatable="yes">Color:</property>
</object> </object>
<packing> <packing>
<property name="top_attach">1</property> <property name="top_attach">1</property>

View File

@ -18,6 +18,7 @@ from translation import _
from encoding import TerminatorEncoding from encoding import TerminatorEncoding
from terminator import Terminator from terminator import Terminator
from plugin import PluginRegistry from plugin import PluginRegistry
from version import APP_NAME
def color2hex(widget): def color2hex(widget):
"""Pull the colour values out of a Gtk ColorPicker widget and return them """Pull the colour values out of a Gtk ColorPicker widget and return them
@ -81,75 +82,75 @@ class PrefsEditor:
'solarized': '#073642:#dc322f:#859900:#b58900:\ 'solarized': '#073642:#dc322f:#859900:#b58900:\
#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:\ #268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:\
#839496:#6c71c4:#93a1a1:#fdf6e3'} #839496:#6c71c4:#93a1a1:#fdf6e3'}
keybindingnames = { 'zoom_in' : 'Increase font size', keybindingnames = { 'zoom_in' : _('Increase font size'),
'zoom_out' : 'Decrease font size', 'zoom_out' : _('Decrease font size'),
'zoom_normal' : 'Restore original font size', 'zoom_normal' : _('Restore original font size'),
'new_tab' : 'Create a new tab', 'new_tab' : _('Create a new tab'),
'cycle_next' : 'Focus the next terminal', 'cycle_next' : _('Focus the next terminal'),
'cycle_prev' : 'Focus the previous terminal', 'cycle_prev' : _('Focus the previous terminal'),
'go_next' : 'Focus the next terminal', 'go_next' : _('Focus the next terminal'),
'go_prev' : 'Focus the previous terminal', 'go_prev' : _('Focus the previous terminal'),
'go_up' : 'Focus the terminal above', 'go_up' : _('Focus the terminal above'),
'go_down' : 'Focus the terminal below', 'go_down' : _('Focus the terminal below'),
'go_left' : 'Focus the terminal left', 'go_left' : _('Focus the terminal left'),
'go_right' : 'Focus the terminal right', 'go_right' : _('Focus the terminal right'),
'rotate_cw' : 'Rotate terminals clockwise', 'rotate_cw' : _('Rotate terminals clockwise'),
'rotate_ccw' : 'Rotate terminals counter-clockwise', 'rotate_ccw' : _('Rotate terminals counter-clockwise'),
'split_horiz' : 'Split horizontally', 'split_horiz' : _('Split horizontally'),
'split_vert' : 'Split vertically', 'split_vert' : _('Split vertically'),
'close_term' : 'Close terminal', 'close_term' : _('Close terminal'),
'copy' : 'Copy selected text', 'copy' : _('Copy selected text'),
'paste' : 'Paste clipboard', 'paste' : _('Paste clipboard'),
'toggle_scrollbar' : 'Show/Hide the scrollbar', 'toggle_scrollbar' : _('Show/Hide the scrollbar'),
'search' : 'Search terminal scrollback', 'search' : _('Search terminal scrollback'),
'page_up' : 'Scroll upwards one page', 'page_up' : _('Scroll upwards one page'),
'page_down' : 'Scroll downwards one page', 'page_down' : _('Scroll downwards one page'),
'page_up_half' : 'Scroll upwards half a page', 'page_up_half' : _('Scroll upwards half a page'),
'page_down_half' : 'Scroll downwards half a page', 'page_down_half' : _('Scroll downwards half a page'),
'line_up' : 'Scroll upwards one line', 'line_up' : _('Scroll upwards one line'),
'line_down' : 'Scroll downwards one line', 'line_down' : _('Scroll downwards one line'),
'close_window' : 'Close window', 'close_window' : _('Close window'),
'resize_up' : 'Resize the terminal up', 'resize_up' : _('Resize the terminal up'),
'resize_down' : 'Resize the terminal down', 'resize_down' : _('Resize the terminal down'),
'resize_left' : 'Resize the terminal left', 'resize_left' : _('Resize the terminal left'),
'resize_right' : 'Resize the terminal right', 'resize_right' : _('Resize the terminal right'),
'move_tab_right' : 'Move the tab right', 'move_tab_right' : _('Move the tab right'),
'move_tab_left' : 'Move the tab left', 'move_tab_left' : _('Move the tab left'),
'toggle_zoom' : 'Maximise terminal', 'toggle_zoom' : _('Maximise terminal'),
'scaled_zoom' : 'Zoom terminal', 'scaled_zoom' : _('Zoom terminal'),
'next_tab' : 'Switch to the next tab', 'next_tab' : _('Switch to the next tab'),
'prev_tab' : 'Switch to the previous tab', 'prev_tab' : _('Switch to the previous tab'),
'switch_to_tab_1' : 'Switch to the first tab', 'switch_to_tab_1' : _('Switch to the first tab'),
'switch_to_tab_2' : 'Switch to the second tab', 'switch_to_tab_2' : _('Switch to the second tab'),
'switch_to_tab_3' : 'Switch to the third tab', 'switch_to_tab_3' : _('Switch to the third tab'),
'switch_to_tab_4' : 'Switch to the fourth tab', 'switch_to_tab_4' : _('Switch to the fourth tab'),
'switch_to_tab_5' : 'Switch to the fifth tab', 'switch_to_tab_5' : _('Switch to the fifth tab'),
'switch_to_tab_6' : 'Switch to the sixth tab', 'switch_to_tab_6' : _('Switch to the sixth tab'),
'switch_to_tab_7' : 'Switch to the seventh tab', 'switch_to_tab_7' : _('Switch to the seventh tab'),
'switch_to_tab_8' : 'Switch to the eighth tab', 'switch_to_tab_8' : _('Switch to the eighth tab'),
'switch_to_tab_9' : 'Switch to the ninth tab', 'switch_to_tab_9' : _('Switch to the ninth tab'),
'switch_to_tab_10' : 'Switch to the tenth tab', 'switch_to_tab_10' : _('Switch to the tenth tab'),
'full_screen' : 'Toggle fullscreen', 'full_screen' : _('Toggle fullscreen'),
'reset' : 'Reset the terminal', 'reset' : _('Reset the terminal'),
'reset_clear' : 'Reset and clear the terminal', 'reset_clear' : _('Reset and clear the terminal'),
'hide_window' : 'Toggle window visibility', 'hide_window' : _('Toggle window visibility'),
'group_all' : 'Group all terminals', 'group_all' : _('Group all terminals'),
'group_all_toggle' : 'Group/Ungroup all terminals', 'group_all_toggle' : _('Group/Ungroup all terminals'),
'ungroup_all' : 'Ungroup all terminals', 'ungroup_all' : _('Ungroup all terminals'),
'group_tab' : 'Group terminals in tab', 'group_tab' : _('Group terminals in tab'),
'group_tab_toggle' : 'Group/Ungroup terminals in tab', 'group_tab_toggle' : _('Group/Ungroup terminals in tab'),
'ungroup_tab' : 'Ungroup terminals in tab', 'ungroup_tab' : _('Ungroup terminals in tab'),
'new_window' : 'Create a new window', 'new_window' : _('Create a new window'),
'new_terminator' : 'Spawn a new Terminator process', 'new_terminator' : _('Spawn a new Terminator process'),
'broadcast_off' : 'Don\'t broadcast key presses', 'broadcast_off' : _('Don\'t broadcast key presses'),
'broadcast_group' : 'Broadcast key presses to group', 'broadcast_group' : _('Broadcast key presses to group'),
'broadcast_all' : 'Broadcast key events to all', 'broadcast_all' : _('Broadcast key events to all'),
'insert_number' : 'Insert terminal number', 'insert_number' : _('Insert terminal number'),
'insert_padded' : 'Insert zero padded terminal number', 'insert_padded' : _('Insert padded terminal number'),
'edit_window_title': 'Edit window title', 'edit_window_title': _('Edit window title'),
'layout_launcher' : 'Open layout launcher window', 'layout_launcher' : _('Open layout launcher window'),
'next_profile' : 'Switch to next profile', 'next_profile' : _('Switch to next profile'),
'previous_profile' : 'Switch to previous profile' 'previous_profile' : _('Switch to previous profile')
} }
def __init__ (self, term): def __init__ (self, term):
@ -157,6 +158,7 @@ class PrefsEditor:
self.config.base.reload() self.config.base.reload()
self.term = term self.term = term
self.builder = gtk.Builder() self.builder = gtk.Builder()
self.builder.set_translation_domain(APP_NAME)
self.keybindings = Keybindings() self.keybindings = Keybindings()
try: try:
# Figure out where our library is on-disk so we can open our # Figure out where our library is on-disk so we can open our