Wiki

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

Themed translations (i18n)

Updated 28 days ago by le_topHow-tos0 comments – viewed 1,340 times – ( +1 ) – version 1.1
When using themes you want to changes some of the translations specifically to the theme while keeping the standard translations for most of the text. Duplicating the main translation file is a headache for maintainance. This how to provides a solution.

Multilanguage and SEO friendly

Updated about a month ago by Rohit SutharHow-tos1 comment – viewed 13,653 times – ( +5 ) – version 1.1
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

Gettext and Poedit HOWTO

Updated about a month ago by Maug LeeTutorials0 comments – viewed 1,078 times – version 1.1
Example settings when using Gettext for i18n.

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

Updated 2 months ago by Kartik VHow-tos10 comments – viewed 9,702 times – ( +28 ) – 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 3 months ago by Roman SolomatinHow-tos3 comments – viewed 47,927 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 5 months ago by le_topTips0 comments – viewed 3,529 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 6 months ago by ElecenHow-tos2 comments – viewed 1,880 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 7 months ago by Anas AbuDayahTips2 comments – viewed 1,721 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Simple example for language translation

Updated 8 months ago by CeBeHow-tos2 comments – viewed 9,558 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 provide a fallback or mapping for translation messages?

Updated about a year ago by schmunkHow-tos1 comment – viewed 3,619 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.