Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
updated Polish translation, also small fixes in msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Szymaniak committed Jul 10, 2019
1 parent cbf0130 commit d467867
Show file tree
Hide file tree
Showing 8 changed files with 922 additions and 492 deletions.
2 changes: 1 addition & 1 deletion subsync/cmdargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def getParser():
batch = subparsers.add_parser('batch', help=_('batch synchronization'))
batch.set_defaults(mode='batch')
batch.add_argument('batch', type=str, help=_('batch job yaml description'))
batch.add_argument('--effort', type=float, help=_('how hard to try (0.0 - 1.0)'))
batch.add_argument('--effort', type=float, help=_('how hard to try (0.0 - 1.0) (used with --cli)'))

cli = parser.add_argument_group(_('headless options'))
cli.add_argument('--cli', action='store_true', help=_('headless mode (command line only)'))
Expand Down
7 changes: 2 additions & 5 deletions subsync/data/descriptions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
maxDistInfo = _(
'''Subtitle time will be changed no more than this value.
Higher value will result in longer synchronization,
but if you set this too low, synchronization will fail.''')
'''Subtitle time will be changed no more than this value. Higher value will result in longer synchronization, but if you set this too low, synchronization will fail.''')

effortInfo = _(
'''How hard should I work to synchronize subtitles.
Higher value will result with better synchronization, but it will take longer.''')
'''How hard should I work to synchronize subtitles. Higher value will result with better synchronization, but it will take longer.''')

