1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

[1812] Additional Translation Handover

This commit is contained in:
David Sangrey 2024-04-22 17:36:37 -04:00
parent 080d9f98f2
commit f3fe146c66
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -12,11 +12,8 @@ from __future__ import annotations
import sys
import tkinter as tk
from tkinter import ttk, messagebox
from typing import TYPE_CHECKING
from PIL import ImageGrab
if TYPE_CHECKING:
def _(x: str) -> str: return x
from l10n import translations as tr
if sys.platform == 'win32':
PAGEFG = 'SystemWindowText'
@ -108,8 +105,8 @@ class EntryMenu(ttk.Entry):
if img:
# Hijack existing translation, yes it doesn't exactly match here.
# LANG: Generic error prefix - following text is from Frontier auth service;
messagebox.showwarning(_('Error'),
_('Cannot paste non-text content.')) # LANG: Can't Paste Images or Files in Text
messagebox.showwarning(tr.tl('Error'),
tr.tl('Cannot paste non-text content.')) # LANG: Can't Paste Images or Files in Text
return
text = self.clipboard_get()
if self.selection_present() and text: