Closed Bug 1180111 Opened 9 years ago Closed 8 years ago

App description should be non-RTL property in Arabic view

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P4)

Avenir
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: atiqueahmedziad, Unassigned)

Details

(Whiteboard: [read comment 2][marketplace-transition])

1. Go to- https://marketplace-dev.allizom.org?lang=ar
2. Go to any app details page
3. See the app description

Actual Result:
App description is in RTL

Expected Result:
As we don't translate the app description, so it should be non-RTL property.
Working on it :)
Assignee: nobody → softfilebd
Status: NEW → ASSIGNED
Not a trivial bug because the description *can* be translated by the developer - the frontend just does not know about it at the moment.

We call the API with ?lang=ar, the API returns just a string for translated fields, without exposing which language it is in - It could be arabic, it could be the default language for the app. The API can return an object instead of a string, with all the languages, but it does not do it when 'lang' is passed, for performance reasons. 

What we could do is have the API return an object with just the translation we are interested in, but that's a backward-incompatible change, not to be made lightly.

For an app that has "en-US" as its default language, and only french and english translations, it'd look like this:

- No lang parameter (no change):
  "description": { "en-US": "description in en", "fr": "description in french" }

- With lang=ar parameter (before proposed change, what we have now):
  "description": "description in en"

- With lang=ar parameter (after proposed change):
  "description": { "en-US": "description in en" }

Once we have this, the consumer pages could use the information in the template and the JavaScript code to figure out if it needs to add/remove rtl direction on the field.
Thanks for the inputs :)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Reopening on mstriemer's saying
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Status: REOPENED → NEW
Please, someone take this bug :)
Assignee: softfilebd → nobody
Priority: -- → P4
(In reply to Mathieu Pillard [:mat] from comment #2)
> What we could do is have the API return an object with just the translation
> we are interested in, but that's a backward-incompatible change, not to be
> made lightly.

This sounds great
can i take this bug.
Sure Ayush, Assigning this to you.
Assignee: nobody → ayushagrawal288
Status: NEW → ASSIGNED
Whiteboard: [good first bug?]
Flags: needinfo?(softfilebd)
Please note that it's really not a good first bug. It involves making modifications to the API, and use those modifications in the frontend templates/js/css code.
Whiteboard: [good first bug?] → [read comment 2]
Ayush, are you still working on it ?
Flags: needinfo?(softfilebd) → needinfo?(ayushagrawal288)
Status: ASSIGNED → NEW
Flags: needinfo?(ayushagrawal288)
Assignee: ayushagrawal288 → nobody
Status: NEW → RESOLVED
Closed: 9 years ago8 years ago
Resolution: --- → WONTFIX
Whiteboard: [read comment 2] → [read comment 2][marketplace-transition]
You need to log in before you can comment on or make changes to this bug.