Localization of Google Cloud Print dialog page

140 views
Skip to first unread message

manik...@gmail.com

unread,
Oct 8, 2014, 4:25:59 AM10/8/14
to gcp-dev...@googlegroups.com
I have tried embedding 'Google Cloud Print' in my android app where I show a webview to display GCP Dialog. I am following the approach suggested here.
Currently if my device language is non-English (ex: Hindi), GCP Dialog still renders in English only. Webview doesn't even ask to translate the page into device language.
How could GCP Dialog be displayed in the device language when opened in webview of my app?

If I open GCP Dialog page in Google chrome for android, chrome asks me to convert the GCP dialog page into the device language. This behavior seems fine since the user is getting an option to convert the page into device language. But on opening the GCP Dialog page in android app, webview does not ask to convert the GCP dialog page into the device language. This is a bad behavior as per user if my app supports localization.

Doesn't Google cloud print detect device locale and renders the page in target language?
How Google cloud print supports different locales for the countries where English is purely unknown? Or, Google have not targeted such audience yet?

In hope of quick replies.

Thanks,
Manik Jindal

manik...@gmail.com

unread,
Oct 31, 2014, 8:49:51 AM10/31/14
to gcp-dev...@googlegroups.com, manik...@gmail.com
On opening following URL, GCP Dialog is displayed in device locale:
"hi" in above URL is locale.

If the user is not signed in, GCP Dialog redirects the user to Google Account Sign-in page. URL looks like teh following:
Even though Google Accounts SignIn url has locale parameter, page does not show up in the given locale.

Investigation:
If "service=cloudprint" parameter is removed from the above url, page gets display in given locale.

Why so? Is it bug?

Robert Toscano

unread,
Nov 3, 2014, 6:03:51 PM11/3/14
to gcp-dev...@googlegroups.com, manik...@gmail.com
Are you still able to reproduce? After login redirection, I still have the hl=hi parameter in the URL. I tested navigating to https://www.google.com/cloudprint/dialog.html?hl=hi in an incognito window and then signing in. The result was the print dialog in hindi.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Print Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcp-developer...@googlegroups.com.
Visit this group at http://groups.google.com/group/gcp-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/gcp-developers/8a3eced6-2efe-4ea2-ad71-bfd92564b8a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Manik Jindal

unread,
Nov 3, 2014, 11:25:23 PM11/3/14
to Robert Toscano, gcp-dev...@googlegroups.com

Apologize me if I was not clear.
GCP dialig page renders fine in given locale after sign-in. But there is another problem that Google Accounts Sign-in page which you have got in incognito mode, didn't show up in Hindi locale.

Robert Toscano

unread,
Nov 11, 2014, 9:03:17 PM11/11/14
to Manik Jindal, gcp-dev...@googlegroups.com
Ah thanks for point this out. Yes our login page is currently not translated.

Manik Jindal

unread,
Dec 11, 2014, 11:49:37 AM12/11/14
to Robert Toscano, gcp-dev...@googlegroups.com
Visiting this link will open Google Login page in target language while this won't.
If you look more closely, the first link is generated by removing 'service=cloudprint' param from the second link. If value of the service param is replaced with 'mail', the google logon page comes in target language. Here is the link.

To understand more, is this Google cloudprint's configuration to not convert the login page into target language?
Could you please track the issue or make it in reach of Google Accounts' team?

--
Manik Jindal

Robert Toscano

unread,
Jan 22, 2015, 6:43:58 PM1/22/15
to Manik Jindal, gcp-dev...@googlegroups.com
This is now fixed.
Reply all
Reply to author
Forward
0 new messages