Skip to content

Allow an SP ServiceName per language #991

@Lapeth

Description

@Lapeth

Currently there can be only one ServiceName tag constructed in metadata, but more are sometimes needed for different languages.

metadata.py, function do_attribute_consuming_service defines the service name as service_name = [md.ServiceName(text=text, lang=lang)]. It can probably be a list with multiple entries, one for each language, resulting in something like:

<ns0:ServiceName xml:lang="en">Some service name</ns0:ServiceName>
<ns0:ServiceName xml:lang="da">Et eller andet servicenavn</ns0:ServiceName>
...

It would be easy to check if conf.name is a list of tuples, and construct the service_name list by it, similar to how it's done in do_key_descriptor

Originally posted by @Lapeth in #377

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions