help text formatting, line breaks and spaces

Bug #1648743 reported by Robert Simai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Triaged
Medium
Unassigned

Bug Description

I read
https://bugs.launchpad.net/horizon/+bug/1583757
and probably this bug is redundant, I however don't see this fixed for the following:

horizon/openstack_dashboard/dashboards/project/static/dashboard/project/containers/create-container-modal.html

contains a text block

        <p translate>
          A container is a storage compartment for your data and provides a way
          for you to organize your data. You can think of a container as a
          folder in Windows&reg; or a directory in UNIX&reg;. The primary difference
          between a container and these other file system concepts is that
          containers cannot be nested. You can, however, create an unlimited
          number of containers within your account. Data must be stored in a
          container so you must have at least one container defined in your
          account prior to uploading data.
        </p>

that apparently gets converted into

horizon/openstack_dashboard/locale/de/LC_MESSAGES/djangojs.po

msgid ""
"A container is a storage compartment for your data and provides a way\n"
" for you to organize your data. You can think of a container as a\n"
" folder in Windows® or a directory in UNIX®. The primary "
"difference\n"
" between a container and these other file system concepts is that\n"
" containers cannot be nested. You can, however, create an "
"unlimited\n"
" number of containers within your account. Data must be stored in "
"a\n"
" container so you must have at least one container defined in your\n"
" account prior to uploading data."
msgstr ""
"A container is a storage compartment for your data and provides a way\n"
" for you to organise your data. You can think of a container as a\n"
" folder in Windows® or a directory in UNIX®. The primary "
"difference\n"
" between a container and these other file system concepts is that\n"
" containers cannot be nested. You can, however, create an "
"unlimited\n"
" number of containers within your account. Data must be stored in "
"a\n"
" container so you must have at least one container defined in your\n"
" account prior to uploading data."

There shouldn't be line breaks or spaces at the beginning of the lines within the po file as this makes translations very difficult. It should be continuous text and from what I see the application can easily handle it.

Changed in horizon:
status: New → Triaged
importance: Undecided → Medium
milestone: none → pike-1
tags: added: low-hanging-fruit
Revision history for this message
Akihiro Motoki (amotoki) wrote :

This is actually a duplication of bug 1592965.

For django template, 'trimmed' option works, but for djangojs (JavaScript and Angular template) we use a different string extractor. As described in bug 1592965, one the fix was merged and reverted due to unexpected behavior (bug 1606837).

This is the current status.

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.