Bug#918122: gsettings schema files contain translations, causes summary and description shown in Chinese

Roderich Schupp roderich.schupp at gmail.com
Thu Jan 3 15:17:16 GMT 2019


Package: tracker-extract
Version: 2.1.5-4
Severity: minor

This shows the problem:

:; LANG=de_DE.UTF-8 gsettings describe org.freedesktop.Tracker.Miner.Files
ignored-files
要避免的檔案樣式列表
:; LANG=en_US.UTF-8 gsettings describe org.freedesktop.Tracker.Miner.Files
ignored-files
要避免的檔案樣式列表

The description is always in Chinese. dconf-editor is similarly affected.

The rason is that the gschema files for tracker-extract:

/usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml
/usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml
/usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Writeback.gschema.xml

contain translations, e.g.

      <description>List of file patterns to avoid</description>
      <description xml:lang="as">উপেক্ষা কৰিবলে ফাইল বিন্যাসমূহৰ
তালিকা</description>
      <description xml:lang="bg">Списък с шаблони за имена на файловете, които
да не бъдат индексирани</description>
      <description xml:lang="bs">Lista datotečnih uzoraka za
izbječi</description>
...
      <description xml:lang="vi">Danh sách các mẫu tập tin để tránh
xa</description>
      <description xml:lang="zh_CN">要忽略的文件模式列表</description>
      <description xml:lang="zh_HK">要避免的檔案樣式清單</description>
      <description xml:lang="zh_TW">要避免的檔案樣式列表</description>


Of all the 163 .gschema.xml files on my machine these are the only ones that
contain translations.
Apparently the glib functions to handle .gschmema.xml file don't expect
translations and look
only for tags like <description> (with no regard for xml:lang), hence the last
<description> "wins" -
which is typically the Chinese (TW) one.

The meson build of tracker-extract merges translations into the .gschema.xml
files, but
the obsolete autotools build - if I interprete the Makefiles correctly -
wouldn't have done this
(i.e. is calls intltool-merge with --no-translations).

Cheers, Roderich






-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.20.0 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tracker-extract depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.30.1-2
ii  libc6                                        2.28-4
ii  libcue2                                      2.2.1-2
ii  libexempi3                                   2.4.5-2
ii  libexif12                                    0.6.21-5
ii  libflac8                                     1.3.2-3
ii  libgexiv2-2                                  0.10.9-1
ii  libgif7                                      5.1.4-3
ii  libglib2.0-0                                 2.58.2-1
ii  libgsf-1-114                                 1.14.44-1
ii  libgstreamer-plugins-base1.0-0               1.14.4-1
ii  libgstreamer1.0-0                            1.14.4-1
ii  libgxps2                                     0.3.0-4
ii  libicu63                                     63.1-5
ii  libiptcdata0                                 1.0.5-2
ii  libjpeg62-turbo                              1:1.5.2-2+b1
ii  libosinfo-1.0-0                              1.2.0-1
ii  libpng16-16                                  1.6.36-2
ii  libpoppler-glib8                             0.69.0-2
ii  libseccomp2                                  2.3.3-3
ii  libtagc0                                     1.11.1+dfsg.1-0.2+b2
ii  libtiff5                                     4.0.10-3
ii  libtotem-plparser18                          3.26.1-2
ii  libtracker-miner-2.0-0                       2.1.6-5
ii  libtracker-sparql-2.0-0                      2.1.6-5
ii  libvorbisfile3                               1.3.6-1
ii  libxml2                                      2.9.8+dfsg-1
ii  tracker                                      2.1.6-5

tracker-extract recommends no packages.

tracker-extract suggests no packages.

-- no debconf information


More information about the pkg-gnome-maintainers mailing list