Fix mistake with taking properties from article instead translation
This commit is contained in:
@ -3,10 +3,9 @@ defmodule Outlook.InternalTree.Translation do
|
||||
alias Outlook.InternalTree.{InternalNode,TranslationUnit}
|
||||
|
||||
def render_translation([%TranslationUnit{} = tunit | rest], translation) do
|
||||
[ %TranslationUnit{tunit |
|
||||
eph: add_title_attribute(tunit.eph, tunit.content),
|
||||
content: Map.get(translation, tunit.nid, %{content: "ERROR!!! Missing Tunit in translation!"})
|
||||
|> Map.get(:content)
|
||||
tl_tunit = Map.get(translation, tunit.nid)
|
||||
[ %TranslationUnit{tl_tunit |
|
||||
eph: add_title_attribute(tunit.eph, tunit.content)
|
||||
} | render_translation(rest, translation) ]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user