Articles tagged with "multilanguage", sorted by date (updated)X
Displaying 1-7 of 7 result(s).

How to have truly multilingual URLs

Updated a day ago by oligalmaHow-tos1 comment – viewed 5,068 times – ( -1 ) – version 1.1
We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

Multilanguage and SEO friendly

Updated 2 years ago by Rohit SutharHow-tos1 comment – viewed 21,208 times – ( +5 / -1 ) – version 1.1
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

Multilanguage Lorem Ipsum Text Generator

Updated 4 years ago by yasenHow-tos2 comments – viewed 7,430 times – ( +2 / -1 ) – version 1.1
Taking futher the idea from Piotr MaseĊ‚kowski - here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

Using SQLite and CDbMessageSource as a module

Updated 5 years ago by pheadeauxHow-tos5 comments – viewed 15,013 times – ( +5 / -1 ) – 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.

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Updated 5 years ago by c@cbaTutorials37 comments – viewed 59,012 times – ( +32 / -1 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like in english, and in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Updated 5 years ago by c@cbaTutorials10 comments – viewed 36,470 times – ( +15 / -1 ) – version 1.1
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Multilanguage web site controlling by get request and database allowed languages

Updated 5 years ago by reiTutorials2 comments – viewed 21,931 times – ( +6 / -1 ) – version 1.1
First, you have to have create database table for default language and allowed languages.