Skip to content

Commit

Permalink
[1812] Additional Translation Handover
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Apr 22, 2024
1 parent 080d9f9 commit f3fe146
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions myNotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
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'
Expand Down Expand Up @@ -108,8 +105,8 @@ def paste(self) -> None:
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:
Expand Down

0 comments on commit f3fe146

Please sign in to comment.