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

Make default language configurable #469

Merged
merged 2 commits into from Jun 16, 2020

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Jun 10, 2020

Adds a new command line parameter for choosing the default language returned for queries. If not set the results will returned in the locale form (aka the contents of the 'name' tag without language).

As a result of these changes it is now also possible to explicitly ask for locale results with 'lang=default'. I'm not particularly attached to using 'default' here. It just happens to be what we call it in the mapping configuration already.

Warning: This PR changes the behaviour of existing installations in that the default is to return the default name tag. You can easily switch back to the old behaviour by setting -default-language en on the command line.

Fixes #441.

Adds a new command line parameter for choosing the default language
returned for queries. If not set the results will returned in the
locale form (aka the contents of the 'name' tag without language).

As a result of these changes it is now also possible to explicitly
ask for locale results with 'lang=default'.
@lonvia lonvia merged commit aacace8 into komoot:master Jun 16, 2020
@lonvia lonvia deleted the configurable-default-language branch December 5, 2020 16:14
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

Successfully merging this pull request may close these issues.

When querying without lang param, return name instead of name_en
1 participant