[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1115109: mate-utils: Japanese translation of mate-screenshot causes filename prefix that breaks `*.png` matching



Package: mate-utils
Version: 1.26.1-1+b3
Severity: minor
Tags: l10n patch
X-Debbugs-Cc: kisaragi.effective@gmail.com

Dear Maintainer,

In the Japanese locale, `/usr/bin/mate-screenshot` generates filenames where the word "スクリーンショット" ("screenshot") appears **at the end of the filename**, after the `.png` extension. This breaks filename matching with `*.png` patterns used in various scripts and file processors.

## Example:

Expected:
  スクリーンショット %s - %d.png
Actual:
  %s - %d.png スクリーンショット

This appears to be caused by faulty translation of format strings.

As a result, a generated filename might look like this:

  2025-09-13 11-44-46.png スクリーンショット

## Suggestion

To avoid ending with it, modify the `ja.po` with the attached patch.

-- System Information:
Debian Release: 13.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-22-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP:ja
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mate-utils depends on:
ii  libatk1.0-0t64            2.56.2-1
ii  libc6                     2.41-12
ii  libcairo2                 1.18.4-1+b1
ii  libcanberra-gtk3-0        0.30-18
ii  libcanberra0              0.30-18
ii  libgdk-pixbuf-2.0-0       2.42.12+dfsg-4
ii  libglib2.0-0t64           2.84.3-1
ii  libgtk-3-0t64             3.24.49-3
ii  libgtop-2.0-11            2.41.3-1+b2
ii  libice6                   2:1.1.1-1
ii  libmate-panel-applet-4-1  1.27.1-4.1
ii  libmatedict6              1.26.1-1+b3
ii  libpango-1.0-0            1.56.3-1
ii  libpangocairo-1.0-0       1.56.3-1
ii  libsm6                    2:1.2.6-1
ii  libudisks2-0              2.10.1-12.1
ii  libx11-6                  2:1.8.12-1
ii  libxext6                  2:1.3.4-1+b3
ii  mate-desktop-common       1.26.2-1.2
ii  mate-utils-common         1.26.1-1
ii  zlib1g                    1:1.3.dfsg+really1.3.1-1+b1

mate-utils recommends no packages.

mate-utils suggests no packages.

-- debconf-show failed
--- ja.po.orig	2025-09-13 22:46:07.902350756 +0900
+++ ja.po	2025-09-13 22:46:41.938352573 +0900
@@ -3139,12 +3139,12 @@
 #: mate-screenshot/src/mate-screenshot.c:916
 #, c-format
 msgid "Screenshot at %s.png"
-msgstr "%s.png スクリーンショット"
+msgstr "スクリーンショット %s.png"
 
 #: mate-screenshot/src/mate-screenshot.c:923
 #, c-format
 msgid "Screenshot at %s - %d.png"
-msgstr "%s - %d.png スクリーンショット"
+msgstr "スクリーンショット %s - %d.png"
 
 #: mate-screenshot/src/mate-screenshot.c:1315
 msgid "Grab a window instead of the entire screen"

Reply to: