Skip to content

GUI: fix qt translation load error

lilulu requested to merge lilulu/recoll:fix_qm_load_error into master

Locales are something like en_US / zh_CN / zh_SG.

Before this commit recoll will manually truncate them to en / zh, then load language file 'recoll_en.qm' and 'recoll_zh.qm'. 'recoll_en_US.qm' and 'recoll_zh_CN.qm' will be always ignored.

After this commit, recoll will try to load 'recoll_zh_CN.qm' first. If file is not found, it will fall back to 'recoll_zh.qm'. This is Qt's default behavior.

Merge request reports