Wiki

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

How to provide a fallback or mapping for translation messages?

Updated about a year ago by schmunkHow-tos1 comment – viewed 5,395 times – ( +5 ) – version 1.1
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.

Themed translations (i18n)

Updated about a year ago by le_topHow-tos0 comments – viewed 3,907 times – ( +1 ) – version 1.1
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.

Translation from .txt file

Updated 2 years ago by Yii3Tutorials6 comments – viewed 4,105 times – ( +1 / -4 ) – version 1.1
Translation from .txt file Note:
tags: translation

Setting and maintaining the language in Application (i18n)

Updated 4 years ago by Yang HeTutorials12 comments – viewed 99,318 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

How to customize Yii core messages?

Updated 4 years ago by Yang HeTutorials7 comments – viewed 51,066 times – ( +18 ) – version 1.1
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:

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

Updated 4 years ago by c@cbaHow-tos3 comments – viewed 12,034 times – ( +9 ) – version 1.1
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.

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

Updated 4 years ago by c@cbaHow-tos0 comments – viewed 11,077 times – ( +4 ) – version 1.1
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.