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:
parent
439a58e13f
commit
114d9dc428
|
@ -18,12 +18,16 @@ terminatorlib/factory.py
|
|||
terminatorlib/freebsd.py
|
||||
terminatorlib/__init__.py
|
||||
terminatorlib/keybindings.py
|
||||
terminatorlib/layoutlauncher.glade
|
||||
terminatorlib/layoutlauncher.py
|
||||
terminatorlib/notebook.py
|
||||
terminatorlib/optionparse.py
|
||||
terminatorlib/paned.py
|
||||
terminatorlib/plugin.py
|
||||
terminatorlib/plugins/activitywatch.py
|
||||
terminatorlib/plugins/custom_commands.py
|
||||
terminatorlib/plugins/logger.py
|
||||
terminatorlib/plugins/maven.py
|
||||
terminatorlib/plugins/terminalshot.py
|
||||
terminatorlib/plugins/testplugin.py
|
||||
terminatorlib/plugins/url_handlers.py
|
||||
|
@ -34,10 +38,6 @@ terminatorlib/signalman.py
|
|||
terminatorlib/terminal_popup_menu.py
|
||||
terminatorlib/terminal.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/translation.py
|
||||
terminatorlib/util.py
|
||||
|
|
File diff suppressed because it is too large
Load Diff
939
po/en_AU.po
939
po/en_AU.po
File diff suppressed because it is too large
Load Diff
911
po/en_CA.po
911
po/en_CA.po
File diff suppressed because it is too large
Load Diff
967
po/en_GB.po
967
po/en_GB.po
File diff suppressed because it is too large
Load Diff
970
po/pt_BR.po
970
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
912
po/ru_RU.po
912
po/ru_RU.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Update translation files
|
||||
for po_file in `ls *.po`; do
|
||||
msgmerge -N -U ${po_file} terminator.pot
|
||||
done
|
967
po/zh_CN.po
967
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
912
po/zh_HK.po
912
po/zh_HK.po
File diff suppressed because it is too large
Load Diff
947
po/zh_TW.po
947
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
|
@ -63,7 +63,7 @@ class Logger(plugin.MenuItem):
|
|||
|
||||
def start_logger(self, _widget, Terminal):
|
||||
""" 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,
|
||||
buttons=self.dialog_buttons)
|
||||
savedialog.set_do_overwrite_confirmation(True)
|
||||
|
|
|
@ -34,7 +34,7 @@ class TerminalShot(plugin.MenuItem):
|
|||
# Grab a pixbuf of the terminal
|
||||
orig_pixbuf = widget_pixbuf(terminal)
|
||||
|
||||
savedialog = gtk.FileChooserDialog(title="Save image",
|
||||
savedialog = gtk.FileChooserDialog(title=_("Save image"),
|
||||
action=self.dialog_action,
|
||||
buttons=self.dialog_buttons)
|
||||
savedialog.set_do_overwrite_confirmation(True)
|
||||
|
|
|
@ -1167,7 +1167,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Font colour:</property>
|
||||
<property name="label" translatable="yes">Font color:</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="top_attach">1</property>
|
||||
|
@ -1707,7 +1707,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Colour:</property>
|
||||
<property name="label" translatable="yes">Color:</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="top_attach">1</property>
|
||||
|
|
|
@ -18,6 +18,7 @@ from translation import _
|
|||
from encoding import TerminatorEncoding
|
||||
from terminator import Terminator
|
||||
from plugin import PluginRegistry
|
||||
from version import APP_NAME
|
||||
|
||||
def color2hex(widget):
|
||||
"""Pull the colour values out of a Gtk ColorPicker widget and return them
|
||||
|
@ -81,75 +82,75 @@ class PrefsEditor:
|
|||
'solarized': '#073642:#dc322f:#859900:#b58900:\
|
||||
#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:\
|
||||
#839496:#6c71c4:#93a1a1:#fdf6e3'}
|
||||
keybindingnames = { 'zoom_in' : 'Increase font size',
|
||||
'zoom_out' : 'Decrease font size',
|
||||
'zoom_normal' : 'Restore original font size',
|
||||
'new_tab' : 'Create a new tab',
|
||||
'cycle_next' : 'Focus the next terminal',
|
||||
'cycle_prev' : 'Focus the previous terminal',
|
||||
'go_next' : 'Focus the next terminal',
|
||||
'go_prev' : 'Focus the previous terminal',
|
||||
'go_up' : 'Focus the terminal above',
|
||||
'go_down' : 'Focus the terminal below',
|
||||
'go_left' : 'Focus the terminal left',
|
||||
'go_right' : 'Focus the terminal right',
|
||||
'rotate_cw' : 'Rotate terminals clockwise',
|
||||
'rotate_ccw' : 'Rotate terminals counter-clockwise',
|
||||
'split_horiz' : 'Split horizontally',
|
||||
'split_vert' : 'Split vertically',
|
||||
'close_term' : 'Close terminal',
|
||||
'copy' : 'Copy selected text',
|
||||
'paste' : 'Paste clipboard',
|
||||
'toggle_scrollbar' : 'Show/Hide the scrollbar',
|
||||
'search' : 'Search terminal scrollback',
|
||||
'page_up' : 'Scroll upwards one page',
|
||||
'page_down' : 'Scroll downwards one page',
|
||||
'page_up_half' : 'Scroll upwards half a page',
|
||||
'page_down_half' : 'Scroll downwards half a page',
|
||||
'line_up' : 'Scroll upwards one line',
|
||||
'line_down' : 'Scroll downwards one line',
|
||||
'close_window' : 'Close window',
|
||||
'resize_up' : 'Resize the terminal up',
|
||||
'resize_down' : 'Resize the terminal down',
|
||||
'resize_left' : 'Resize the terminal left',
|
||||
'resize_right' : 'Resize the terminal right',
|
||||
'move_tab_right' : 'Move the tab right',
|
||||
'move_tab_left' : 'Move the tab left',
|
||||
'toggle_zoom' : 'Maximise terminal',
|
||||
'scaled_zoom' : 'Zoom terminal',
|
||||
'next_tab' : 'Switch to the next tab',
|
||||
'prev_tab' : 'Switch to the previous tab',
|
||||
'switch_to_tab_1' : 'Switch to the first tab',
|
||||
'switch_to_tab_2' : 'Switch to the second tab',
|
||||
'switch_to_tab_3' : 'Switch to the third tab',
|
||||
'switch_to_tab_4' : 'Switch to the fourth tab',
|
||||
'switch_to_tab_5' : 'Switch to the fifth tab',
|
||||
'switch_to_tab_6' : 'Switch to the sixth tab',
|
||||
'switch_to_tab_7' : 'Switch to the seventh tab',
|
||||
'switch_to_tab_8' : 'Switch to the eighth tab',
|
||||
'switch_to_tab_9' : 'Switch to the ninth tab',
|
||||
'switch_to_tab_10' : 'Switch to the tenth tab',
|
||||
'full_screen' : 'Toggle fullscreen',
|
||||
'reset' : 'Reset the terminal',
|
||||
'reset_clear' : 'Reset and clear the terminal',
|
||||
'hide_window' : 'Toggle window visibility',
|
||||
'group_all' : 'Group all terminals',
|
||||
'group_all_toggle' : 'Group/Ungroup all terminals',
|
||||
'ungroup_all' : 'Ungroup all terminals',
|
||||
'group_tab' : 'Group terminals in tab',
|
||||
'group_tab_toggle' : 'Group/Ungroup terminals in tab',
|
||||
'ungroup_tab' : 'Ungroup terminals in tab',
|
||||
'new_window' : 'Create a new window',
|
||||
'new_terminator' : 'Spawn a new Terminator process',
|
||||
'broadcast_off' : 'Don\'t broadcast key presses',
|
||||
'broadcast_group' : 'Broadcast key presses to group',
|
||||
'broadcast_all' : 'Broadcast key events to all',
|
||||
'insert_number' : 'Insert terminal number',
|
||||
'insert_padded' : 'Insert zero padded terminal number',
|
||||
'edit_window_title': 'Edit window title',
|
||||
'layout_launcher' : 'Open layout launcher window',
|
||||
'next_profile' : 'Switch to next profile',
|
||||
'previous_profile' : 'Switch to previous profile'
|
||||
keybindingnames = { 'zoom_in' : _('Increase font size'),
|
||||
'zoom_out' : _('Decrease font size'),
|
||||
'zoom_normal' : _('Restore original font size'),
|
||||
'new_tab' : _('Create a new tab'),
|
||||
'cycle_next' : _('Focus the next terminal'),
|
||||
'cycle_prev' : _('Focus the previous terminal'),
|
||||
'go_next' : _('Focus the next terminal'),
|
||||
'go_prev' : _('Focus the previous terminal'),
|
||||
'go_up' : _('Focus the terminal above'),
|
||||
'go_down' : _('Focus the terminal below'),
|
||||
'go_left' : _('Focus the terminal left'),
|
||||
'go_right' : _('Focus the terminal right'),
|
||||
'rotate_cw' : _('Rotate terminals clockwise'),
|
||||
'rotate_ccw' : _('Rotate terminals counter-clockwise'),
|
||||
'split_horiz' : _('Split horizontally'),
|
||||
'split_vert' : _('Split vertically'),
|
||||
'close_term' : _('Close terminal'),
|
||||
'copy' : _('Copy selected text'),
|
||||
'paste' : _('Paste clipboard'),
|
||||
'toggle_scrollbar' : _('Show/Hide the scrollbar'),
|
||||
'search' : _('Search terminal scrollback'),
|
||||
'page_up' : _('Scroll upwards one page'),
|
||||
'page_down' : _('Scroll downwards one page'),
|
||||
'page_up_half' : _('Scroll upwards half a page'),
|
||||
'page_down_half' : _('Scroll downwards half a page'),
|
||||
'line_up' : _('Scroll upwards one line'),
|
||||
'line_down' : _('Scroll downwards one line'),
|
||||
'close_window' : _('Close window'),
|
||||
'resize_up' : _('Resize the terminal up'),
|
||||
'resize_down' : _('Resize the terminal down'),
|
||||
'resize_left' : _('Resize the terminal left'),
|
||||
'resize_right' : _('Resize the terminal right'),
|
||||
'move_tab_right' : _('Move the tab right'),
|
||||
'move_tab_left' : _('Move the tab left'),
|
||||
'toggle_zoom' : _('Maximise terminal'),
|
||||
'scaled_zoom' : _('Zoom terminal'),
|
||||
'next_tab' : _('Switch to the next tab'),
|
||||
'prev_tab' : _('Switch to the previous tab'),
|
||||
'switch_to_tab_1' : _('Switch to the first tab'),
|
||||
'switch_to_tab_2' : _('Switch to the second tab'),
|
||||
'switch_to_tab_3' : _('Switch to the third tab'),
|
||||
'switch_to_tab_4' : _('Switch to the fourth tab'),
|
||||
'switch_to_tab_5' : _('Switch to the fifth tab'),
|
||||
'switch_to_tab_6' : _('Switch to the sixth tab'),
|
||||
'switch_to_tab_7' : _('Switch to the seventh tab'),
|
||||
'switch_to_tab_8' : _('Switch to the eighth tab'),
|
||||
'switch_to_tab_9' : _('Switch to the ninth tab'),
|
||||
'switch_to_tab_10' : _('Switch to the tenth tab'),
|
||||
'full_screen' : _('Toggle fullscreen'),
|
||||
'reset' : _('Reset the terminal'),
|
||||
'reset_clear' : _('Reset and clear the terminal'),
|
||||
'hide_window' : _('Toggle window visibility'),
|
||||
'group_all' : _('Group all terminals'),
|
||||
'group_all_toggle' : _('Group/Ungroup all terminals'),
|
||||
'ungroup_all' : _('Ungroup all terminals'),
|
||||
'group_tab' : _('Group terminals in tab'),
|
||||
'group_tab_toggle' : _('Group/Ungroup terminals in tab'),
|
||||
'ungroup_tab' : _('Ungroup terminals in tab'),
|
||||
'new_window' : _('Create a new window'),
|
||||
'new_terminator' : _('Spawn a new Terminator process'),
|
||||
'broadcast_off' : _('Don\'t broadcast key presses'),
|
||||
'broadcast_group' : _('Broadcast key presses to group'),
|
||||
'broadcast_all' : _('Broadcast key events to all'),
|
||||
'insert_number' : _('Insert terminal number'),
|
||||
'insert_padded' : _('Insert padded terminal number'),
|
||||
'edit_window_title': _('Edit window title'),
|
||||
'layout_launcher' : _('Open layout launcher window'),
|
||||
'next_profile' : _('Switch to next profile'),
|
||||
'previous_profile' : _('Switch to previous profile')
|
||||
}
|
||||
|
||||
def __init__ (self, term):
|
||||
|
@ -157,6 +158,7 @@ class PrefsEditor:
|
|||
self.config.base.reload()
|
||||
self.term = term
|
||||
self.builder = gtk.Builder()
|
||||
self.builder.set_translation_domain(APP_NAME)
|
||||
self.keybindings = Keybindings()
|
||||
try:
|
||||
# Figure out where our library is on-disk so we can open our
|
||||
|
|
Loading…
Reference in New Issue