Wiki articles in category How-tos tagged with "i18n"

Showing 1-13 of 13 items.

CJuiDatePicker extended for more/better language support

Created 4 years ago by le_top, updated 4 years ago by le_top.

The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.

1 0
1 follower
Viewed: 7 784 times
Version: 1.1
Category: How-tos

Themed translations (i18n)

Created 4 years ago by le_top, updated 4 years ago by le_top.

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.

1 0
1 follower
Viewed: 7 041 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 7 155 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

Simple example for language translation

Created 5 years ago by RKA, updated 5 years ago by CeBe.

Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.

1 0
5 followers
Viewed: 27 828 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii

Multilanguage and SEO friendly

Created 5 years ago by Interboy, updated 4 years ago by Rohit Suthar.

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

4 0
9 followers
Viewed: 24 931 times
Version: 1.1
Category: How-tos

How to provide a fallback or mapping for translation messages?

Created 5 years ago by schmunk, updated 4 years ago by schmunk.

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.

3 0
6 followers
Viewed: 8 053 times
Version: 1.1
Category: How-tos

Entire Messages into javascript object

Created 6 years ago by markux, updated 6 years ago by markux.

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 7 789 times
Version: 1.1
Category: How-tos

Using SQLite and CDbMessageSource as a module

Created 6 years ago by pheadeaux, updated 6 years ago by 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: 17 687 times
Version: 1.1
Category: How-tos

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

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

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.

9 0
9 followers
Viewed: 15 053 times
Version: 1.1
Category: How-tos

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

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

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.

4 0
1 follower
Viewed: 14 219 times
Version: 1.1
Category: How-tos

Local time zones and locales

Created 8 years ago by Russell England, updated 8 years ago by Russell England.

The sql 'set time_zone' ensures that all dates retrieved are in UTC time. If your MySql server has the time zone names installed then use 'UTC' instead of '+00:00'.

Components

Copy the code at the end of this wiki for LocalTime.php and DefaultDateTimeParser.php int...

13 2
24 followers
Viewed: 81 719 times
Version: 1.1
Category: How-tos

Using International Dates

Created 8 years ago by Russell England, updated 6 years ago by nkd.

So here is my complete solution - note that I'm using the 'short' date format throughout.

15 0
24 followers
Viewed: 42 262 times
Version: 1.1
Category: How-tos

How to set up Unicode

Created 10 years ago by Mike, updated 6 years ago by Roman Solomatin.

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.

19 0
13 followers
Viewed: 107 472 times
Version: 1.1
Category: How-tos
Tags: i18n, unicode