noLanguageSelectedQuestion = _(
'''Langauge selection is not mandatory, but could drastically improve synchronization accuracy.
Expand Down
4 changes: 2 additions & 2 deletions subsync/gui/batchwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def onSliderMaxDistScroll(self, event):

def onSliderEffortScroll(self, event):
val = self.m_sliderEffort.GetValue() / 100
self.m_textEffort.SetLabel(_('{:.2f}').format(val))
self.m_textEffort.SetLabel('{:.2f}'.format(val))
settings().set(minEffort=val)

@error_dlg
Expand Down Expand Up @@ -169,7 +169,7 @@ def onFilesDrop(self, col, paths, index):
title = _('Sort dropped files')
flags = wx.YES_NO | wx.ICON_QUESTION
with wx.RichMessageDialog(self, msg, title, flags) as dlg:
dlg.ShowCheckBox(_('don\'t show this message again (could be changed in settings)'))
dlg.ShowCheckBox(_('don\'t show this message again'))
sort = dlg.ShowModal() == wx.ID_YES

if dlg.IsCheckBoxChecked():
Expand Down
2 changes: 1 addition & 1 deletion subsync/gui/components/assetsdlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def askForLangSelection(parent, tasks):
title = _('No language selected')
flags = wx.YES_NO | wx.ICON_QUESTION
with wx.RichMessageDialog(parent, '\n'.join(msg), title, flags) as dlg:
dlg.ShowCheckBox(_('don\'t show this message again (could be changed in settings)'))
dlg.ShowCheckBox(_('don\'t show this message again'))
res = dlg.ShowModal() == wx.ID_YES
if res and dlg.IsCheckBoxChecked():
settings().showLanguageNotSelectedPopup = False
Expand Down
169 changes: 0 additions & 169 deletions subsync/gui/layout/batchwin.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -2516,175 +2516,6 @@
</object>
</object>
</object>
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxEXPAND | wxALL</property>
<property name="proportion">1</property>
<object class="wxPanel" expanded="1">
<property name="BottomDockable">1</property>
<property name="LeftDockable">1</property>
<property name="RightDockable">1</property>
<property name="TopDockable">1</property>
<property name="aui_layer"></property>
<property name="aui_name"></property>
<property name="aui_position"></property>
<property name="aui_row"></property>
<property name="best_size"></property>
<property name="bg">wxSYS_COLOUR_WINDOW</property>
<property name="caption"></property>
<property name="caption_visible">1</property>
<property name="center_pane">0</property>
<property name="close_button">1</property>
<property name="context_help"></property>
<property name="context_menu">1</property>
<property name="default_pane">0</property>
<property name="dock">Dock</property>
<property name="dock_fixed">0</property>
<property name="docking">Left</property>
<property name="enabled">1</property>
<property name="fg"></property>
<property name="floatable">1</property>
<property name="font"></property>
<property name="gripper">0</property>
<property name="hidden">1</property>
<property name="id">wxID_ANY</property>
<property name="max_size"></property>
<property name="maximize_button">0</property>
<property name="maximum_size"></property>
<property name="min_size"></property>
<property name="minimize_button">0</property>
<property name="minimum_size"></property>
<property name="moveable">1</property>
<property name="name">m_panelDrop</property>
<property name="pane_border">1</property>
<property name="pane_position"></property>
<property name="pane_size"></property>
<property name="permission">protected</property>
<property name="pin_button">1</property>
<property name="pos"></property>
<property name="resize">Resizable</property>
<property name="show">1</property>
<property name="size"></property>
<property name="subclass">; forward_declare</property>
<property name="toolbar_pane">0</property>
<property name="tooltip"></property>
<property name="window_extra_style"></property>
<property name="window_name"></property>
<property name="window_style">wxTAB_TRAVERSAL</property>
<event name="OnChar"></event>
<event name="OnEnterWindow"></event>
<event name="OnEraseBackground"></event>
<event name="OnKeyDown"></event>
<event name="OnKeyUp"></event>
<event name="OnKillFocus"></event>
<event name="OnLeaveWindow"></event>
<event name="OnLeftDClick"></event>
<event name="OnLeftDown"></event>
<event name="OnLeftUp"></event>
<event name="OnMiddleDClick"></event>
<event name="OnMiddleDown"></event>
<event name="OnMiddleUp"></event>
<event name="OnMotion"></event>
<event name="OnMouseEvents"></event>
<event name="OnMouseWheel"></event>
<event name="OnPaint"></event>
<event name="OnRightDClick"></event>
<event name="OnRightDown"></event>
<event name="OnRightUp"></event>
<event name="OnSetFocus"></event>
<event name="OnSize"></event>
<event name="OnUpdateUI"></event>
<object class="wxBoxSizer" expanded="1">
<property name="minimum_size"></property>
<property name="name">bSizer8</property>
<property name="orient">wxVERTICAL</property>
<property name="permission">none</property>
<object class="sizeritem" expanded="0">
<property name="border">20</property>
<property name="flag">wxALL|wxEXPAND</property>
<property name="proportion">0</property>
<object class="wxStaticText" expanded="0">
<property name="BottomDockable">1</property>
<property name="LeftDockable">1</property>
<property name="RightDockable">1</property>
<property name="TopDockable">1</property>
<property name="aui_layer"></property>
<property name="aui_name"></property>
<property name="aui_position"></property>
<property name="aui_row"></property>
<property name="best_size"></property>
<property name="bg"></property>
<property name="caption"></property>
<property name="caption_visible">1</property>
<property name="center_pane">0</property>
<property name="close_button">1</property>
<property name="context_help"></property>
<property name="context_menu">1</property>
<property name="default_pane">0</property>
<property name="dock">Dock</property>
<property name="dock_fixed">0</property>
<property name="docking">Left</property>
<property name="enabled">1</property>
<property name="fg">wxSYS_COLOUR_WINDOWTEXT</property>
<property name="floatable">1</property>
<property name="font"></property>
<property name="gripper">0</property>
<property name="hidden">0</property>
<property name="id">wxID_ANY</property>
<property name="label">Drop files here to sort subtitles and references automatically</property>
<property name="max_size"></property>
<property name="maximize_button">0</property>
<property name="maximum_size"></property>
<property name="min_size"></property>
<property name="minimize_button">0</property>
<property name="minimum_size"></property>
<property name="moveable">1</property>
<property name="name">m_textDrop</property>
<property name="pane_border">1</property>
<property name="pane_position"></property>
<property name="pane_size"></property>
<property name="permission">protected</property>
<property name="pin_button">1</property>
<property name="pos"></property>
<property name="resize">Resizable</property>
<property name="show">1</property>
<property name="size"></property>
<property name="style">wxALIGN_CENTRE|wxST_ELLIPSIZE_MIDDLE</property>
<property name="subclass">; forward_declare</property>
<property name="toolbar_pane">0</property>
<property name="tooltip"></property>
<property name="window_extra_style"></property>
<property name="window_name"></property>
<property name="window_style"></property>
<property name="wrap">-1</property>
<event name="OnChar"></event>
<event name="OnEnterWindow"></event>
<event name="OnEraseBackground"></event>
<event name="OnKeyDown"></event>
<event name="OnKeyUp"></event>
<event name="OnKillFocus"></event>
<event name="OnLeaveWindow"></event>
<event name="OnLeftDClick"></event>
<event name="OnLeftDown"></event>
<event name="OnLeftUp"></event>
<event name="OnMiddleDClick"></event>
<event name="OnMiddleDown"></event>
<event name="OnMiddleUp"></event>
<event name="OnMotion"></event>
<event name="OnMouseEvents"></event>
<event name="OnMouseWheel"></event>
<event name="OnPaint"></event>
<event name="OnRightDClick"></event>
<event name="OnRightDown"></event>
<event name="OnRightUp"></event>
<event name="OnSetFocus"></event>
<event name="OnSize"></event>
<event name="OnUpdateUI"></event>
</object>
</object>
</object>
</object>
</object>
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxEXPAND | wxALL</property>
Expand Down
18 changes: 0 additions & 18 deletions subsync/gui/layout/batchwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,24 +205,6 @@ def __init__( self, parent ):
fgSizer5.Fit( self.m_panelSettings )
fgSizer4.Add( self.m_panelSettings, 0, wx.EXPAND, 5 )

self.m_panelDrop = wx.Panel( self.m_panelMain, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
self.m_panelDrop.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
self.m_panelDrop.Hide()

bSizer8 = wx.BoxSizer( wx.VERTICAL )

self.m_textDrop = wx.StaticText( self.m_panelDrop, wx.ID_ANY, _(u"Drop files here to sort subtitles and references automatically"), wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE|wx.ST_ELLIPSIZE_MIDDLE )
self.m_textDrop.Wrap( -1 )
self.m_textDrop.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOWTEXT ) )

bSizer8.Add( self.m_textDrop, 0, wx.ALL|wx.EXPAND, 20 )


self.m_panelDrop.SetSizer( bSizer8 )
self.m_panelDrop.Layout()
bSizer8.Fit( self.m_panelDrop )
fgSizer4.Add( self.m_panelDrop, 1, wx.EXPAND |wx.ALL, 5 )

self.m_panelProgress = wx.Panel( self.m_panelMain, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
self.m_panelProgress.Hide()

Expand Down
Binary file modified subsync/locale/pl/LC_MESSAGES/messages.mo
Binary file not shown.
Loading

0 comments on commit d467867

Please sign in to comment.