Oryzone / PHPoAuthUserData

Extension library for Lusitanian/PHPoAuthLib to extract user profile data from various oAuth providers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add FIELD_LANGUAGE

cmfcmf opened this issue · comments

Most providers support the user's language.

Good point @cmfcmf !
Anyway i've seen providers use different standards (eg: it_IT,it). What do you think about normalizing this value?

Normalizing would be great.

I was thinking about leaving it not notmalized.
In the first case (it_IT) we have information about language+locale.
In the second (it) we have only information about the language.

If we normalize string expressed in the first case (to match the second one) we lose some potentially important information (locale).
In some cases it is important to distinguish between the two (eg: pt_PT and pt_BR are two different languages).

I think we should find more detailed information about language codes before proceeding. Do you have some experience with it?

I think we should find more detailed information about language codes before proceeding. Do you have some experience with it?

No. Not really.