internationalization

Internationalization for Flex/Flash Apps

北城以北 提交于 2020-01-05 11:22:48
问题 What options are there for storing and accessing translated strings in a Flex/Flash application? Ideally, I would like to share translation data with my Django website's internationalization data. This leads me to believe that some version of gettext would be best. But what is the industry standard, and the best implementation and documentation? Related (but never answer-accepted, and old) post: Internationalization for flash applications 回答1: In my opinion localization with Flex is sort of .

Internationalization for Flex/Flash Apps

╄→гoц情女王★ 提交于 2020-01-05 11:22:00
问题 What options are there for storing and accessing translated strings in a Flex/Flash application? Ideally, I would like to share translation data with my Django website's internationalization data. This leads me to believe that some version of gettext would be best. But what is the industry standard, and the best implementation and documentation? Related (but never answer-accepted, and old) post: Internationalization for flash applications 回答1: In my opinion localization with Flex is sort of .

Creating file with non english characters in the file name

别说谁变了你拦得住时间么 提交于 2020-01-05 10:13:06
问题 How to create a file with chinese character in file name in Java? I have read many stack overflow answers but couldn't find a proper solution. The code I have written till now is as follows: private void writeFile(String fileContent) { try{ File file=new File("C:/temp/你好.docx"); if(file.exists()){ file.delete(); } file.createNewFile(); FileOutputStream fos = new FileOutputStream(file); fos.write(fileContent); fos.close(); } catch(Exception e) { e.printStackTrace(); } } The file is written to

how to get the locale of a facebook user clicking on a localised object's link?

♀尐吖头ヾ 提交于 2020-01-05 10:08:25
问题 I'm about to implement open graph localised objects. I have configured the og:locale:alternate meta tags, and, when a Facebook crawler request comes in, the correct locale is returned. As a result, I have one object per product (like counter is not divided), and the texts are correctly displayed on the wall posts, according to the user's locale setting. If I look my own share, I see some Facebook URL parameters appended to the URL, but if someone shares my post, even these parameters are

Format currency in a language, regardless of country

自古美人都是妖i 提交于 2020-01-05 08:14:33
问题 I want to format an amount of money (in Euros) in the user's language in Java, regardless of the country the user is in: final NumberFormat currencyFormat = NumberFormat.getCurrencyInstance(loc); currencyFormat.setCurrency(EUR); currencyFormat.format(new BigDecimal("1.99")); However, the output for different input locales ( loc ) is as follows: nl_NL: € 1,99 nl_BE: 1,99 € nl_DE: EUR 1,99 nl ( new Locale("nl") ): EUR 1,99 So I have two problems The output does depend on country, not just

Format currency in a language, regardless of country

老子叫甜甜 提交于 2020-01-05 08:12:32
问题 I want to format an amount of money (in Euros) in the user's language in Java, regardless of the country the user is in: final NumberFormat currencyFormat = NumberFormat.getCurrencyInstance(loc); currencyFormat.setCurrency(EUR); currencyFormat.format(new BigDecimal("1.99")); However, the output for different input locales ( loc ) is as follows: nl_NL: € 1,99 nl_BE: 1,99 € nl_DE: EUR 1,99 nl ( new Locale("nl") ): EUR 1,99 So I have two problems The output does depend on country, not just

Blackberry Hindi and Gujarati text display

别来无恙 提交于 2020-01-05 07:42:45
问题 I want to develop a blackberry application that supports multiple languages, such as English, Hindi and Gujarati. I have tried using utf-8 characters but it displays "??????" for Hindi. I have try also i18n but there are not possible to write in Hindi in property file. have any idea. 回答1: The device needs to have the appropriate fonts installed to display different languages. So you would need to make sure Hindi fonts are available. It sounds like they aren't. Try going to a hindi web page,

Struts2 i18n messages

限于喜欢 提交于 2020-01-04 16:57:32
问题 I am using Struts 2 and I created a simple application following a tutorial I found. I've created a <MyActionClass>-validation.xml file and I wonder how can I display the validation messages based on multiple languages? <field name="password"> <field-validator type="requiredstring"> <param name="trim">true</param> <message>You have to enter a password.</message> </field-validator> </field> Can I get the messages from a localized .properties file or do I have to use some other kind of

Loading custom fonts at runtime for use with JTextPane

感情迁移 提交于 2020-01-04 06:14:49
问题 Thanks for your time. My question is regarding the display of different fonts within the one JTextPane. My client wishes to view a word in two different languages within the one field. They've explicitly specified that they wish the different languages (namely Amharic, Arabic, Coptic and Hebrew) to be shown with different fonts. These are obviously non-standard fonts and I can't rely on the user having the required fonts installed on their OS. From my research I've found that I can load a

Grails internationalization with Ember.js and Handlebars.js

匆匆过客 提交于 2020-01-04 05:57:44
问题 I'm developing a web application and I'd need some advice on how to solve the following 'problem' of internationalization. I use Grails 2.2.0 along with Ember.js and Handlebars.js whereas the frontend (which is realised through JavaScript with the before mentioned frameworks) is residing in it's on project with the Sass files for styling Grunt.js for compiling the whole thing. Within this 'frontend project' I create the handlebars templates which I want to deliver via Grails on demand, with