finish localization support for config items in config/ dir
It is now possible to manage some config items in the _config/_ dir so that they can be localized via Weblate. This mirrors the same idea for Anti-Features and Categories. But this case is more complicated, because translators could potentially have access to change security-sensitive config items. Also, there are issues to be resolved, like how to handle the icon: ``` Traceback (most recent call last): File "/home/fdroid/fdroidserver/fdroid", line 22, in <module> fdroidserver.__main__.main() File "/home/fdroid/fdroidserver/fdroidserver/__main__.py", line 230, in main raise e File "/home/fdroid/fdroidserver/fdroidserver/__main__.py", line 211, in main mod.main() File "/home/fdroid/fdroidserver/fdroidserver/update.py", line 2346, in main index.make(archived_apps, archapks, repodirs[1], True) File "/home/fdroid/fdroidserver/fdroidserver/index.py", line 124, in make make_v2(sortedapps, apks, repodir, repodict, requestsdict, File "/home/fdroid/fdroidserver/fdroidserver/index.py", line 705, in make_v2 output["repo"] = v2_repo(repodict, repodir, archive) File "/home/fdroid/fdroidserver/fdroidserver/index.py", line 659, in v2_repo config = common.load_localized_config("config", repodir) File "/home/fdroid/fdroidserver/fdroidserver/common.py", line 526, in load_localized_config shutil.copy(os.path.join("config", value), icons_dir) File "/usr/lib/python3.9/shutil.py", line 418, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "/usr/lib/python3.9/shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: FileNotFoundError: [Errno 2] No such file or directory: 'config/fdroid-icon.png' ``` FYI @jspricke @linsui I deleted https://hosted.weblate.org/projects/f-droid/fdroiddata-config/ for now. It can be reenabled once this is complete.
issue