Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

RebeccaBlackOS - First Live CD Running Wayland Display Server

The Linux powered LAN Gaming House

5 Best Android Apps For Reddit Lovers

SECURITY: Flash Player Sandbox Comes to Firefox

The Future of Kubuntu

SECURITY: Symantec should not be afraid of 'open' source code

Linux 3.3 rc3

60 Fantastic Free Android Apps

Ready for Another Linux Tablet? Meet the Rugged Trimble Yuma

How can the layman get involved with free software?



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:Globalize your Web Applications: PHP's Locale Formatting Classes
Globalize your Web Applications: PHP's Locale Formatting Classes
Dec 29, 2009, 05 :37 UTC (0 Talkback[s]) (4193 reads)

(Other stories by Rob Gravelle)

"In programming, a locale is a set of parameters that define attributes for a user's specific geographic location, including the user's language, country and any special variant preferences that the user wants to see in his/her user interface. In Part 1 of the Globalize your Web Applications series, we examined what the locale entails, how they are supported by different operating systems, and we looked at some specific implementations in PHP. The Part 2 article continued with the PHP language as we explored how to make your dates locale aware, using both the native datetime functions as well as the I18N_DateTime class. Today, we'll be covering PHP's two remaining I18N Libraries, the I18N_Number and I18N_Currency classes, both of which are subclasses of the I18N_DateTime function.

"Formatting numbers

"Just as dates and times can vary greatly depending on the country, numbers are also written differently in different languages. For instance, the number 123456.789 would be written as 123 456,789 in German. Here are some LCIDs and their associated number formats for various languages and countries:"

Complete Story

Related Stories:
Open Source - the Ultimate Globalization Tool(Dec 16, 2008)
Internationalizing Web Applications Using Dojo(Aug 08, 2008)
Mastering Characters Sets in Linux (Weird Characters, part 2)(Nov 25, 2009)
Character Sets in Linux or: Why do I See Those Weird Characters?(Nov 12, 2009)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP