[CentOS] BCP 47 support in CentOS 7 PHP
Alice Wonder
alice at domblogger.netSat Oct 31 11:00:32 UTC 2015
- Previous message: [CentOS] Disaster recovery recommendations
- Next message: [CentOS] Broadcom BCM4313 support broken with kernel 2.6.32-573.7.1.el6.centos.plus.x86_64?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is something I would like to share, and if possible, get feedback. I am working on a calendar webapp - something to replace Google Calendar for webmasters that do not like the idea of their users being tracked. Part of that project involves time zone selection, and time zone selection I want internationalized, and I found the existing functions in PHP to be extremely poor. As in the php function for getting the preferred language from the browser was often flat out incorrect. That led me to creating my own class for BCP 47 support : https://calendar.librelamp.com/BCP47 Not perfect yet (er, probably never will be perfect) but at least the bugs I find are my bugs so I can figure out how to fix them. Just found one - with perfectly valid language tag es-419 when the class attempts to create a glibc language tag, it uses es_ES.utf8 which is obviously wrong. I didn't take into account UN region codes when it tries to find a glibc match. But anyway, I know it is asking a lot, but I want to get this right and would love feedback from anyone who deals with internationalizing php web applications. Thanks, Alice
- Previous message: [CentOS] Disaster recovery recommendations
- Next message: [CentOS] Broadcom BCM4313 support broken with kernel 2.6.32-573.7.1.el6.centos.plus.x86_64?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list