Skip to content

Commit

Permalink
babel needs long form of language
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Dec 18, 2019
1 parent 48e666e commit 6471b50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/utils/bib2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ def main(
output_file = Path( output_file )
# tmp_filename = Path( tmp_filename )

translations = {"de" : "german", "en" : "english", "it" : "italian", "fr" : "french"}

language_translated = translations[language]

if not temp_dir.exists():
os.makedirs( temp_dir )

Expand All @@ -390,10 +394,11 @@ def main(
else:
pass


write_dummy_latex(
citekeys,
bib_file,
language,
language_translated,
keywords,
template_path = tex_template,
tmp_filename = temp_dir / tmp_filename . with_suffix( ".tex" ),
Expand Down Expand Up @@ -553,9 +558,6 @@ def main(
check_executables()

language = "de"

translations = {"de" : "german", "en" : "english", "it" : "italian", "fr" : "french"}

temp_dir = Path( args.temp_dir )
references_in_html = main(
bib_file = args.bibfile,
Expand Down

0 comments on commit 6471b50

Please sign in to comment.