Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iso19139] multilingual, or option to prefer a language? #938

Open
pvgenuchten opened this issue Sep 13, 2024 · 0 comments
Open

[iso19139] multilingual, or option to prefer a language? #938

pvgenuchten opened this issue Sep 13, 2024 · 0 comments

Comments

@pvgenuchten
Copy link
Contributor

currently if you parse a document on Wasserspeicherfähigkeit, an object is returned with the german title, abstract. However the original document also has english translations for these fields. I would like an option to either store both, or prefer the english translation (if the document has it)

what is an optimal approach here?

  • add a parameter preferLanguage=en to the owslib import, which locates a selected translation and returns default if no match
  • try to store both, md.identifiation.title.{language}, for backwards compatibility, when users request md.identifiation.title the default language is returned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant