exilence-next icon indicating copy to clipboard operation
exilence-next copied to clipboard

Missing label translations on MacOS/Linux (and Windows 11?)

Open chrisbigart opened this issue 4 years ago • 11 comments

Describe the bug The interface is filled with placeholder values for text labels. The problem seems to be that react-i18next is not finding the proper translation files: Screen Shot 2021-10-18 at 5 33 35 AM Errors in the output log: Screen Shot 2021-10-18 at 5 34 57 AM

If I remove the "public" portion of the path when looking for translations, everything works as expected: Screen Shot 2021-10-18 at 5 19 42 AM

In function getTranslationPath(lng: string, ns: string) { replacing pathname: path.join(electronService.appPath, ../public/${langPath}), with pathname: path.join(electronService.appPath, ../${langPath}), fixes the problem on my machine.

I don't know enough about Electron and how it packages things up to feel confident in a submitting a patch for this, but hopefully it should be enough for you to figure out how to fix the issue.

Someone on the Reddit thread also noted having the problem on Windows 11, so I don't know if this is a MacOS-only issue or not.

To Reproduce Build from source on MacOS.

Version Latest 1.1.1 build from 'dev' branch

chrisbigart avatar Oct 18 '21 09:10 chrisbigart

The same problem happens when building from source on Linux ('master' branch, v1.1.0 tag). I applied the same fix to solve the issue.

ledoune avatar Oct 18 '21 10:10 ledoune

I'm having the same issue on win10.

Edit: restarting exilence fixed it.

moxaj avatar Oct 20 '21 20:10 moxaj

I got same issue on linux (arch),

node v14.18.1
npm 8.1.0

fixed problem by opener suggestion (from master branch)

AndyHoang avatar Oct 24 '21 15:10 AndyHoang

I am getting this issue on release version 1.1.4 (not compiled from source, downloaded from Github) on Windows 10.

Riizade avatar Oct 24 '21 18:10 Riizade

Using the automatic upgrade mechanism from 1.1.4 to 1.1.5 fixed this for me (again, Github release version, Windows 10), but it doesn't seem like there were any commits that directly relate to this bug between those versions (I could be mistaken)

it may be the case that the upgrade mechanism placed the translation files into the correct directory such that they were loaded properly

Riizade avatar Oct 25 '21 21:10 Riizade

I'm still seeing this issue on 1.1.5 (using ArchLinux). Changing the localization path as in the opener post fixes the problem.

NINNiT avatar Oct 26 '21 09:10 NINNiT

Experiencing the issue on Win 10, sometimes restarting fixes it but most of the time it doesn't. I'm not knowledgeable about compiling to fix the issue with the opener's fix.

JamieBunpup avatar Oct 28 '21 08:10 JamieBunpup

Issue was fixed for a time after deleting appdata files, but has returned, really hope it gets fixed.

JamieBunpup avatar Nov 07 '21 06:11 JamieBunpup

I get this issue on Windows 10 as well. Have had the issue for as long as I remember using this tool.

To reproduce, I just have to open the executable from command prompt, batch/powershell script, or autohotkey. Opening the program from the GUI (e.g. start menu, shortcut, or executable itself) opens the application without any text rendering issues.

GonePh1shing avatar Aug 22 '22 11:08 GonePh1shing

building and running the AppImage on Linux shows the same issue. A past PR had fixed this: https://github.com/viktorgullmark/exilence-next/pull/675 But code in that path has been reworked since: https://github.com/viktorgullmark/exilence-next/commit/950dd4f479bc6e189b98afc94c3932fc63db1af7

I don't know if this is a regression, and I can't seem to fix it this time.

ktzee avatar Sep 23 '22 20:09 ktzee

@ktzee This change still fixes the label issue for me (AppImage/Linux)

NINNiT avatar Sep 26 '22 13:09 NINNiT