• Bug#1108687: dolphin-emu: changing the system language does not work

    From Lucas Nussbaum@1:229/2 to All on Thu Jul 3 06:20:01 2025
    From: [email protected]

    Package: dolphin-emu
    Version: 2503+dfsg-1
    Severity: normal

    Hi,

    I tried to change the system language to french. This does not work:

    according to strace, dolphin looks for translations in
    [pid 299342] openat(AT_FDCWD, "/usr/share/games/dolphin-emu//../locale/fr/LC_MESSAGES/dolphin-emu.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce nom)
    while it is installed in /usr/share/locale/fr/LC_MESSAGES/dolphin-emu.mo

    the relevant code is:
    static bool TryInstallTranslator(const QString& exact_language_code)
    {
    for (const auto& qlang : FindPossibleLanguageCodes(exact_language_code))
    {
    std::string lang = qlang.toStdString();
    auto filename =
    #if defined _WIN32
    fmt::format("{}/Languages/{}.mo", File::GetExeDirectory(), lang)
    #elif defined __APPLE__
    fmt::format("{}/Contents/Resources/{}.lproj/dolphin-emu.mo", File::GetBundleDirectory(),
    lang)
    #elif defined LINUX_LOCAL_DEV
    fmt::format("{}/../Source/Core/DolphinQt/{}/dolphin-emu.mo", File::GetExeDirectory(), lang)
    #else
    fmt::format("{}/../locale/{}/LC_MESSAGES/dolphin-emu.mo", DATA_DIR, lang)
    #endif

    a workaround is:
    sudo ln -s /usr/share/locale /usr/share/games/locale

    but it's probably a matter of either installing the files in the correct
    path, or patching dolphin so that it searches for translation in the
    correct path.

    Best,

    Lucas


    -- System Information:
    Debian Release: 13.0
    APT prefers testing-security
    APT policy: (500, 'testing-security'), (500, 'testing'), (100, 'bookworm-fasttrack')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.12.33+deb13-amd64 (SMP w/20 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages dolphin-emu depends on:
    ii dolphin-emu-data 2503+dfsg-1
    ii libasound2t64 1.2.14-1
    ii libavcodec61 7:7.1.1-1+b1
    ii libavformat61 7:7.1.1-1+b1
    ii libavutil59 7:7.1.1-1+b1
    ii libbluetooth3 5.82-1.1
    ii libbz2-1.0 1.0.8-6
    ii libc6 2.41-9
    ii libcubeb0 0.0~git20250401.975a727+ds-1
    ii libcurl4t64 8.14.1-2
    ii libegl1 1.7.0-1+b2
    ii libenet7 1.3.18+ds-1+b1
    ii libevdev2 1.13.4+dfsg-1
    ii libfmt10 10.1.1+ds1-4
    ii libgcc-s1 14.2.0-19
    ii libglx0 1.7.0-1+b2
    ii libhidapi-hidraw0 0.14.0-1+b2
    ii liblz4-1 1.10.0-4
    ii liblzma5 5.8.1-1
    ii liblzo2-2 2.10-3+b1
    ii libmgba0.10t64 0.10.5+dfsg-1
    ii libminiupnpc18 2.2.8-2+b2
    ii libopengl0 1.7.0-1+b2
    ii libpugixml1v5 1.14-2
    ii libpulse0 17.0+dfsg1-2+b1
    ii libqt6core6t64 6.8.2+dfsg-7
    ii libqt6dbus6 6.8.2+dfsg-7
    ii libqt6gui6 6.8.2+dfsg-7
    ii libqt6widgets6 6.8.2+dfsg-7
    ii libsdl2-2.0-0 2.32.4+dfsg-1
    ii libsfml-network2.6 2.6.2+dfsg-2+b1
    ii libsfml-system2.6 2.6.2+dfsg-2+b1
    ii libspng0 0.7.4-2
    ii libstdc++6 14.2.0-19
    ii libswscale8 7:7.1.1-1+b1
    ii libtinygltf6d 2.9.5+dfsg-1
    ii libudev1 257.6-1
    ii libusb-1.0-0 2:1.0.28-1
    ii libx11-6 2:1.8.12-1
    ii libxi6 2:1.8.2-1
    ii libxrandr2 2:1.5.4-1+b3
    ii libxxhash0 0.8.3-2
    ii libzstd1 1.5.7+dfsg-1
    ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1

    dolphin-emu recommends no packages.

    dolphin-emu suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)