les traductions sont dans le thème
This commit is contained in:
parent
d17a987aa3
commit
d29d569578
|
@ -25,11 +25,8 @@ class JSONResumeReader(readers.RstReader):
|
|||
content, metadata = super().read(filename)
|
||||
if not('jsonresume' in metadata and os.path.isfile(metadata['jsonresume'])):
|
||||
raise Exception('please give a jsonresume metadata field for this type')
|
||||
if not(f'jsonresume_{self._language_code}' in metadata and os.path.isfile(metadata[f'jsonresume_{self._language_code}'])):
|
||||
raise Exception('please give a jsonresume_languagecode metadata field for this type')
|
||||
|
||||
metadata['resume'] = json.load(open(metadata['jsonresume']))
|
||||
metadata['language'] = json.load(open(metadata[f'jsonresume_{self._language_code}']))
|
||||
metadata['locale'] = self.settings.get('LOCALE', [self.settings.get('DEFAULT_LOCALE', None)])
|
||||
countryname = lambda code: 'langue'
|
||||
|
||||
|
|
Loading…
Reference in New Issue