lang

how to internationalize a delphi application [duplicate]

感情迁移 提交于 2019-12-04 15:41:57
Possible Duplicate: Translate application What is the best way to internationalize my application written in delphi xe2 ? I've seen the stringtable resource but I'm worried because I've got the feeling that the implementation could be time consuming and laborious. Are there other equally valid methods to do this? Maybe not the best tool for translations, but I'm using GNU Gettext for many years. The process is quite simple: You run dxgettext to extract strings You translate or give for translation the files I personally love poEdit tool to translate and manage translation repository Optional :

Java program for calculating fractions

荒凉一梦 提交于 2019-12-04 04:55:12
问题 The purpose of the program is to get two user inputs for a fraction, receive a operator from the user, and then to get two more user inputs for a second fraction. The program must check that the numbers used in both fractions range between 0-99 and have a non-zero denominator. The program also has to make sure that the user inputs a valid operator (-,+,*,/). The only problem I am facing now is that none of my variables are being initialized and that I don't know how to make the output look

How to change the application language by user choice?

回眸只為那壹抹淺笑 提交于 2019-12-03 22:00:31
In my project there is a option for the user to select language. The whole application should change by selecting the language. Language is fetched from the server side. I referred various sites and links, but couldn't find a better solution. Localization is not possible, because it's a huge app and also language is not fixed , it is fetched from the server side and it can be varied. Is any other solution is available? Please help... Although its not recommended to use separate language for your app other than the Android system's . But you can still change it . Below is the code : private

AngularJS dynamic lang attribute of html

别等时光非礼了梦想. 提交于 2019-12-01 17:05:38
问题 I need some help for change dynamically the lang attribute of HTML: <html lang="en"> I'm making a multilanguage web application with AngularJS and rest backend. Initially I can specify a default lang attribute, but I want to change it depending on the user browser or change it if the user selects inside the web application some language option. There is some way to do it? 回答1: If you don't want to add controller to your <html> tag and if you are using angular-translate then you can use a

Save language chosen by user, Android

荒凉一梦 提交于 2019-12-01 08:39:41
How can I change default string.xml? I can change my app to five different languages, but whenever I close the app and reopen it. It goes back to default English. Is it possible to somehow change the default folder "values". For example, from values (English) which is default to values-pt (Portuguese). Any help is much appreciated! you can use following public void loadLocale() { String langPref = "Language"; SharedPreferences prefs = getSharedPreferences("CommonPrefs", Activity.MODE_PRIVATE); String language = prefs.getString(langPref, ""); changeLang(language); } public void changeLang

TinyMCE not sending value

时间秒杀一切 提交于 2019-12-01 03:41:52
Hi All It's the first time I've used Tiny Mce and I have a problem. Please Help The editor works fine in editing but when I click submit nothing is sent from the textarea input Here is the code: <textarea name='proddesc' class='text_area' id='elm1' /></textarea> I'm using jQuery, this is the code: $('#addprod').submit(function(){ $("#addprodmsg").hide(); $.post('addprod.php', $("#addprod").serialize(), function(data){ $("#addprodmsg").html(data); }); $("#addprodmsg").show(); return false; }); The Php Code is: foreach($_POST as $key){echo "<script>alert('$key')</script>";} Everything alerts a

Finding all uppercase letters of a string in java

孤者浪人 提交于 2019-12-01 03:34:18
问题 So I'm trying to find all the uppercase letters in a string put in by the user but I keep getting this runtime error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 4 at java.lang.String.charAt(String.java:686) at P43.main(P43.java:13) I feel foolish but I just can't figure this out and oracle even talks about charAt on the page about java.lang.StringIndexOutOfBoundsException Here is my code for finding the uppercase letters and printing them:

What's the difference between the lang attribute and the <meta http-equiv=“Content-Language” content=“en-US”> tag?

我与影子孤独终老i 提交于 2019-12-01 02:18:23
I was wondering what's the significance of using the "lang" attribute and how that differs from using the meta "Content-Language" tag? Consider the following code: <html lang="en"> <head> <meta http-equiv="Content-Language" content="en-US"> </head>... My assumption is that the browser is reading the meta tag's value, but the DOM is concerned with the "lang" attribute. Is this correct? Are there any nuances I'm unaware of? The lang attribute (on the HTML element) specifies the language for the document (unless overridden with another lang attribute which can change the language for a section of

how to show different language characters in git log?

孤街浪徒 提交于 2019-12-01 00:04:40
Here is what I am seeing now in my git log: commit d0ed97d243eaf905b03244a4d1ba6af26213e4ad Author: some guy <someone@somesite.com> Date: Mon Jun 3 11:22:06 2013 +0900 <E3><83><98><E3><83><83><E3><83><80><E3><81><AE><E3><83><A6><E3><83><BC><E3><82><B6><E3><82><A2><E3><82><A4><E3><82><B3><E3><83><B3><E8><A1><A8><E7><A4><BA> the commit is made by some Japanese characters. I've already changed my LANG env to ja_JP.UTF-8, en_US.UTF-8, ja_JP.eucJP: $ export LANG=ja_JP.UTF-8 but nothing worked. Hope someone knows and give me some points. Thanks. UPDATE (solution 1): Finally, I managed to show those

TinyMCE not sending value

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 23:54:57
问题 Hi All It's the first time I've used Tiny Mce and I have a problem. Please Help The editor works fine in editing but when I click submit nothing is sent from the textarea input Here is the code: <textarea name='proddesc' class='text_area' id='elm1' /></textarea> I'm using jQuery, this is the code: $('#addprod').submit(function(){ $("#addprodmsg").hide(); $.post('addprod.php', $("#addprod").serialize(), function(data){ $("#addprodmsg").html(data); }); $("#addprodmsg").show(); return false; });