Wiki

Articles tagged with "i18n"X
Displaying 21-27 of 27 result(s).

Local time zones and locales

Created 5 years ago by Russell EnglandHow-tos9 comments – viewed 65,362 times – ( +14 / -2 ) – version 1.1
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.

Using International Dates

Created 5 years ago by Russell EnglandHow-tos4 comments – viewed 36,095 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/

i18n for your model in just 1 line

Created 6 years ago by mintaoTutorials0 comments – viewed 13,011 times – ( +12 ) – version 1.1
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

I18n subdomains and url-rules

Created 6 years ago by Y!!Tutorials6 comments – viewed 26,887 times – ( +7 ) – version 1.1
This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)
tags: i18n, URL

Setting and maintaining the language in Application (i18n)

Created 7 years ago by olafureTutorials12 comments – viewed 97,440 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?

Created 7 years ago by qiangTutorials7 comments – viewed 50,354 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:

How to set up Unicode

Created 7 years ago by MikeHow-tos10 comments – viewed 86,106 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