mirror of
https://github.com/ZuneDev/PyZuneCommerceServer.git
synced 2026-07-27 13:12:13 -07:00
Fixed hard-coding of 'en-US' locale
This commit is contained in:
@@ -73,3 +73,11 @@ def create_entry(doc: Document, title: str, id: str, href: str, date_updated: da
|
||||
entry.appendChild(create_id(doc, id))
|
||||
|
||||
return entry
|
||||
|
||||
|
||||
def create_author(doc: Document, name: str) -> Element:
|
||||
author_elem: Element = doc.createElement("a:author")
|
||||
author_name_elem: Element = doc.createElement("a:name")
|
||||
set_element_value(author_name_elem, name)
|
||||
author_elem.appendChild(author_name_elem)
|
||||
return author_elem
|
||||
|
||||
Reference in New Issue
Block a user