Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kImageAnnotator not tanslated with deb package #359

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

Closed
DamirPorobic opened this issue Jun 23, 2020 · 6 comments · Fixed by #708
Closed

kImageAnnotator not tanslated with deb package #359

DamirPorobic opened this issue Jun 23, 2020 · 6 comments · Fixed by #708
Assignees
Labels

Comments

@DamirPorobic
Copy link
Member

Translation files for the annotator are not packaged with the deb package, the CI needs to be adjusted to package those files too.

@DamirPorobic
Copy link
Member Author

@hosiet you mentioned that you package for debian, just wanted to ask if you know how to include files in a deb package that are not part of the installation? I have translation files for kImageAnnotator that I need to package together with ksnip but kImageAnnotator is included as a static library in ksnip and therefor build before ksnip. Any idea how to solve this?

@hosiet
Copy link
Contributor

hosiet commented Jun 23, 2020

If it's only about copying extra files when building a deb package, that's surely doable. Please refer to the FILES section in https://manpages.debian.org/unstable/debhelper/dh_install.1.en.html .

But kimageannotator might be a little different since the translation files are plaintext .ts files in the source repo. Maybe you should consider invoking lrelease before build actually starts.

For packages in Debian's official repo (pending Debian's internal review now), the libraries I prepared are dynamic libraries so installation of translation files is not a problem.

@DamirPorobic
Copy link
Member Author

I'm planning to use the .qm files. During installation of the ksnip those files need to be installed at <ksnip_translation_directory>/../../kImageAnnotator/translations/

Or they could be even placed in the same directory as ksnip's own translations.

I'm doing this already for other packages like rpm, appImage, windows executable.

@DamirPorobic
Copy link
Member Author

@hosiet any idea how to resolve this for out deb package? The lImageAnnotator is not a dynamic library in this case.

@hosiet
Copy link
Contributor

hosiet commented Sep 14, 2021

Obviously the .qm files are not installed in the final .deb file. Where are these files during build? Once located, we can manually copy them and put then into .deb file during packaging.

@DamirPorobic
Copy link
Member Author

Their here:
image

The part from root and up to tmp (including tmp) is the env var INSTALL_PREFIX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants