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

Fix language consistency in names and descriptions #397

Closed
charphi opened this issue Feb 9, 2023 · 2 comments
Closed

Fix language consistency in names and descriptions #397

charphi opened this issue Feb 9, 2023 · 2 comments
Labels
bug Something isn't working FORMAT
Milestone

Comments

@charphi
Copy link
Member

charphi commented Feb 9, 2023

When the prefered language is not specified, the library takes the first available.
Some sources do not order theirs languages in a consistent way whithin the same response.

For example: the command sdmx-dlx list flows ESTAT returns dataflows with different lang order.

<s:Dataflows>
	<s:Dataflow id="MED_PS112" urn="urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=ESTAT:MED_PS112(1.0)" agencyID="ESTAT" version="1.0" isFinal="false">
		<c:Name xml:lang="fr">Population au 1 Janvier, par sexe et groupe d'âge</c:Name>
		<c:Name xml:lang="en">Population on 1 January by sex and by age group</c:Name>
		<c:Name xml:lang="de">Bevölkerung am 1. Januar, nach Geschlecht und Altersgruppe</c:Name>
		<s:Structure>
			<Ref id="MED_PS112" version="10.0" agencyID="ESTAT" package="datastructure" class="DataStructure"/>
		</s:Structure>
	</s:Dataflow>
	<s:Dataflow id="MED_PS115" urn="urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=ESTAT:MED_PS115(1.0)" agencyID="ESTAT" version="1.0" isFinal="false">
		<c:Name xml:lang="de">Durchschnittliche Bevölkerungszahl zur Jahresmitte</c:Name>
		<c:Name xml:lang="en">Average population (mid-year)</c:Name>
		<c:Name xml:lang="fr">Population moyenne (en milieu de période)</c:Name>
		<s:Structure>
			<Ref id="MED_PS115" version="10.0" agencyID="ESTAT" package="datastructure" class="DataStructure"/>
		</s:Structure>
	</s:Dataflow>
        ...
</s:Dataflows>
@charphi charphi added bug Something isn't working FORMAT labels Feb 9, 2023
@charphi charphi added this to the 3.0.0-beta.9 milestone Feb 9, 2023
@charphi
Copy link
Member Author

charphi commented Feb 9, 2023

Done in aec3c2b

@charphi charphi closed this as completed Feb 9, 2023
@charphi
Copy link
Member Author

charphi commented Feb 10, 2023

Improved in 64d6c89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FORMAT
Projects
None yet
Development

No branches or pull requests

1 participant