multilingual

language file doesn't load automatically in Django

陌路散爱 提交于 2019-12-01 10:39:21
问题 I'm using python3 and Django 1.10 for my application, and I am kind of new to Django. I'm planning to have many languages for Django admin panel. As I follow the rules in Django documentation, I find out that I have to use a middleware for localization... Here are my settings: MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django

What Should I Know and Consider To Create Multi Language Web Site

拥有回忆 提交于 2019-12-01 09:45:35
问题 I'm Creating a Multi Language website with at least 5 language, what should I consider 回答1: Please see: Best Practices for Developing World-Ready Applications Walkthrough: Using Resources for Localization with ASP.NET 回答2: On a technical front not a lot, you can use a framework like Zend or Kohana or Rails etc. which usually have the ability to replace the content with tags and then fill the tag with the language of choice at run time. The different languages reside in appropriately named

Advice on ASP.NET Multi-Lingual Strategy

﹥>﹥吖頭↗ 提交于 2019-12-01 09:02:35
Hi brothers and sisters, I am wondering if anyone would share their experience on what they think as the best strategy to enable dynamic multi-lingual system using .NET I have a customer who wishes to have an semi-MRP system that stores all Product's Materials and specs. These information will later be used for other modules such as Invoices, Purchasing, Marketing (extracting the information for printing purposes) and many more. The thing is, he wants everything to be stored multiple languages. He is also unable to fixed the number of languages. Hence, the number of languages will grow

Advice on ASP.NET Multi-Lingual Strategy

断了今生、忘了曾经 提交于 2019-12-01 07:47:14
问题 Hi brothers and sisters, I am wondering if anyone would share their experience on what they think as the best strategy to enable dynamic multi-lingual system using .NET I have a customer who wishes to have an semi-MRP system that stores all Product's Materials and specs. These information will later be used for other modules such as Invoices, Purchasing, Marketing (extracting the information for printing purposes) and many more. The thing is, he wants everything to be stored multiple

Multi language page with Javascript or jquery

僤鯓⒐⒋嵵緔 提交于 2019-12-01 07:41:25
问题 Currently I am working on web app that will support several languages. Therefore I prepared table in my database with translations. However, I am not sure how to populate web app with translations. The easiest way, in my opinion, is to put reference to appropriate translation in each element of the page. This would work great in PHP I don't know how to make it work in js or JQuery. What I would like to have is the reference to array in divs like this: <div> {translation_array['login']} </div>

Best practices for multi language site across different sub domains

不打扰是莪最后的温柔 提交于 2019-12-01 07:14:31
I am looking to build a site in ASP.NET. I need it to be in french and english with the domains setup like so: en.mysite.com fr.mysite.com I do not want to duplicate code or have to upload the files to both domains if possible. It would be ideal to have all the files on www.mydomain.com and then use resource files to sort the translations. What is the best way to set this up in ASP.NET? My solution was setting the lang in the BeginRequest in global.asax Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) Dim lang As String = "es" ''//default If Request.Url.ToString

Sonar 4.2 analysis both Java and JavaScript in same project

痴心易碎 提交于 2019-12-01 05:44:14
I'm trying to analyse my JEE project with Sonar 4.2 . It's a multi-language JEE project with Java and JS . The plugins I've added to my Sonar 4.2 are : Java 2.1 and JavaScript 1.6 . Recently, Sonar added the multi-language analysis, following the doc , I've removed the sonar.language from sonar-project.properties . But it still analyse only the Java . I'm using Sonnar Runner 2.3 in Jenkins 1.555 . It analyse the project after every build. Am I missing something ? Edit : sonar-project.properties : # Required metadata sonar.projectKey=myProjectKey sonar.projectName=MyProject sonar.projectVersion

c# How to deal with Newline character, when moving strings to resources for Localization purpose?

流过昼夜 提交于 2019-12-01 04:42:47
I am writing a application in c#.For the localization purpose, I am moving all of my strings to resources. Some example of strings: "First sentence.\n Second sentence." "wait..." In first string there is newline character "\n" .Should I move the newline character to resources too. In second string, should I move the three dots to resources or should I split string in to two parts like "wait" + "..." and move only "wait" to resources. I am using Google-translate to translate strings to other languages and i am afraid that newline character "\n" will not be translate well to other language by

Where is it specified whether Unicode identifiers should be allowed in a Haskell implementation?

扶醉桌前 提交于 2019-12-01 03:28:07
I wanted to write some educational code in Haskell with Unicode characters (non-Latin) in the identifiers. (So that the identifiers look nice and natural for speakers of a natural language other than English which is not using the Latin characters in its writing.) So, I set out for finding an appropriate Haskell implementation that would allow this. But where is this feature specified in the language specification? How would I refer to this feature when looking for a conforming implementation? (And which Haskell implemenations are known to actually support Unicode identifiers?) It turned out

How to default to another language based on domain

痴心易碎 提交于 2019-12-01 03:04:00
问题 i'm using Joomla with the JoomFish translation component. This website has german and chinese translations. What i'm trying to figure out is how to get the .de domain to default to the german language translation ( which would load if visited as domain.com/de or domain.com/cn ). Does anyone know a way to do this with maybe .htaccess ( some kind of redirect )? Or possibly PHP? Maybe set some kind of session variable based on the domain (PHP_URL_HOST) ? Right now i have apache2 setup with the