multilingual

How can I clean this 'controller' file in this mini-php-framework with deals with multilingual websites

I came up with a mini-framework which deals with multilingual websites without using Gettext or Zend_Translate by joining together very good answers from previous questions I asked like this one. languages/lang.en.php(the multilingual content source): <?php $lang = array( 'tagline_h2' => 'I create <a href="#content">websites</a>......

ASP.NET MVC 2 / Localization / Dynamic Default Value?

Hello In an ASP.NET MVC 2 application, i'm having a route like this: routes.MapRoute( "Default", // Route name "{lang}/{controller}/{action}/{id}", // URL with parameters new // Parameter defaul...

Multi language CMS?

Is there any CMS such as expression engine or wordpress that allows a user to click a button and convert all the text to another language (it would have to be human generated otherwise it has too many mistakes probably). I'd like to know if there are any good solutions out there that work for real world use, in like business company web...

URL strategy for multilingual website

Hello! I was wondering what would be the best URL strategy for a multilingual website (for an Italy based company). I was thinking about site.com/it and site.com/en, not showing any content at site.com and redirecting the visitors to the localized site when they try to access site.com. What about buying an additional domain, site.it...

Many ascx-to-one ascx.cs bug in VS2008

I'm developing second language support for the site. So I made duplicate .ascx and .aspx files for existing ascx.cs and aspx.cs Most of the time everything works fine.. but suddenly I'm getting: Type 'ctrl_car' exists both in 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\rzhdengine\d072cc72\b9d5698b\App_Web_...

regex to filter all but whitelisted characters from a multi-language string

I am trying to cleanup a string coming from a search box on a multi-language site. Normally I would use a regex like: $allowed = "-+?!,.;:\w\s"; $txt_search = preg_replace("/[^" . $allowed . "]?(.*?)[^" . $allowed . "]?/iu", "$1", $_GET['txt_search']); and that works fine for English texts. However, now I need to do the same when th...

How can I model the data in a multi-language data editor in WPF with MVVM?

Are there any good practices to follow when designing a model/ViewModel to represent data in an app that will view/edit that data in multiple languages? Our top-level class--let's call it Course--contains several collection properties, say Books and TopicsCovered, which each might have a collection property among its data. What kind of...

Multilingual support using gettext with codeigniter, best practice?

I know how to create .po files and how to generate .mo files and then use them for translation on my Codeigniter powered site. However, I'm not quite sure on how to change language from the site GUI. I want to stick to codeigniter's default url calling schema: www.domain.com/controllername/method/param1/param2. Calling the server like ...

UI fonts and languages

I am developing a multilingual web application that has a nice looking UI. I thought using CSS 3's font-face property to make it even nicer UI, but I'm not really sure if that's a good idea. According to some people I have talked to, different languages need different fonts. This means that there is no single font that can display charac...

How should I pass the translated text to my object in my multilingual application?

Up until now, I have maintained a 'dictionary' table in my database, for example: +-----------+---------------------------------------+-----------------------------------------------+--------+ | phrase | en | fr | etc... | +-----------+---------------------...

Change CulturalInfo after button click

i have multilingual asp.net site. there is a masterpage and default.aspx. I put two buttons in masterpage - one to click when i want to change the language to english, second for polish. Of course, I want to change the language after click on these buttons (and all changes should appear automatically on the page) here is a code for bo...

Multilingual Database with Entity Framework 4 Guidance

We are creating a large e-commerce database that needs to allow for data in multiple languages. For example, the product table will need one or more translations for Name, Description, MetaTitle, MetaKeywords, MetaDescription and so on. There are several ways to accomplish this from a relational database design standpoint. But Entity Fr...

Multilingual sharepoint Site Creation - The Site definition I have developed does not appear to create site

I am new to Sharepoint. Currently I am using VS 2005, WSS 3.0 for creating a site definition. My requirement is to create a site definition with master pages, web parts, etc... I have created a site definition in VS 2005 using team site definition option. deployed the developed site definition to sharepoint. When I try to create site u...

Regular expression to validate name in .NET multilingual web application

Hi, how can i write a regular expression to validate name field in a multilingual web application, i want to validate the name field for non-English languages e.g. Spanish or German, and we need to make sure that no one enter digits or special characters. I'm using .NET 2.0 I believe we can't use expression as below for non-English lan...

How bad is for SEO to "redirect" an user depending on his browser locale ?

For a personnal page I use the MultiViews options in Apache to determine which page he should see depending on his locale. Here is what I do. Options MultiViews AddLanguage fr .fr AddLanguage en .en <IfModule mod_negotiation.c> LanguagePriority fr en </IfModule> I am wondering if it is bad for SEO to do this since Googlebot wil...

ssl multi domain website

We need to secure a multi-langual web application with SSL (registration, login,..). However, this application is accessed by different domain names, exactly a domain name for each language (domainName.co.uk, domainName.fr, domainName.it and so on). We're looking for the simplest and cheapest solution. We don't want to purchase a certifi...

Is there any way to create a dynamic list of strings (based on language) in XAML (Silverlight)?

Just wondering if it is possible to dynamically create a list of strings in XAML based on language/culture? Say if user logs in as an English user it shows Client Name, Order Number... and if user logs in as a Polish user it shows Nazwa klienta, Numer zamówienia instead? I only know the hardcoded one like below: <System_Collec...

How should I add multi language support to my web app across PHP, JS and Template Files?

I'm building a website that needs to support different language translations. I have strings in PHP, JavaScript and Smarty Template files that need to translated. I want to use something like PHP's gettext() function and have a single language file for each locale. This is easy when the translatable strings are in the PHP files but I ...

How to convert non-Latin-based encoded text into UTF-8, or make them coexist on same page?

Good day, I have a script that scrapes the title/description of remote pages and prints those values into a corresponding charset=UTF-8 encoded page. Here is the problem, whenever a remote page is encoded with non-Latin characters encoding like (Arabic, Russian, Chinese, Japanese etc.) the imported values print as garbled text. I've tr...

Multilingual in Drupal: Can't have a node and it's translations as frontpage. How to?

hi, i built a page in Persian. set it's path to front set drupal frontpage to /front everything is O.K. in mysite.com/fa i translate the page to en problem arises. now the path of Persian page changes to default node/33. now in language's frontpage drupal says Can't find the page. i tried to set path front to the translated english ...