Wiki articles tagged with "i18n"

Showing 21-29 of 29 items.

I18n subdomains and url-rules

Created 16 years ago by Y!! Y!!, updated 14 years ago by atrandafir atrandafir.

This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)

7 0
17 followers
Viewed: 49 950 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL

How to customize Yii core messages?

Created 16 years ago by qiang qiang, updated 13 years ago by Yang He Yang He.

Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

17 0
16 followers
Viewed: 72 653 times
Version: 1.1
Category: Tutorials

Custom Number Formatting or Decimal Separators and i18n

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

By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

4 0
16 followers
Viewed: 91 425 times
Version: 1.1
Category: Tutorials

Local time zones and locales

Created 14 years ago by Russell England Russell England, updated 14 years ago by Russell England 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
23 followers
Viewed: 104 460 times
Version: 1.1
Category: How-tos

How to set up Unicode

Created 16 years ago by Mike Mike, updated 12 years ago by Roman Solomatin 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
14 followers
Viewed: 145 271 times
Version: 1.1
Category: How-tos
Tags: i18n, unicode

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: 52 898 times
Version: 1.1
Category: Tutorials

Setting and maintaining the language in Application (i18n)

Created 16 years ago by olafure olafure, updated 13 years ago by Yang He Yang He.

As seen in this post, Yii doesn't enforce how language is set and maintained within the session.

19 0
29 followers
Viewed: 168 078 times
Version: 1.1
Category: Tutorials

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V Kartik V.

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.

0 0
51 followers
Viewed: 182 643 times
Version: 2.0
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: 81 721 times
Version: 1.1
Category: Tutorials