NigelBreslaw / ishtar-bugs

Public bug tracking for Ishtar Commander for iOS and Android
13 stars 3 forks source link

Login pages always in English regardless of language selected in Ishtar #83

Closed floatingatoll closed 8 years ago

floatingatoll commented 8 years ago

Someone reported on Slack that the login pages are always in English, regardless of the language selected in Ishtar before logging in.

floatingatoll commented 8 years ago

PSN requires an HTTP header Accept-Language: de (or ja, or es) to present the correct language at the existing login URL.

$ curl -s https://auth.api.sonyentertainmentnetwork.com/login.jsp | grep '<title>'
<title>Sign In: Sony Entertainment Network</title>
$ curl -H 'Accept-Language: de' -s ...
<title>Anmelden: Sony Entertainment Network</title>
$ curl -H 'Accept-Language: ja' -s ...
<title>サインイン: Sony Entertainment Network</title>
$ curl -H 'Accept-Language: es' -s ...
<title>Iniciar sesión: Sony Entertainment Network</title>
floatingatoll commented 8 years ago

A complete list of language two-letter acronyms accepted in the Accept-Language header is maintained at http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

floatingatoll commented 8 years ago

Looks like PSN takes https://auth.api.sonyentertainmentnetwork.com/login.jsp?request_locale=de (thanks, unnamed Slack person!)

floatingatoll commented 8 years ago

Verified that =de, =ja, =es all work as expected in that PSN url.

NigelBreslaw commented 8 years ago

Fixed already. Please verify and close

lostyBO commented 8 years ago

This is fixed. Please close.

floatingatoll commented 8 years ago

Verified fixed for 5 of 6 languages. As of build 585, the flag of Spain takes me to an English login page.

NigelBreslaw commented 8 years ago

Verify latest version. Should be fixed

floatingatoll commented 8 years ago

Verified fixed for all 7 languages