multilingual

Sonar 4.2 analysis both Java and JavaScript in same project

雨燕双飞 提交于 2019-12-01 02:51:12
问题 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

Creating multilingual not found page in MVC

与世无争的帅哥 提交于 2019-12-01 02:48:10
问题 We have a multilingual website that has content in four languages.Every language is understood by the language name that we add at the first of our url. This is our routeConfig.cs: routes.MapRoute( name: "Default", url: "{lang}/{controller}/{action}/{id}/{title}", defaults: new { lang = "fa", controller = "Home", action = "Index", id = UrlParameter.Optional,title = UrlParameter.Optional } and this is generated the url: /en/ContactUs/Index Also, in our controllers we get the language name from

Typo3: adds anchor but don't know why

Deadly 提交于 2019-12-01 00:51:38
I have a page content element on a page. This has the ID 3 and it has a translation. This element is read out with the following Typoscript lib.marker = RECORDS lib.marker { tables=tt_content source= 3 dontCheckPid = 1 languageField = sys_language_uid select.languageField = sys_language_uid } For the default language everything is OK. But for my additional language I get <a id="c605"></a> before the div I originally wanted is displayed. I looked in the HTML of the page content and there is everything like it should be. Any ideas? Edit: Here the content gathered through the TS Object Browser:

How can I choose the language, using Flask + Babel?

帅比萌擦擦* 提交于 2019-11-30 22:48:17
Now I'm developing a project, which should support two languages: English, as default, and Russian. It's pretty easy to do, using HTTP_ACCEPT_LANGUAGE header, the code is bellow: babel = Babel(app) @babel.localeselector def get_locale(): return request.accept_languages.best_match(app.config["LANGUAGES"].keys()) Languages are hardcoded in application config file: LANGUAGES = { 'en': 'English', 'ru': 'Russian' } But I also want to add a button, like Switch language to English . What is the best practice to realise it? This is the solution I came across: First you set a route that will handle the

make multi language android application

与世无争的帅哥 提交于 2019-11-30 21:29:19
I created multi language (English, Russian, Uzbek) app. I put 4 string resoureses in 4 folders (values, values-en, values-ru, values-uz) as docs . When I change app language updates resourses configuration in App Controller like below: Settings.LANGUAGE = prefs.getString(User.LANG, Settings.RUSSIAN); Locale locale = new Locale(Settings.LANGUAGE); Locale.setDefault(locale); Configuration configuration = new Configuration(); configuration.locale = locale; getBaseContext().getResources().updateConfiguration(configuration, getBaseContext().getResources().getDisplayMetrics()); After that App

Typo3: adds anchor but don't know why

人盡茶涼 提交于 2019-11-30 19:06:40
问题 I have a page content element on a page. This has the ID 3 and it has a translation. This element is read out with the following Typoscript lib.marker = RECORDS lib.marker { tables=tt_content source= 3 dontCheckPid = 1 languageField = sys_language_uid select.languageField = sys_language_uid } For the default language everything is OK. But for my additional language I get <a id="c605"></a> before the div I originally wanted is displayed. I looked in the HTML of the page content and there is

How can I choose the language, using Flask + Babel?

亡梦爱人 提交于 2019-11-30 18:27:56
问题 Now I'm developing a project, which should support two languages: English, as default, and Russian. It's pretty easy to do, using HTTP_ACCEPT_LANGUAGE header, the code is bellow: babel = Babel(app) @babel.localeselector def get_locale(): return request.accept_languages.best_match(app.config["LANGUAGES"].keys()) Languages are hardcoded in application config file: LANGUAGES = { 'en': 'English', 'ru': 'Russian' } But I also want to add a button, like Switch language to English . What is the best

Am I breaking any “php good practice” in the following php array which deals with 3 (human) languages?

核能气质少年 提交于 2019-11-30 16:20:02
问题 This is the most optimal way of dealing with a multilingual website I can think of, right now (not sure) which doesn't involve gettext, zend_translate or any php plugin or framework. I think its pretty straight forward: I have 3 languages and I write their "content" in different files (in form of arrays), and later, I call that content to my index.php like you can appreciate in the following picture: alt text http://img31.imageshack.us/img31/1471/codew.png I just started with php and I would

Can C++ Application load the .jar File using JNI?

半腔热情 提交于 2019-11-30 15:34:48
Thanks for having a look at question. I am trying to invoke a java method which is in class files using JNI interface. In turn the called class file should be executing the another .jar file which resides in the same direcotry ? I had hard time acheiving this and I am unsuccessful in executing the .jar file. I mean I am not able to get the results from the class fuile available in .jar file. Can any one explain,whether it is possible to do that way or I should look for the another option ? The code is like this: class JNIInterface { private: JavaVMInitArgs vm_args; JavaVM *jvm; JNIEnv *env;

Free, Lightweight PHP e-Commerce solution [closed]

自作多情 提交于 2019-11-30 14:52:07
I'm searching for a lightweight e-Commerce web-application implemented in PHP5 and using MySQL as storage db. main requirements are: as small as possible Free or Open Source supporting multi-language (best if utf-8 was primarily supported) easy to use (don't need core to be bloated with functionality I won't use) basic system for setting up prices, multi-language strings and images small overhead on server fast to deploy Please don't recommend Magento as I found it a little bloated for the functionality I'm looking for. looking forward for your tips / recommendation On OpenSourceCMS you can