#13191 closed (duplicate)
Localization of application names
Reported by: | IsakovAN | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have a solution for localizing application names in admin interface. First of all I have replace "{{ app_label|capfirst }}" with "{% trans app_label.title %}" in all admin templates breadcrumbs and aplication lists:
app_index.html
base.html
base_site.html
change_form.html
change_list.html
delete_confirmation.html
delete_selected_confirmation.html
index.html
object_history.html
Than I have simple translate it with makemessages/compilemessages. It is only problem with "/admin/app_name/" pages:
"'title': _('%s administration') % capfirst(app_label)," hardcoded in /django/contrib/admin/sites.py seems bad idea. I suggest to replace it with
"'title': _('%s administration') % _(capfirst(app_label)),"
I can make a full patch if you interesting.
Multiple problems: