Wiki

Articles tagged with "i18n", sorted by ratingX
Displaying 11-15 of 15 result(s).

Local time zones and locales

Created about a year ago by Russell EnglandHow-tos9 comments – viewed 30,220 times – ( +12 / -2 )
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created about a year ago by c@cbaHow-tos0 comments – viewed 4,957 times – ( +4 )
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

Using SQLite and CDbMessageSource as a module

Created 10 months ago by pheadeauxHow-tos4 comments – viewed 4,398 times – ( +4 )
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

Custom Number Formatting or Decimal Separators and i18n

Created 9 months ago by c@cbaTutorials4 comments – viewed 9,823 times – ( +3 )
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

Entire Messages into javascript object

Created 9 months ago by markuxHow-tos0 comments – viewed 2,521 times – ( +1 )
I needed all messages with their translation into javascript. This is my solution: