Wiki

Articles tagged with "i18n", sorted by date (updated)X
Displaying 1-10 of 22 result(s).

Save and Display Date/Time Fields in different formats in Yii2

Updated 4 days ago by Kartik VHow-tos10 comments – viewed 5,791 times – ( +27 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

How to translate and do the translations the easy way

Updated about a month ago by Roman SolomatinHow-tos3 comments – viewed 46,108 times – ( +27 / -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

Expert's model generation with Gii

Updated 3 months ago by le_topTips0 comments – viewed 2,966 times – ( +3 ) – version 1.1
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

I18n / localised routes in Yii

Updated 4 months ago by ElecenHow-tos1 comment – viewed 1,562 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 5 months ago by Anas AbuDayahTips2 comments – viewed 1,393 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Simple example for language translation

Updated 6 months ago by CeBeHow-tos2 comments – viewed 7,732 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

Multilanguage and SEO friendly

Updated about a year ago by InterboyHow-tos1 comment – viewed 12,540 times – ( +5 )
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

How to provide a fallback or mapping for translation messages?

Updated about a year ago by schmunkHow-tos1 comment – viewed 3,447 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 set up Unicode

Updated about a year ago by Roman SolomatinHow-tos10 comments – viewed 63,352 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 about a year ago by nkdHow-tos4 comments – viewed 29,359 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/