mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
[1812] Additional Translation Handover
This commit is contained in:
parent
080d9f98f2
commit
f3fe146c66
@ -12,11 +12,8 @@ from __future__ import annotations
|
|||||||
import sys
|
import sys
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from tkinter import ttk, messagebox
|
from tkinter import ttk, messagebox
|
||||||
from typing import TYPE_CHECKING
|
|
||||||
from PIL import ImageGrab
|
from PIL import ImageGrab
|
||||||
|
from l10n import translations as tr
|
||||||
if TYPE_CHECKING:
|
|
||||||
def _(x: str) -> str: return x
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
PAGEFG = 'SystemWindowText'
|
PAGEFG = 'SystemWindowText'
|
||||||
@ -108,8 +105,8 @@ class EntryMenu(ttk.Entry):
|
|||||||
if img:
|
if img:
|
||||||
# Hijack existing translation, yes it doesn't exactly match here.
|
# Hijack existing translation, yes it doesn't exactly match here.
|
||||||
# LANG: Generic error prefix - following text is from Frontier auth service;
|
# LANG: Generic error prefix - following text is from Frontier auth service;
|
||||||
messagebox.showwarning(_('Error'),
|
messagebox.showwarning(tr.tl('Error'),
|
||||||
_('Cannot paste non-text content.')) # LANG: Can't Paste Images or Files in Text
|
tr.tl('Cannot paste non-text content.')) # LANG: Can't Paste Images or Files in Text
|
||||||
return
|
return
|
||||||
text = self.clipboard_get()
|
text = self.clipboard_get()
|
||||||
if self.selection_present() and text:
|
if self.selection_present() and text:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user