Re: %find_lang does not find locale files
On 24. 05. 23 8:06, Alexander Ploumistos wrote: @churchyard: Miro, is it possible to tell %pyproject_save_files about the locale directory or should I resort to one of the workarounds mentioned in the ticket? %pyproject_save_files currently detects and marks %lang files if they: - have a .mo suffix - are directly in a directory called LC_MESSAGES The parent directory of LC_MESSAGES is considered the language code. If it has _ in it, the part after it is removed. For example: /usr/lib/python3.11/site-packages/notebook/i18n/fr_FR/LC_MESSAGES/nbui.mo ...is marked as %lang(fr). Does the %lang tag serve any purpose when there aren't separate language-specific packages? I honestly don't know. I guess RPM can be instructed not to install %lang(...) files of disabled languages, but I don't know how/when that actually happens. -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: %find_lang does not find locale files
On Wed, May 24, 2023 at 5:11 AM Parag Nemade wrote: > > Hi, > > > On Tue, May 23, 2023 at 11:58 PM Alexander Ploumistos > wrote: >> >> Hello, >> >> I know this has been asked before, more recently four years ago in >> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OQDWCHFDTBKCPHWF2VLPUF74WC76TCNY/#6VUBRYAAZMX6SOREM7ZENDV44MIPE7WH >> >> I'm not sure what the "right" way of dealing with this is, so I would >> really appreciate any advice. >> >> I've recently packaged input-remapper[1] and during the review[2], >> Zbigniew pointed out that I had forgotten to use the %find_lang macro >> for the localization files. >> >> The translations are placed in /usr/share/input-remapper/lang/ and >> apparently, %find_lang does not want to find them there. Is there a >> standard location that works across linux distributions? I guess that >> if the answer is yes, I should get upstream to move their files there. >> If not, is there something else to be done? >> >> >> 1. https://github.com/sezanzeb/input-remapper/ >> 2. https://bugzilla.redhat.com/show_bug.cgi?id=2180418 >> ___ > > > I did a quick search and found this discussion > https://pagure.io/packaging-committee/issue/1058#comment-775111 > Maybe this will not help you but will give some insights. Thank you Parag, that was indeed enlightening. @churchyard: Miro, is it possible to tell %pyproject_save_files about the locale directory or should I resort to one of the workarounds mentioned in the ticket? Does the %lang tag serve any purpose when there aren't separate language-specific packages? ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: %find_lang does not find locale files
Hi, On Tue, May 23, 2023 at 11:58 PM Alexander Ploumistos < alex.ploumis...@gmail.com> wrote: > Hello, > > I know this has been asked before, more recently four years ago in > > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OQDWCHFDTBKCPHWF2VLPUF74WC76TCNY/#6VUBRYAAZMX6SOREM7ZENDV44MIPE7WH > > I'm not sure what the "right" way of dealing with this is, so I would > really appreciate any advice. > > I've recently packaged input-remapper[1] and during the review[2], > Zbigniew pointed out that I had forgotten to use the %find_lang macro > for the localization files. > > The translations are placed in /usr/share/input-remapper/lang/ and > apparently, %find_lang does not want to find them there. Is there a > standard location that works across linux distributions? I guess that > if the answer is yes, I should get upstream to move their files there. > If not, is there something else to be done? > > > 1. https://github.com/sezanzeb/input-remapper/ > 2. https://bugzilla.redhat.com/show_bug.cgi?id=2180418 > ___ > I did a quick search and found this discussion https://pagure.io/packaging-committee/issue/1058#comment-775111 Maybe this will not help you but will give some insights. Regards, Parag. ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
%find_lang does not find locale files
Hello, I know this has been asked before, more recently four years ago in https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OQDWCHFDTBKCPHWF2VLPUF74WC76TCNY/#6VUBRYAAZMX6SOREM7ZENDV44MIPE7WH I'm not sure what the "right" way of dealing with this is, so I would really appreciate any advice. I've recently packaged input-remapper[1] and during the review[2], Zbigniew pointed out that I had forgotten to use the %find_lang macro for the localization files. The translations are placed in /usr/share/input-remapper/lang/ and apparently, %find_lang does not want to find them there. Is there a standard location that works across linux distributions? I guess that if the answer is yes, I should get upstream to move their files there. If not, is there something else to be done? 1. https://github.com/sezanzeb/input-remapper/ 2. https://bugzilla.redhat.com/show_bug.cgi?id=2180418 ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue