- Preparation for language translation part 4
This commit is contained in:
parent
6a3a982057
commit
ac87e0a4a7
@ -253,7 +253,7 @@ class Tunnel:
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please first import tunnel.')
|
msg_t = _('Please first import tunnel')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
14
wg_main.py
14
wg_main.py
@ -487,7 +487,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please select a tunnel from the list.')
|
msg_t = _('Please select a tunnel from the list')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@ -496,7 +496,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please first import tunnel.')
|
msg_t = _('Please first import tunnel')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
''' Button Trash '''
|
''' Button Trash '''
|
||||||
@ -602,7 +602,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('The new name may contain only 12 characters.')
|
msg_t = _('The new name may contain only 12 characters')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
elif len(self.lb_rename.get()) == 0:
|
elif len(self.lb_rename.get()) == 0:
|
||||||
@ -611,7 +611,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('At least one character must be entered.')
|
msg_t = _('At least one character must be entered')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
elif any(ch in special_characters for ch in self.lb_rename.get()):
|
elif any(ch in special_characters for ch in self.lb_rename.get()):
|
||||||
@ -658,7 +658,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('Please select a tunnel from the list.')
|
msg_t = _('Please select a tunnel from the list')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
''' Button Rename '''
|
''' Button Rename '''
|
||||||
@ -1096,7 +1096,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please select a tunnel from the list.')
|
msg_t = _('Please select a tunnel from the list')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@ -1105,7 +1105,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please first import tunnel.')
|
msg_t = _('Please first import tunnel')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user