#15714 closed Bug (fixed)
Inconsistent capitalization of name_local in django.conf.locale.LANG_INFO
Reported by: | Claude Paroz | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I think that name_local in LANG_INFO should be either globally capitalized or not (in languages where that makes sense).
Currently, there is "Français" and "español", by instance.
Change History (9)
comment:1 by , 14 years ago
Type: | → Bug |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|
comment:3 by , 14 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
follow-up: 5 comment:4 by , 13 years ago
Easy pickings: | unset |
---|---|
UI/UX: | unset |
Claude: What are the use cases/reasons why you think "name_local in LANG_INFO should be either globally capitalized or not".
What Julien says is correct, e.g. in spanish language names aren't capitalized ("español", "inglés", "francés").
Maybe it doesn't look nice in a select form control, or it affects sorting of the options in such an UI element? Can we provide some helper or suggestion in the docs for users that wish to solve these hypothetical problems?
comment:5 by , 13 years ago
Replying to ramiro:
Claude: What are the use cases/reasons why you think "name_local in LANG_INFO should be either globally capitalized or not".
Consistency, mainly. When you present a list/menu with native names, it's not very nice to see : 'Basque, 'eesti', 'English', 'español', ...
What Julien says is correct, e.g. in spanish language names aren't capitalized ("español", "inglés", "francés").
Same for French. But if the language name is alone in a menu, it may be capitalized.
Maybe it doesn't look nice in a select form control, or it affects sorting of the options in such an UI element? Can we provide some helper or suggestion in the docs for users that wish to solve these hypothetical problems?
Is there currently a rule for name_local capitalization? I think it should be clarified at least in the file itself.
For example, "Capitalize name_local only if your language name should always appear capitalized in your language, even in the middle of a sentence" (if that is the rule of course).
comment:6 by , 12 years ago
If you make consistency, the filter language_name_local will be useless when the use case is, e.g., putting the current language inside a sentence on a multilingual site; it would create spelling errors in, e.g., Spanish as you mention. It makes little sense, IMHO, to use the local name outside the language itself, except in lists where you can use the capfirst filter to capitalize.
comment:7 by , 12 years ago
Granted.
What about this note in the file:
# About name_local: capitalize it as if your language name was appearing # inside a sentence
comment:8 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I'm not sure how inconsistent Django's i18n data currently is, but globally capitalising everything would not necessarily be a welcome change. For example, demonyms are capitalised in English but not in French (see at the bottom of the "Adjectives" section in http://en.wikipedia.org/wiki/Capitalization
So, "Français" should in fact be "français".