Wiki articles tagged with "i18n"

Showing 1-5 of 5 items.

Language Selector

Created 9 years ago by Programmer Thailand Programmer Thailand, updated 9 years ago by Programmer Thailand Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

2 0
6 followers
Viewed: 18 751 times
Version: 2.0
Category: Tutorials

Getting information from the current locale

Created 7 years ago by CeBe CeBe, updated 7 years ago by CeBe CeBe.

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 23 948 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

Created 10 years ago by phunsanit phunsanit, updated 10 years ago by phunsanit phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 33 174 times
Version: 2.0
Category: Tutorials

How to add a DropDown Language Picker (i18n) to the Menu

Created a year ago by JQL JQL, updated a year ago by JQL JQL.

Yii comes with internationalisation (i18n) "out of the box". There are instructions in the manual as to how to configure Yii to use i18n, but little information all in one place on how to fully integrate it into the bootstrap menu. This document attempts to remedy that.

1 0
1 follower
Viewed: 91 739 times
Version: 2.0
Category: How-tos

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: 181 845 times
Version: 2.0
Category: How-tos