This forum is not that good, as i have seen people here are not interested in solving others problems as they are only interested in their needs, I don't think that after this i'll putting any questions out here. Bye... Everyone Afroz
OK, I'll bite. I assume you are upset because you have't had a useful reply to your "site in two languages" questions. I've just looked through the list of posts you have made, and I notice that you seemed very happy with the response you got to your question in August (http://www.javaranch.com/ubb/Forum7/HTML/000375.html), you wrote:
You must understand that everyone here is a volunteer. No one receives any payment for doing this, and the Java Ranch relies on its members to help each other. If no one helps you with your problem it might mean any one of several things: No one here has the experience to solve your problem; No one here understands your problem; No one here has the time to solve your problem. Personally I fall into the second category. I don't really understand what you need. A web site can a collection of all sorts of resources text, images, active content (servlets, JSPs, CGIs), stored data, multimedia content, applets and so on. What do you have on your site already, and which of these need translating? Do you have someone available to translate things for you, or are you looking for an automated translation service? Please give some more specific questions, with more detail and I'm sure you will get an answer. Finally, I couldn't help noticing that you have never replied to any questions yourself. Please ask yourself why that is, and whether you might be able to help more in future.
Hello Afroz, I agree with whatever Frank has said. This forum according to me is the best place where u can get ur doubts and problems solved. Members of this work are not paid unlike hotdispatch or something like that. Instead of utilising the good services that this forum is providing, i think Mr. Afroz u are making a highly inappropriate statement saying that this forum is not good. Lets see how many replies you have posted over here.Try helping others and u will get the same. But if the question u are putting forward is unclear or people here do not have experience in that field then none can help you . I hope u'll correct ur statement and participate in this forum in the future.
Hello, I am in full agreement with u people.Javaranch has been very helpful to me in my work as well as in my certifiction effort.I just have one suggestion ...let us not reply to any such messages from now onwards Cheers Jayram
If that is the way he feels it is best that he says goodbye. There are to many code suckers out there not willing to do the leg work or be grateful for the help you do give them. This place has been great even though some of our posts never get the answer we are looking for. Is that JavaRanches fault? I don't think so. Anyway if they do another book give-away, one less person to lower my chances . just my 2¢ paul
Joined: Aug 07, 2000
I do understand that there are people who sometimes don't understand the question and plus i have been using the programmer certification columns to study and as well as to clear my doubts. I was in urgent need for the solution, and i depended on this forum cause as far as my contacts goes i enquired every where but could'nt get the solution. What i want to know is that how do i convert my site into other language , is there some tools[software] available or any other methods? Thanx Afroz
Hello Frank I think what Afroz want to know is that he has made a web site and the written contents of the site are in English. Now if this web site is opened by some in other country say for e.g. Russia or China then is their any tool or Software by which his original written contents get translated to the Native Language depending on the Language of the OS being used. I think he is talking about Internationalization and Locale. Frank, dose above thing make any sense to you�� do you understand the problem. Afroz, is this what you r looking for� Regards, Raj.
Regards,<P>Raj.<BR>-------------------------<BR>Afforts should be Appriciated.<BR>-------------------------
There are plenty of translation resources out there. If you want free translation go to http://www.freetranslation.com They don't have all the languages in the world, but it is free machine translation. I work on website and software localization projects for a translation firm, so let me know more specifically what you are looking for and maybe I can point you in the right direction. -B
Joined: Aug 07, 2000
I'll make it more simpler. I don't want the site to get converted into different languages. What i need is a site for Arabic people and in 2 languages. The home page of the site is having 2 options i.e English and Arabic . If the person clicks on english version the contents are displayed in english and if he clicks on the arabic version then he can see it in arabic. Don't want to use any third language. Actually it's an E-commerce site where lots of transactions are to be held and also the mails have to send in arabic. If u see the site called <A href="http://www.gpa.gov.ae">http://www.gpa.gov.ae </A> u will the find the home page having links for 2 versions, something like that i need. The only difference will be this site is a normal site and what i want to develop is an E-com site. And Thanx a lot Afroz
[This message has been edited by Afroz Khan (edited November 01, 2000).]
Joined: Jan 07, 1999
Ah! Now I see what you want. The simplest way (if you are using Servlets to drive the web user interface) is to have two "web applications", each using the same servlets, but configured to look in different places for their text resources. For example, a URL structure such as: //www.something.com/en/.... and //www.something.com/ar/... With the same pages, servlets etc. in each subtree. With a reasonable modern servlet container you should be able to build two war files, one called "en.war" and one called "ar.war" containing everything each site needs and just put them in a monitored directory. All you need then is a static front page allowing users to choose which of the two "sites" they want. As for making the software flexible. There are several ways to do this. One common approach is to set up a big map from symbolic names to actual text (perhaps loaded from a properties file?) and refer to the names in your servlets rather than the actual text. In the following example, I use English and German*, as I am not familiar with Arabic. Properties File for English: greeting: Hello mailbody: Please send me your money signoff: Cheers Properties file for German: greeting: Guten Tag mailbody: Schicken Sie bitte mir Ihr Geld signoff: Tschuss Example code
Another, and generally more scalable, approach is to use a templating mechanism. I recommend WebMacro http://www.webmacro.org/ which allows you to produce a set of language/region specific templates, and fill in the details at runtime. Put all the templates for a specific language in a directory, and pass the location of the directory as an initialization paramater to your servlets. Has this helped at all? -- * or at least an attempt at German. It's a long time since I had to speak any.