Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Improve: Support default language #269

Open
florianm opened this issue Dec 31, 2021 · 0 comments
Open

Improve: Support default language #269

florianm opened this issue Dec 31, 2021 · 0 comments
Projects
Milestone

Comments

@florianm
Copy link
Contributor

florianm commented Dec 31, 2021

This feature would prevent Collect to default to the first language by alphabetical order.

As per Xforms spec:

A default=”” attribute can be added to a to make it the default language, otherwise the first listed is used as the default.

Example for "first listed": English (en) vs Bavarian (bar) defaults to Bavarian.
This also concerns: aar: 'Afar', abk: 'Abkhazian', ave: 'Avestan', afr: 'Afrikaans', aka: 'Akan', amh: 'Amharic', arg: 'Aragonese', ara: 'Arabic', asm: 'Assamese', ava: 'Avaric', aym: 'Aymara', aze: 'Azerbaijani', bak: 'Bashkir', bel: 'Belarusian', bul: 'Bulgarian', bih: 'Bihari', bis: 'Bislama', bam: 'Bambara', ben: 'Bengali', bod: 'Tibetan', bre: 'Breton', bos: 'Bosnian', cat: 'Catalan, Valencian', che: 'Chechen', cha: 'Chamorro', cos: 'Corsican', cre: 'Cree', ces: 'Czech', chu: 'Church Slavic', chv: 'Chuvash', cym: 'Welsh', dan: 'Danish', deu: 'German', div: 'Divehi', dzo: 'Dzongkha', ewe: 'Ewe', ell: 'Modern Greek'.

Implementation

  • Select default: The user would need to choose the default language (checkbox? dropdown? default to first in language list = default language?).
  • Export default attribute: The XML export needs to set the default attribute.

Related

Central complains about invalid language codes when exporting to XLSForm. Central wants "English (en)", not "English".

@florianm florianm added this to the 0.5.0 milestone Dec 31, 2021
@florianm florianm added this to To do in Roadmap via automation Dec 31, 2021
@florianm florianm moved this from To do to Backlog in Roadmap Jan 27, 2022
@florianm florianm moved this from Backlog to To do in Roadmap Mar 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Roadmap
To do
Development

No branches or pull requests

1 participant