maulaku / wwdiary

Automatically exported from code.google.com/p/wwdiary
0 stars 0 forks source link

RTL language in point logs appear LTR #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter food description using Right-to-left language (in-my-case Hebrew), 
android RTL support provides correct formatting
2. Sync to web
3. Go to Point logs page in the forums

What is the expected output? What do you see instead?
for instance if I would add
"Cream Cheese 5% (100 gr)"
in Hebrew it would be
"גבינת שמנת 5% (100 גרם)"
where the last bracket would be on the left of the sentence and of course the 
sentence would be right aligned.
(see example in Google translate:
http://translate.google.com/#auto|iw|Cream%20Cheese%205%25%20(100%20gr)%0A
The rendering there is should display correctly)

Instead Point's log display entries as Left-Aligned Left-To-Right, which causes 
all sort of formatting errors, including misplaced punctuation.

What version of WWDiary are you using (check the "what's new" screen)?
6.3.6 fixed per issue 45 (thanks for that)

What version of Android are you running?
2.3.6

What device do you have (phone/tablet)?  What brand/model?
Samsung Galaxy Tab P1000

Please provide any additional information below.

Original issue reported on code.google.com by g...@szkolnik.com on 17 Mar 2012 at 11:50

GoogleCodeExporter commented 9 years ago
Is this affecting anything on your phone when the data syncs back down?

I'll look into fixing alignment on the website.

Original comment by ddumont on 17 Mar 2012 at 5:14

GoogleCodeExporter commented 9 years ago
no, not at all, this is all a rendering issue on the web side.

Original comment by g...@szkolnik.com on 17 Mar 2012 at 7:39

GoogleCodeExporter commented 9 years ago
I'll be looking at this soon.

Original comment by ddumont on 4 Apr 2012 at 1:54

GoogleCodeExporter commented 9 years ago
Any chance you had a look at this?
Is there anything I can assist with (with my web/coding skills)?

Original comment by g...@szkolnik.com on 1 May 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Part of the problem is I'm not entirely sure that my forum is RTL compatible 
and I haven't really been able to explore how to enable RTL mode for 
subsections on the site.

I also don't have any way to know that it's an RTL language, because I don't 
think I can identify the language the items are written in programatically.   
If you have any experience with this, please let me know.

I might be able to add a preference to allow you to indicate you're using an 
RTL language and have that sync up to the web so i can use that, but it's kind 
of weird to have a phone preference that only effects a web setting :)

Either that or I have to work on a web UI for preferences before I can address 
this.

Original comment by ddumont on 1 May 2012 at 1:19

GoogleCodeExporter commented 9 years ago
I'll try and play a little with the css on that page, if I find anything 
concrete I'll let you know.
I'll try and look for a generic approach, one that doesn't necessarily requires 
a specific setting.

One possible solution would be to detect the direction of the language on the 
phone, and just store it in the db

I'll try and take a look at it this week, and let you know what I find.

Original comment by g...@szkolnik.com on 1 May 2012 at 9:49