MozillaZine

Issue with Hindi translation using Google Translate

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
CazzaT
 
Posts: 2
Joined: March 16th, 2015, 7:06 am

Post Posted March 16th, 2015, 8:28 am

I have added Google Translate on my organisation's website and it is working OK in Firefox with all languages except hindi, When you choose to translate to hindi the css breaks and the page is not rendered correctly. The website is built in Plone. Has anyone experienced the same issue, any advice would be really welcome.

Thanks

LoudNoise
Moderator

User avatar
 
Posts: 40048
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Post Posted March 16th, 2015, 6:30 pm

Moving to Web Development. Can you give us a link to the page?
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."

CazzaT
 
Posts: 2
Joined: March 16th, 2015, 7:06 am

Post Posted March 17th, 2015, 4:25 am

Hi, this is a link to the site http://www.sabp.nhs.uk/IAPT
Regards

jscher2000

User avatar
 
Posts: 10077
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted March 19th, 2015, 10:56 pm

I have no idea why that is happening. If I choose Arabic, there is a flash of that unstyled look and then the CSS kicks in again. I use basically the same widget code on my blog and there are no issues, but it's WordPress, not Plone.

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted March 20th, 2015, 1:20 am

Possibly competing default styles on some lower level?
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Pim

User avatar
 
Posts: 2201
Joined: May 17th, 2004, 2:04 pm
Location: Netherlands

Post Posted October 27th, 2015, 12:57 am

The problem is that Google Translate translates the title attribute of the custom.css stylesheet. For Hindi, it changes title="custom.css" into title="कस्टम सीएसएस". Apparently, this causes the browser to think that this stylesheet should not be loaded by default, but only if the user selects it explicitly from the View->Page Style menu.
(If the menu bar is not visible on your system, you can make it temporarily visible by typing Alt+V on many systems.)

It's not just Hindi that has problems by the way; the same thing happens with Dutch.

As for a solution, I'm not sure, but you could try removing the title attribute altogether.
Groetjes, Pim

Return to Web Development / Standards Evangelism


Who is online

Users browsing this forum: No registered users and 2 guests