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

Remove hardcoded vocabulary ids #27

Open
DavidLeoni opened this issue Jan 15, 2016 · 1 comment
Open

Remove hardcoded vocabulary ids #27

DavidLeoni opened this issue Jan 15, 2016 · 1 comment
Labels

Comments

@DavidLeoni
Copy link
Member

There are a few places where this happens, and I don't understand well how vocabularies work

@DavidLeoni DavidLeoni added the bug label Jan 15, 2016
@DavidLeoni
Copy link
Member Author

Some info about vocabularies from Gabor:

the vocabulary id is a numerical code for a language.
it is preferable to use the language code whenever possible, as it is standard and human-understandable while the vocabulary id is not. furthermore, the vocabulary id may change across UKC versions.

there is just one case where you should prefer the vocabulary id: if using the language code leads to lots of extra web service calls, in which case you may cache and reuse the vocabulary ids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant