translation

MediaWiki language bug still persists

杀马特。学长 韩版系。学妹 提交于 2019-12-12 02:15:26
问题 This is on en.myDomain.org This is in a logged out state on Chrome. As soon as i log in though, everything is in english, as it should be. Same happens on firefox. Anyone got any clue where this could stem from? 回答1: Looks like you set the language in your user preferences to English. To set the global language to English, change/put this in your LocalSettings.php: $wgLanguageCode = "en"; 来源: https://stackoverflow.com/questions/34917625/mediawiki-language-bug-still-persists

Unable to extract translation id for form label with JMS Translation Bundle

不羁岁月 提交于 2019-12-12 02:13:27
问题 I'm using the JMS Translation Bundle to extract my translations. Everything works, but when I try to extract my translation messages form a form builder I recieve following message: [JMS\TranslationBundle\Exception\RuntimeException] Unable to extract translation id for form label from non-string values, but got "PHPParser_Node_Expr_MethodCall" in /srv/local.project.com/app/../src/Project/MyBundleBundle/Form/Type/EmailType .php on line 30. Please refactor your code to pass a string, or add "/*

poedit doesn't recognize _x

雨燕双飞 提交于 2019-12-12 01:59:27
问题 My .po file contains: "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" And my php/wordpress code contains: _x( 'Add New', $this->post_type , $domain ), I know that Poedit is scanning that file (all the other translatable strings are picked up on "update catalog", and share the same domain). And if I change _x to __

Translator::getMessages returns an empty array

♀尐吖头ヾ 提交于 2019-12-11 20:13:47
问题 I'm trying to use the translator.default service in a Controller , but any message I'm trying to translate by means of the trans method returns the untranslated key. /** * @Route("/testT") */ public function testTAction(Request $req) { $translator = $this->get('translator.default'); $translated = $translator->trans('Hello from the other side'); die(dump($translated)); } In order to be sure my keys were correctly loaded I've done the following checks: php app/console translation:update it -

Please translate what this *.bat snippet is saying (only one short line)

元气小坏坏 提交于 2019-12-11 17:55:31
问题 found this batch file with timer. I'm not very familiar with *.bat files but have foundout the following THAT 01 is the time in seconds PING -n 01 127.0.0.1>nul however im not sure what the rest means rather then just go and use it could someone please explain what all other items in this snippet do/ represent thanks 回答1: It's a sneaky sleep statement. I've used it before to get a delay in a cmd.exe script without having to resort to external utilities. However, ping -n 21 127.0.0.1 >nul:

Localization and globalization file translate tool client side - javascript

江枫思渺然 提交于 2019-12-11 17:03:22
问题 I'm a member of a team with more than 20 developers. Each developer works on a separate module. In each module, We load data only for the desired language. For this purpose we save data to a separate files for each language. Example Module 1: locale (root folder) en en.js pt pt.js fr fr.js en.js is, define(function() { var label = { "name" : "Name", "age" : "Age", "location" : "Location" } var message = { "save": "data saved", "update": "data updated" } return { label: label, message: message

BazingaJsTranslationBundle does not translate strings

北城余情 提交于 2019-12-11 14:55:32
问题 I'm trying to use BazingaJsTranslationBundle for take advance of Symfony2 translations. After read docs this is what I've done: Include needed JS libraries <script src="{{ asset('bundles/bazingajstranslation/js/translator.min.js') }}"></script> // Tried this way <script src="{{ url('bazinga_jstranslation_js', { 'domain': 'AppBundle' }) }}"></script> // Also tried this one <script src="{{ url('bazinga_jstranslation_js') }}"></script> Setup bundle at config.yml : bazinga_js_translation: locale

Using java-google-translate-text-to-speech on android

偶尔善良 提交于 2019-12-11 14:43:56
问题 I need to translate inputed text from one language to another, trying to use this but have problem. This code: Thread one = new Thread() { public void run() { try { Translator translate = Translator.getInstance(); String text = translate.translate("I am programmer", Language.ENGLISH, Language.PORTUGUESE); Log.d("TEXT: ",text); } catch(Exception v) { Log.d("ERR: ", v.toString()); } } }; one.start(); Throws error: W/System.err: java.io.FileNotFoundException: http://translate.google.com.br

translations using mediaelementjs

不羁岁月 提交于 2019-12-11 14:14:16
问题 How does the auto translations:['es','ar','yi','zh-cn'] work with mediaelement player I tried the suggestion - $('audio,video').mediaelementplayer({ // automatically create these translations on load translations:['es','ar','yi','zh-cn'], // allow the user to add additional translations translationSelector: true, // start with English automatically turned on startLanguage: 'en' }); 回答1: Sorry, Google has removed their translation API so this was pulled from MediaElement.js 来源: https:/

translate my sequence?

微笑、不失礼 提交于 2019-12-11 13:16:52
问题 I have to write a script to translate this sequence: dict = {"TTT":"F|Phe","TTC":"F|Phe","TTA":"L|Leu","TTG":"L|Leu","TCT":"S|Ser","TCC":"S|Ser", "TCA":"S|Ser","TCG":"S|Ser", "TAT":"Y|Tyr","TAC":"Y|Tyr","TAA":"*|Stp","TAG":"*|Stp", "TGT":"C|Cys","TGC":"C|Cys","TGA":"*|Stp","TGG":"W|Trp", "CTT":"L|Leu","CTC":"L|Leu", "CTA":"L|Leu","CTG":"L|Leu","CCT":"P|Pro","CCC":"P|Pro","CCA":"P|Pro","CCG":"P|Pro", "CAT":"H|His","CAC":"H|His","CAA":"Q|Gln","CAG":"Q|Gln","CGT":"R|Arg","CGC":"R|Arg", "CGA":"R