-
-
Notifications
You must be signed in to change notification settings - Fork 198
Translations are not working in ksnip snap package #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@LyzardKing could this be a Plasma only issue or is it affecting Gnome too? |
Strange... I'll look into it, the snap should have the different languages included, and we didn't explicitly set a language |
@LyzardKing have you had the chance to look into this? |
I looked at this today, and the status is: |
hi, any progress? |
Sorry, haven't had time to look into it yet. |
I haven't had too much time either... Where should ksnip look for the translations? Is there a debug option that can show the files it's trying to access? I tried an strace but that didn't return anything useful |
@LyzardKing we are looking here for the translation files on Unix based system: I'll try to add some logging that shows where we're looking for translations. |
That folder is in the snap at /snap/ksnip/current/share/ksnip/translations. |
@LyzardKing I've added a debug logger, you have to enable it through the application settings. It doesn't log to much at the moment but the translation search paths should be there. |
it's looking in the wrong folders...
I'll debug the snap builder and test it EDIT: Just as a note, it should be looking in |
The "current" folder is breaking the search, where does that come from? Without the current the third search would have found it. |
@DamirPorobic In the third attempt, why is it going up two directories? Is that intended? |
The "current" folder is replaced by the 388 folder. |
in and DATAROOTDIR should only add |
Yes, it's intended because at run time we only know where the executable is, that being in the bin directory and we assume from that position, up two directories should be the shared folder. I think that was done for the snap specifically. |
shouldn't the |
We are located in And I was wrong, that two directories up was for the AppImage, not the snap. |
But the problem is that the "appimage" one is not going back one, but two directories. |
in TranslationLoader.cpp the two paths are set as: So it's never going up one folder, only none ore 2 |
Yeah, we need an additional search. Strange thought that it used to work and now doesn't. |
but what system uses the bin/share structure? |
we could fix it in the snap directly with a layout probably... I'll test it |
Under windows the translations are next to the executable in a folder called |
@LyzardKing have you tried this layout or should I extend the translation loader? |
I tried but unfortunately it cannot link properly to the desired folder. |
but wait a second.. I have another idea |
No.. it doesn't work. If you want to add the translation loader (making it look one directory up) it should work. |
Fix pushed, can someone test please? |
Debug: Loading translation for ksnip from /share/ksnip/translations, failed. It's not up yet I guess |
I managed to link the folder in the snap to the correct location, but it's still not finding the translation files, even though it's looking in a folder that has the files |
Have you tried with the updated translation loader? |
I tried the latest edge version, and it doesn't make a difference |
to be sure that it is the latest you could trigger a rebuild from the snapcraft website |
I have triggered a new build. The last build was 7 hours old. |
It still doesn't work. There is something weird in how ksnip is loading the folder... |
Could it be a permission issue? That we're not allowed to access that directory? |
@LyzardKing any updates? |
I can't get it to work... |
Ok, thanks! |
@LyzardKing did you have time to look into this further? Maybe have a look at other projects, this seems to be a standard use case that you have translations in snaps. |
@LyzardKing any change we get this into 1.9.2? I'll be wrapping up the patch release soon, would be nice to close this one finally. |
I tried, but the snap continues to give the same error. Even if I force the translation to the correct folder I still get the same error. |
For translations there is as |
Describe the bug
Ksnip is not translated to spanish
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ksnip translated to spanish language
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: