If there are multiple languages supported s-c buids a xapian index for each of them (that takes some time of course).
That works with the branch and if you run:
$ rm -rf ./data/xapian
$ PYTHONPATH=. utils/update-software-center --local
$ ./software-center
it will build multiple databases, e.g. for me:
$ ls data/xapian
ca de en es fr he hu it pt ru
What is missing is:
- cleanup when languages get removed
- ensuring that there is always a default fallback DB
- ensure to not rebuild if there are no changes in the app-install-data
- robustness
But the biggest problem is that the package descriptions are only availalbe in the system default language. That is a problem
with "apt" and not software-center. It download only that. I add a apt task to allow it having a option to download all supported
languages.
I sketched out how this could work in lp:~mvo/software-center/build-i18n-for-all
If there are multiple languages supported s-c buids a xapian index for each of them (that takes some time of course). software- center --local
That works with the branch and if you run:
$ rm -rf ./data/xapian
$ PYTHONPATH=. utils/update-
$ ./software-center
it will build multiple databases, e.g. for me:
$ ls data/xapian
ca de en es fr he hu it pt ru
What is missing is:
- cleanup when languages get removed
- ensuring that there is always a default fallback DB
- ensure to not rebuild if there are no changes in the app-install-data
- robustness
But the biggest problem is that the package descriptions are only availalbe in the system default language. That is a problem
with "apt" and not software-center. It download only that. I add a apt task to allow it having a option to download all supported
languages.