Wiki articles tagged with "multilanguage"

Showing 1-7 of 7 items.

How to have truly multilingual URLs

Created 10 years ago by oligalma oligalma, updated 4 years ago by oligalma oligalma.

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

0 0
3 followers
Viewed: 21 816 times
Version: 1.1
Category: How-tos

Multilanguage and SEO friendly

Created 12 years ago by Interboy Interboy, updated 11 years ago by Rohit Suthar Rohit Suthar.

In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

4 0
8 followers
Viewed: 32 294 times
Version: 1.1
Category: How-tos

Multilanguage Lorem Ipsum Text Generator

Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen.

Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ 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...

2 0
1 follower
Viewed: 13 818 times
Version: 1.1
Category: How-tos

Using SQLite and CDbMessageSource as a module

Created 13 years ago by pheadeaux pheadeaux, updated 13 years ago by pheadeaux pheadeaux.

There are scenarios when you work with DVCS (like [Mercurial]( http://mercurial.selenic.com/) or [Git]( http://git-scm.com/)) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very...

3 0
9 followers
Viewed: 25 056 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by c@cba c@cba, updated 14 years ago by c@cba c@cba.

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 http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen.
Note that currently selected language is always a part...

28 0
42 followers
Viewed: 82 869 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by c@cba c@cba, updated 14 years ago by c@cba c@cba.

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 nam...

9 0
19 followers
Viewed: 53 779 times
Version: 1.1
Category: Tutorials

Multilanguage web site controlling by get request and database allowed languages

Created 14 years ago by Igor Ivanovic Igor Ivanovic, updated 14 years ago by rei rei.

First, you have to have create database table for default language and allowed languages.

CREATE TABLE IF NOT EXISTS `tbl_languages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lang` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `flagpath` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_...
5 0
12 followers
Viewed: 33 291 times
Version: 1.1
Category: Tutorials