internationalization

i18next translation problems

独自空忆成欢 提交于 2019-12-08 02:22:14
问题 I still try to use i18next for translations of my jQuery application. After some general problems (solved here: How to use i18next? Problems with translations) and there solution I wanted to translate all my visible text. But here I got problems and I need help to solve this. I hope someone can help me. <html> <head> <meta http-equiv="content-type" content="text/html; charset="UTF-8"> <link href="jquery-mobile/jquery.mobile.theme-1.0.min.css" rel="stylesheet" type="text/css"/> <link href=

Change language of text in template in play framework 2.1.1

夙愿已清 提交于 2019-12-08 01:36:26
问题 I want the user of the application can change the language in my play2 (play 2.1.1, scala 2.10.1) web application. I use @Messages.get(...) in my templates for i18n. I have application.langs="en,ru" in application.conf. I pass "en" or "ru" to that method: def index = Action { Ok(views.html.index()) } def changeLanguage(lang:String) = Action { implicit request => Logger.logger.debug("Change user lang to : " + lang) val referrer = request.headers.get(REFERER).getOrElse(HOME_URL) Redirect

Play 2.4.x how use Messages and not MessagesApi I18N

牧云@^-^@ 提交于 2019-12-08 01:03:52
问题 I've done a little bit different form the internationalization guide, at the play I18N guide I forced the result to the language in the query string, it works, but it needs to be done in the "correct way". It's a good form to keep the work and look for better approach later: NOTE: I USED THE "MessagesApi" to make it happen. please see the code below: package controllers import play.api._ import play.api.mvc._ import play.api.i18n.I18nSupport import play.api.i18n.Messages.Implicits._ import

Grails i18n UrlMappings

蓝咒 提交于 2019-12-08 00:32:58
问题 I am dealing with the following problem. In our project we have launched different internationalized domains for the same website. The problem comes with the UrlMappings for the different languages. for example: English: name contact: "/contact"(controller: 'static', action: 'index') { id = '/contact' } German: name deContact: "/kontakt"(controller: 'static', action: 'index') { id = '/contact' } repeating all the code again and again. Is there a solution to group both url mappings to use the

How to get English month name from date in Russian Excel?

你。 提交于 2019-12-07 22:34:17
问题 I am unable to get month name in Excel. Neither =TEXT(...;"mmmm") not doesn't work. I found, only Russian M's are working and giving Russian month name, despite of language settings Latin M's give nothing. Are there any other settings to force month name language? UPDATE Setting date format nationality didn't help: 回答1: Thanks for additional details. It appears to be a long standing issue with MS Office. See How to prevent Excel to use the OS regional settings for date patterns in formulas

Automatically translate web page

最后都变了- 提交于 2019-12-07 20:56:45
问题 How can I automatically translate my web page when I entered it. This is my translator there is connected to my dropdown. <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'da', includedLanguages: 'da,de,el,en,es,fi,fr,it,ja,ko,nl,no,pl,ru,sv,uk,zh-CN,zh-TW', layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT, gaTrack: true, gaId: 'UA-32978177-1'}, 'google_translate_element'); } </script> <script type=

django sending localized emails depending on UserProfile.language() field data

放肆的年华 提交于 2019-12-07 17:49:22
问题 In my offers site users can set email alerts if offer meets some requirements (filters specified in model). So when User "A" adds an offer, post_save signal is being sent to celery and check for user alert filters is applied and if any, emails are being send. The problem is I have no idea how to safely set content for each email sent. The service is provided in more languages. User can change language in their profile (via User<- Userprofile.language()) field so each email should have

Localization of lists

淺唱寂寞╮ 提交于 2019-12-07 16:57:42
问题 What is the right way to localize a list of strings? I know that the separator can be localized to a comma or a semi-colon but does the conjunction get localized? If so, what would my format string for an arbitrary length list look like? Example "Bat, Cat and Dog". I could use the separator as per locale and construct the LIST as the following: LIST := UNIT LISTMID := UNIT SEPARATOR UNIT LISTMID := LISTMID SEPARATOR UNIT LIST := UNIT CONJUNCTION UNIT LIST := LISTMID CONJUNCTION UNIT Would I

How to internationalize Android app?

删除回忆录丶 提交于 2019-12-07 14:33:40
问题 How do I determine the language setting of an Android device. I am doing this to internationalize my app. Thanks! 回答1: You have to use different string.xml files res/ values/ strings.xml values-es/ strings.xml values-fr/ strings.xml Refer below link Supporting Different Languages And also Read Localization 回答2: The most common to do this is to keep a string file with the strings you want to localize in the res/values folder. You can then create additional values folders marked with resource

Right to left tooltip text c#

本秂侑毒 提交于 2019-12-07 14:26:17
问题 Using WinForms, I have a string which I want to set into a ToolTip. The string is separated by lines with Environment.NewLine , like so: x.ToolTipText = "aaaaaa" + Environment.NewLine + "bbb"; when this string is set to the ToolTip it looks: aaaaaa bbb But my problem is when I want it to be localized to Arabic and ToolTip does not support the default RightToLeft property, so it looks very bad. I want it to look like: aaaaaa bbb Also: String.PadLeft does not help! Any idea? 回答1: Second try.