Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8514801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:58:10+00:00 2026-06-11T04:58:10+00:00

Yii internationalization(i18n) protected/config/main.php ‘language’ => ‘en_us’, protected/views/site/index.php <?php echo Yii::t(‘test’,’user’); The translated file should

  • 0
Yii internationalization(i18n)
protected/config/main.php
'language' => 'en_us',
protected/views/site/index.php

<?php
echo Yii::t('test','user');

The translated file should be created in there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:58:12+00:00Added an answer on June 11, 2026 at 4:58 am

    From Yii site (http://www.yiiframework.com/doc/guide/1.1/en/topics.i18n#locale-and-language)

    Info: Yii comes with locale data for nearly every language and region. The data is obtained from Common Locale Data Repository (CLDR). For each locale, only a subset of the CLDR data is provided as the original data contains a lot of rarely used information. Users can also supply their own customized locale data. To do so, configure the CApplication::localeDataPath property with the directory that contains the customized locale data. Please refer to the locale data files under framework/i18n/data in order to create customized locale data files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using YII framework. I can access my site through: localhost/index.php then If I
In Yii, I have enabled APC caching through the config/main.php file: 'cache' => array(
In Yii framework, the main config file defines components. one of which is urlManager:
In Yii, when access to <app-host>/index.php?r=<mycontroller>/<myaction> , the framework will start to run code
How segment works in Yii Framework? Example.... http://myblog.com/index.php/controller/method/id/5 How to get 5? Without params
I'm using PHP (Yii-framework) and MySQL database on my site. Users can post and
I'm use Yii PHP framework but i cant write this code, what's the true
I'm working with yii framework forms and I have a form like this: <?php
folders structure: htdocs: --includes ----yii ------framework --------vendors ----------my_vendor1.php ----------my_vendor2.php --site1 --site2 How to import
With Yii php framework, I use inheritance. In my AbstractModel, I have this method:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.