Code

Opened 7 years ago

Closed 4 years ago

#5519 closed (wontfix)

Capitalized names for czech language

Reported by: Petr Marhoun <petr.marhoun@…> Owned by: garcia_marc
Component: Internationalization Version: newforms-admin
Severity: Keywords: nfa-someday
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In Django this kind of translations is used for my language:

msgid "Add %s"
msgstr "%s: přidat"

msgid "Change %s"
msgstr "%s: změnit"

So "Add contact" is translated as "kontakt: přidat" - title is not capitalized. So I would like if admin capitalizes all titles. It is possible, I use it in my branch.

I thought that this kind of change should be sent to django-developers mailing list first. But there was no answer so there is a ticket.

I would like to create patch - if you think that it can be applied.

Attachments (2)

06-support-for-cs.diff (4.2 KB) - added by Petr Marhoun <petr.marhoun@…> 7 years ago.
01-support-for-cs.diff (3.9 KB) - added by Petr Marhoun <petr.marhoun@…> 7 years ago.
new version - after autoescape merge (depends only on #5425 now)

Download all attachments as: .zip

Change History (8)

comment:1 Changed 7 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

comment:2 Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

  • Has patch set
  • Keywords admin, titles removed
  • Patch needs improvement set
  • Summary changed from [newforms-admin] - capitalized titles to Capitalized names for czech language

I want to fix these problems:

#: contrib/admin/options.py:524
#, python-format
msgid "Add %s"
msgstr "%s: přidat"

#: contrib/admin/templates/admin/change_list.html:18
#, python-format
msgid "Add %(name)s"
msgstr "%(name)s: přidat"

#: contrib/admin/options.py:599
#, python-format
msgid "Change %s"
msgstr "%s: změnit"

#: contrib/admin/views/main.py:150
#, python-format
msgid "Select %s"
msgstr "%s: vybrat"

#: contrib/admin/views/main.py:150
#, python-format
msgid "Select %s to change"
msgstr "%s: vybrat pro změnu"

#: contrib/admin/templates/admin/pagination.html:10
#, python-format
msgid "%(count)s %(verbose_name)s"
msgstr "%(verbose_name)s: %(count)s"

#: contrib/admin/templates/admin/pagination.html:12
#, python-format
msgid "%(count)s %(verbose_name_plural)s"
msgstr "%(verbose_name_plural)s: %(count)s"

The last two are from #5425 so it depends on resolution of the patch.

I am sorry, my patch depends on some other patches - it is for simple merging. So my patch can't be applied without problem. But I would like to prepare proper patch, if it would be accepted.

Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

new version - after autoescape merge (depends only on #5425 now)

comment:3 Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

  • Patch needs improvement unset

comment:4 Changed 7 years ago by Karen Tracey <kmtracey@…>

  • Keywords nfa-someday added

Old admin looks to be no different from newforms-admin for this issue, so this should not block merge.

comment:5 Changed 5 years ago by garcia_marc

  • Owner changed from nobody to garcia_marc

comment:6 Changed 4 years ago by mtredinnick

  • Resolution set to wontfix
  • Status changed from new to closed

This is really in conflict with how we want to proceed in #5518. If a translation (or other) is providing a string, we aren't going to mess around with the capitalization. The translator will know best what they want to do.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.