Wiki

Articles tagged with "i18n", sorted by date (updated)X
Displaying 11-20 of 27 result(s).

I18n / localised routes in Yii

Updated 2 years ago by ElecenHow-tos3 comments – viewed 4,008 times – ( +3 / -1 ) – version 1.1
So, you need localised urls made simple that follow the Yii framework guidelines?
tags: i18n, Routing

Create URL to language switcher anchor with langhandler

Updated 2 years ago by Anas AbuDayahTips2 comments – viewed 3,712 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Simple example for language translation

Updated 2 years ago by CeBeHow-tos2 comments – viewed 18,610 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

How to set up Unicode

Updated 3 years ago by Roman SolomatinHow-tos10 comments – viewed 86,991 times – ( +19 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

Using International Dates

Updated 3 years ago by nkdHow-tos4 comments – viewed 36,335 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Entire Messages into javascript object

Updated 3 years ago by markuxHow-tos0 comments – viewed 6,061 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Custom Number Formatting or Decimal Separators and i18n

Updated 3 years ago by c@cbaTutorials8 comments – viewed 50,118 times – ( +7 ) – version 1.1
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...

Setting and maintaining the language in Application (i18n)

Updated 4 years ago by Yang HeTutorials12 comments – viewed 98,069 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

How to customize Yii core messages?

Updated 4 years ago by Yang HeTutorials7 comments – viewed 50,600 times – ( +18 ) – version 1.1
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

Using SQLite and CDbMessageSource as a module

Updated 4 years ago by pheadeauxHow-tos5 comments – viewed 13,840 times – ( +5 ) – version 1.1
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.