| Summary: | Applications mo files of foreign languages are not installed | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | katnatek <j.alberto.vc> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | andrewsfarm, davidwhodgins, geiger.david68210, lewyssmith, marja11, xerxes2 |
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
|
Description
katnatek
2023-12-03 06:54:19 CET
katnatek
2023-12-03 06:54:30 CET
Version:
Cauldron =>
9 This is completely normal and not a bug, it install only languages which are set in your "/etc/rpm/macros" files %_install_langs ENCODINGS: And this come from the "%find_lang" macro in a rpm spec file. CC:
(none) =>
geiger.david68210 Documentation: https://wiki.mageia.org/en/Packaging_localisation_policy
katnatek
2023-12-03 20:36:26 CET
CC:
(none) =>
andrewsfarm, marja11 Thank you David, the information helps me,@Marja and @Thomas, I think we need to add additional information in the wiki for QA applications in languages != system language Can you do that? It can easily be corrected if the English is not quite right. So we can close this, but of course it can still receive comments. CC:
(none) =>
lewyssmith (In reply to Lewis Smith from comment #4) > Can you do that? It can easily be corrected if the English is not quite > right. > > So we can close this, but of course it can still receive comments. https://wiki.mageia.org/en/QA_process_for_testing_foreign_language_issues#CLI Maybe need a lot of work, but is the beginning I ran into this problem a while ago. I think that you must install the language locale package to make this work. I put it here in the wiki. https://wiki.mageia.org/en/Systemd-timesyncd#Locale CC:
(none) =>
xerxes2 (In reply to Jens Persson from comment #6) > I ran into this problem a while ago. I think that you must install the > language locale package to make this work. I put it here in the wiki. > > https://wiki.mageia.org/en/Systemd-timesyncd#Locale If you tweak /etc/rpm/macros you not need to install additional "locales" packages, for test like in this case, maybe if you need aspell/hunspell dictionaries, but I'm not sure (In reply to katnatek from comment #7) > (In reply to Jens Persson from comment #6) > > I ran into this problem a while ago. I think that you must install the > > language locale package to make this work. I put it here in the wiki. > > > > https://wiki.mageia.org/en/Systemd-timesyncd#Locale > > If you tweak /etc/rpm/macros you not need to install additional "locales" > packages, for test like in this case, maybe if you need aspell/hunspell > dictionaries, but I'm not sure But I will add as suggestion I can't remember now why I was looking into this but I found out that when you install a locale package it runs a file (forgot name but you can probably find it with "ls /usr/bin/|grep locale") which in turn updates the rpm macro file. # rpm -q --scripts locales-fr
postinstall scriptlet (using /bin/sh):
/usr/bin/locale_install.sh fr_BE fr_CA fr_CH fr_FR fr_LU
preuninstall scriptlet (using /bin/sh):
if [ "$1" = "0" ]; then
/usr/bin/locale_uninstall.sh fr_BE fr_CA fr_CH fr_FR fr_LU
fi
With all locale packages installed ...
# cat /etc/rpm/macros
%_install_langs ENCODINGS:aa_DJ:aa_ER:aa_ET:af_ZA:agr_PE:ak_GH:am_ET:an_ES:anp_IN:ar_AE:ar_BH:ar_DZ:ar_EG:ar_IN:ar_IQ:ar_JO:ar_KW:ar_LB:ar_LY:ar_MA:ar_OM:ar_QA:ar_SA:ar_SD:ar_SS:ar_SY:ar_TN:ar_YE:as_IN:ast_ES:ayc_PE:az_AZ:az_IR:be_BY:bem_ZM:ber_DZ:ber_MA:bg_BG:bhb_IN:bho_IN:bho_NP:bi_VU:bn_BD:bn_IN:bo_CN:bo_IN:br_FR:brx_IN:bs_BA:byn_ER:ca_AD:ca_ES:ca_FR:ca_IT:ce_RU:chr_US:ckb_IQ:cmn_TW:crh_UA:cs_CZ:csb_PL:cv_RU:cy_GB:da_DK:de_AT:de_BE:de_CH:de_DE:de_IT:de_LI:de_LU:doi_IN:dsb_DE:dv_MV:dz_BT:el_CY:el_GR:en:en_AG:en_AU:en_BE:en_BW:en_CA:en_DK:en_GB:en_HK:en_IE:en_IL:en_IN:en_NG:en_NZ:en_PH:en_SC:en_SG:en_US:en_ZA:en_ZM:en_ZW:eo:eo_XX:es_AR:es_BO:es_CL:es_CO:es_CR:es_CU:es_DO:es_EC:es_ES:es_GT:es_HN:es_MX:es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:ts_ZA:tt_RU:ug_CN:uk_UA:unm_US:ur_IN:ur_PK:uz_UZ:ve_ZA:vi_VN:wa_BE:wae_CH:wal_ET:wo_SN:xh_ZA:yi_US:yo_NG:yue_HK:yuw_PG:zh_CN:zh_HK:zh_SG:zh_TW:zu_ZA
IIRC, it only has an impact on packages installed or updated after the locale
has been installed, though I could be wrong on that.CC:
(none) =>
davidwhodgins (In reply to Dave Hodgins from comment #10) > # rpm -q --scripts locales-fr > postinstall scriptlet (using /bin/sh): > /usr/bin/locale_install.sh fr_BE fr_CA fr_CH fr_FR fr_LU > preuninstall scriptlet (using /bin/sh): > if [ "$1" = "0" ]; then > /usr/bin/locale_uninstall.sh fr_BE fr_CA fr_CH fr_FR fr_LU > fi > > With all locale packages installed ... > # cat /etc/rpm/macros > %_install_langs > ENCODINGS:aa_DJ:aa_ER:aa_ET:af_ZA:agr_PE:ak_GH:am_ET:an_ES:anp_IN:ar_AE: > ar_BH:ar_DZ:ar_EG:ar_IN:ar_IQ:ar_JO:ar_KW:ar_LB:ar_LY:ar_MA:ar_OM:ar_QA: > ar_SA:ar_SD:ar_SS:ar_SY:ar_TN:ar_YE:as_IN:ast_ES:ayc_PE:az_AZ:az_IR:be_BY: > bem_ZM:ber_DZ:ber_MA:bg_BG:bhb_IN:bho_IN:bho_NP:bi_VU:bn_BD:bn_IN:bo_CN: > bo_IN:br_FR:brx_IN:bs_BA:byn_ER:ca_AD:ca_ES:ca_FR:ca_IT:ce_RU:chr_US:ckb_IQ: > cmn_TW:crh_UA:cs_CZ:csb_PL:cv_RU:cy_GB:da_DK:de_AT:de_BE:de_CH:de_DE:de_IT: > de_LI:de_LU:doi_IN:dsb_DE:dv_MV:dz_BT:el_CY:el_GR:en:en_AG:en_AU:en_BE:en_BW: > en_CA:en_DK:en_GB:en_HK:en_IE:en_IL:en_IN:en_NG:en_NZ:en_PH:en_SC:en_SG: > en_US:en_ZA:en_ZM:en_ZW:eo:eo_XX:es_AR:es_BO:es_CL:es_CO:es_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ti_ET:tig_ER:tk_TM:tl_PH:tn_ZA:to_TO:tpi_PG:tr_CY: > tr_TR:ts_ZA:tt_RU:ug_CN:uk_UA:unm_US:ur_IN:ur_PK:uz_UZ:ve_ZA:vi_VN:wa_BE: > wae_CH:wal_ET:wo_SN:xh_ZA:yi_US:yo_NG:yue_HK:yuw_PG:zh_CN:zh_HK:zh_SG:zh_TW: > zu_ZA > > > IIRC, it only has an impact on packages installed or updated after the locale > has been installed, though I could be wrong on that. You are right, is why I put https://wiki.mageia.org/en/QA_process_for_testing_foreign_language_issues#Reinstalling_current_version_of_affected_package |