Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#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 Luke Plant, 14 years ago

Type: Bug

comment:2 by Luke Plant, 14 years ago

Severity: Normal

comment:3 by Julien Phalip, 14 years ago

Triage Stage: UnreviewedDesign decision needed

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".

comment:4 by Ramiro Morales, 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?

in reply to:  4 comment:5 by Claude Paroz, 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 waldeinburg, 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 Claude Paroz, 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 Claude Paroz <claude@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 5dc4437dfad8241a5830e4d2ab59635b814281d6:

Fixed #15714 -- Added note about capitalization of LANG_INFO name_local

comment:9 by Claude Paroz <claude@…>, 12 years ago

In 5229ac20bedea017bfd29e6cb03916715c09cc7f:

[1.5.x] Fixed #15714 -- Added note about capitalization of LANG_INFO name_local

Backport of 5dc4437df from master.

Note: See TracTickets for help on using tickets.
Back to Top