Wiki

Articles tagged with "i18n", sorted by commentsX
Displaying 11-20 of 22 result(s).

Using International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 28,672 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/

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 2 years ago by c@cbaHow-tos3 comments – viewed 9,026 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

How to translate and do the translations the easy way

Created 2 years ago by Roman SolomatinHow-tos3 comments – viewed 44,226 times – ( +26 / -2 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.
tags: i18n

Simple example for language translation

Created 5 months ago by RKAHow-tos2 comments – viewed 6,031 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

Create URL to language switcher anchor with langhandler

Created 3 months ago by Anas AbuDayahTips2 comments – viewed 1,125 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Multilanguage and SEO friendly

Created 10 months ago by InterboyHow-tos1 comment – viewed 11,262 times – ( +5 )
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

I18n / localised routes in Yii

Created 2 months ago by ElecenHow-tos1 comment – viewed 1,186 times – ( +3 / -1 ) – version 1.1
So, you need localised urls made simple that follow the Yii framework guidelines?
tags: i18n, Routing

How to provide a fallback or mapping for translation messages?

Created about a year ago by schmunkHow-tos1 comment – viewed 3,258 times – ( +5 )
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

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

Created 2 years ago by c@cbaHow-tos0 comments – viewed 8,343 times – ( +4 ) – version 1.1
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.

i18n for your model in just 1 line

Created 4 years ago by mintaoTutorials0 comments – viewed 11,137 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