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 8175167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:40:36+00:00 2026-06-06T22:40:36+00:00

When using english the following URL should apply: http://example.org/services/myservice/ When using another language, the

  • 0

When using english the following URL should apply:

http://example.org/services/myservice/

When using another language, the following URL should apply:

http://example.org/sirvici/misirvice/

Any easy/standard way we should handle this withing Yii ?

  • 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-06T22:40:38+00:00Added an answer on June 6, 2026 at 10:40 pm

    Yes you can do this in Yii but you will sacrifice:

    • Automatic Controller/Action mapping (depending how this works out)
    • A little speed due to the extra work load on every request.

    If your still OK with that then you can go ahead with it. You need to create a custom URL rule and have it process every URL, this is well documented. Then you need to manually strip the URL apart (by also well documented methods) and translate each part from the users currently selected language ( you will need to know this unless you want to go through the hell of trying to guess a language O.o ). You now have the translations for each part of the URL. Congrats.

    Heres the part that may or may not work
    You can pass it back through the Yii URL parser to go through the automatic mapping of controllers and actions and parameters. This would mean your just doing a preparse on the URL and Yii continues from there.

    If that can’t work you’ll have to build your own ( piggy back off Yii a little with CUrlRule etc. ) and do the mapping logic.

    My Two Sense
    For most Web Apps I wouldn’t recommend this. It means you have multiple ways to access the same content, from very different URLs. This is bad thing in SEO terms and also in usability terms. It also doesn’t provide you with a way of mapping those back to each other particularly easily to let google know not to index your content again. Plus I can’t see that it gains you a whole lot. Most simpleton users won’t pay attention to the URL bar, and even if it’s in their native language most won’t deduce much about the page and it’s content from the wording of the URL.

    Let me know if you proceed with this though, I’d like to know how it goes.

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

Sidebar

Related Questions

Currently the way I store strings is by using Localizable.strings, for example English: URL
I'm using language files to allow users to switch between English and Dutch. The
I am using URL rewriting via htaccess. Following are contents: Options +FollowSymLinks RewriteEngine on
I created an MS Access table using the following code: tbl := Database.CreateTableDef('English', 0,
I followed the following tutorial to build a multilingual webpage using php arrays: http://bytes.com/topic/php/answers/880915-how-develop-multi-lingual-websites-php
Converting newline into space makes sense for English, for example, the following HTML: <p>
I'm using the following method to translate a simple word from English to Russian
I am querying a php script using js with following func call: $.post(http://localhost/abc/create.php,{ name:data
I have a script I'm using to convert English text to other spoken languages,
I'm wondering what's people using to correctly capitalize english strings since ''capitalize'' won't do

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.