1
0
Fork 0

fix(make_readme): antifeatures_list content was modified by reference thus breaking translations

This commit is contained in:
Laurent Peuch 2024-03-07 00:39:38 +01:00 committed by OniriCorpe
parent c3bb3b51d3
commit b12f9c9919

View file

@ -4,6 +4,7 @@ import argparse
import json import json
import os import os
from pathlib import Path from pathlib import Path
from copy import deepcopy
import toml import toml
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader
@ -74,7 +75,7 @@ def generate_READMEs(app_path: str):
disclaimer = None disclaimer = None
# TODO: Add url to the documentation... and actually create that documentation :D # TODO: Add url to the documentation... and actually create that documentation :D
antifeatures = { a: antifeatures_list[a] for a in from_catalog.get('antifeatures', [])} antifeatures = { a: deepcopy(antifeatures_list[a]) for a in from_catalog.get('antifeatures', [])}
for k, v in antifeatures.items(): for k, v in antifeatures.items():
antifeatures[k]['title'] = value_for_lang(v['title'], lang) antifeatures[k]['title'] = value_for_lang(v['title'], lang)
if manifest.get("antifeatures", {}).get(k, None): if manifest.get("antifeatures", {}).get(k, None):