Gettext inside settings

Bug #1645721 reported by Radomir Dopieralski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Triaged
Low
Radomir Dopieralski

Bug Description

We are using gettext inside the local_settings.py file, and I think we shouldn't be doing that.

From what I can see, there are basically two use cases:

Default values for labels
-------------------------

Those should probably be set inside settings.py, and local_settings.py should only give an option to override them into non-translated strings. We can't translate user-provided strings anyways, because we don't know them up front.

Example values in commented code
--------------------------------

Those should probably not be translated -- the user will translate them when setting to their own values anyways. They are not translated anyways, as they are commented out, and so the translation
system doesn't pick them up.

Changed in horizon:
assignee: nobody → Radomir Dopieralski (thesheep)
Changed in horizon:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Low
milestone: none → next
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.