Currently i'm doing a project in C# where i've to support multiple languages. What i decided to do is this: Create language xml files and put them in a folder ("langs"). Language file structure: [CODE] <Lang name="en" /> <!-- All forms --> <form id="mainform"> <item id="mnuFile" text="File" /> <item id="mnuFileNew" text="New" /> <item id="mnuFileEdit" text="Edit" /> </form> <form id="options"> <!-- etc. --> </form> [/CODE] And on each form load, i'll go and read the user selected language file from the "langs" folder, and i will parse it to apply the changes to the form. Note: I want to make it …

Member Avatar
Member Avatar
+0 forum 5

I can't figure out two expressions in xpath. Can someone help ? Here they are substring-after(substring-before(//ul[@id='biblio']/li[3], ']', '[')) //h2[normalize-space(string())='name']/preceding::h1[1]

Member Avatar
Member Avatar
+0 forum 1

Please help me to translate this code from c to c++ #include <stdio.h> #include <conio.h> void main() { int n,i,j,a[20][20],ok=1,grade=0,aux=0;ok=1; FILE *f=fopen("c:\graph.txt","r"); fscanf(f,"%d",&n); for(i=1;i<=n;i++) for(j=1;j<=n;j++) fscanf(f,"%d",&a[i][j]); fclose(f); for(i=1;i<=n;i++) if(a[1][i]==1) grade++; for(i=1;i<=n;i++) { for(j=1;j<=n;j++) if(a[i][j]==1) aux++; if(aux!=grade) ok=0; aux=0; } if(ok==0) printf("graph is not regular."); else printf("graph is regular."); getch(); clrscr(); }

Member Avatar
Member Avatar
+0 forum 5

I want to add Joomla SEF Translate Module or Component to my php,html Website Page. how can i include this module and how to run this. please tell anyone Thanks advance

Member Avatar
Member Avatar
+0 forum 2

Hi all. AM having a little issue with regex. Not one of my strongest skills! I'm trying to produce a simple translation system that doesn't require arrays, gettext etc. It basically has this structure: $content=<<<CONTENT <p>{{Dyma destun||Here's some text}}</p> ... CONTENT; So the page content is held in a var via heredoc syntax. That's all well and good. My index.php is this: include('common/config.php'); include('common/functions.php'); include($page_server); include('templates/common.php'); echo translate($header); echo translate($content); echo $footer; The translate function in the functions.php file is this: function translate($content){ $l = $_SESSION['lang']; $pattern = array('en'=>'/\{\{.[^(\}\})]*\|\|/','cy'=>'/\|\|.[^(\{\{)]*\}\}/'); $brackets = array('en'=>'}}','cy'=>'{{'); $content = preg_replace($pattern[$l],'',$content); $content = str_replace($brackets[$l],'',$content); return $content; …

Member Avatar
Member Avatar
+0 forum 6

Hello I already posted this on [URL="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=306688"]opengl.org[/URL], but nobody seems to have a solution. Basically I set up Opengl and when I want to draw 3D or say I want to use the z-axis by translating in this dimension, it doesn't have any effect. What I can do, is moving my view in x and y axis, but not z. I coded this with [URL="http://www.falloutsoftware.com/tutorials/gl/gl2.htm"]this[/URL] Here is my code : (code is given chronologically) [CODE] int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { WNDCLASS wincl; HWND hWnd; MSG msg; wincl.hInstance = hInstance; wincl.lpszClassName = "GLEngine"; wincl.lpfnWndProc = …

Member Avatar
Member Avatar
+0 forum 1

Hey all, I got a small job here. The site design is the way the client likes. Mainly, I just want to get some feedback regarding content... I don't speak Arabic or Chinese. He needed the content translated to both. He suggested Google Translate (he doesn't speak it either), but I feel that its a mediocre solution. If someone could rate the content's integrity, that'd be awesome. Thanks.

Member Avatar
Member Avatar
+0 forum 1

Hi Expert, I'm currently using the javascript as follow to display a greeting message based on visitor's location, as follow: [CODE] <script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=<CITY>, <COUNTRY><FLAG> - Welcome to my site!"></script> [/CODE] from [URL="http://www.ip2phrase.com"]http://www.ip2phrase.com[/URL] It works, but now i would like to have the auto translation for the phrase "Welcome to my site!" based on country. For example, US: Welcome to my site! China: 欢迎光临我的网站! Any javascript out-there i can use?

Member Avatar
+0 forum 0

Hi there, This is following on from a previous solved thread. Basically, I have this code: [CODE]<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ? 'Error: The captcha was entered incorrectly. Please try again.' : '') . ' </td>[/CODE] I've now been told that the "Error: The captcha..." message will need to be translated into French and German using the database that this company uses. Elsewhere in the code, other things are translated like this: [CODE]'.$sb->dt('Enquiry Form').'[/CODE] The '.$sb->dt....' sends the "Enquiry Form" text to the database for translation. How can I simply incorporate the .$sb->dt into …

Member Avatar
Member Avatar
+0 forum 5

I want to translate text inputted multiple times then output it. I am using the maketrans() function. I want to translate multiple times, by a number of times a user would input.

Member Avatar
Member Avatar
+0 forum 8

Hey guys, I need some help regarding a project involving dictionary based language translation. So what I have to do is, given a text in a foreign language (like Hindi), my program should match each word from a 'dictionary like file' and give the output in English, I don't have to worry about grammar, inflection, etc. I think I could make a simple program which just searches for each word and replaces it with the translated word. Seems simple but I am having the following problems: 1. How do I use another language in a C program? Maybe Unicode? But …

Member Avatar
Member Avatar
+0 forum 1

I have this psuedocode: [QUOTE]FUNCTION initialize FOR row = 1 to num_items get random number for the list ENDFOR ENDFUNCTION initialize FUNCTION show FOR row = 1 to num_items show output: list(row) ENDFOR ENDFUNCTION show FUNCTION sort FOR pass = 1 to num_items posn = 1 sorted = True WHILE posn < num_items IF list(posn) > list(posn + 1) swap list(posn) with list(posn + 1) sorted = False ENDIF increment posn ENDWHILE IF sorted Exit the FOR loop ENDIF perform show ENDFOR ENDFUNCTION sort num_items = MAX define a numeric list of size num_items perform initialize perform show perform sort[/QUOTE] …

Member Avatar
Member Avatar
+0 forum 7

y/A-Za-z/N-ZA-Mn-za-m/; it is a rot13 script but I don't undestand how it works, what is the y// operator for

Member Avatar
Member Avatar
+0 forum 1

My question is: I'm being asked to research and provide keywords for a PPC campaign that runs at the same time we're optimizing part of our very large site for organic SEO. Do I use the same keywords? I read somewhere that long tail keywords - more specific and less popular ones - maybe shouldn't be used for the AdWords?? Or maybe that they SHOULD be, while the more popular terms work better for organic? Also, I read that the AdWords ads should link to DIFFERENT landing pages than the organic search results links ... is that true? FYI, my …

Member Avatar
+0 forum 0

Hi, i have two input box input box 1 : name is first input box 2 : name is second suppose if i enter "fresh" should be transliterated using google and the output in french should be displayed in the second input box. does anyone have any idea how to do this???

Member Avatar
Member Avatar
+0 forum 2

So, first off lemme explain what a substitution code is in case you don't know. In cryptography, it's a system by which one letter is replaced with another predetermined letter. For example, if "I" turns to "E", and "F" turns to "V", the word "If" would be written as "Ev". I'm wondering if it's possible to write a program in C++ which does this in a string for me. I'm a heavy beginner, as in only a few weeks of classes, but I think I'm getting closer and closer, but I also think I'm missing some key component knowledge. If …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I need to do a translation using 2D arrays for my Superposition algorithm. Translation: I plan to use the CA(Alpha carbon) as my invariant point which is usually the 2nd line in the pdb.txt file. So how go about doing that? Must I use an orthogonal matrix? Or can I just subtract the coordinates of file1 from file 2 for X, Y & Z to get the rest of the ATOMS to move by that difference? You help is greatly appreciated! :) This program is in JAVA. while ((text1 = br1.readLine()) != null) { //Read File Line By …

Member Avatar
Member Avatar
+0 forum 4

[ATTACH=right]16313[/ATTACH]More smartphones could soon be headed to Kandahar, Baghdad or other hotspots where U.S. Troops can use a little technological assistance - not to be able to Tweet or check for the latest news from their brigade on [URL="http://www.daniweb.com/news/story299599.html"]Wikileaks[/URL] - but for communicating with the locals. DARPA - the Defense Advanced Research Projects Agency - perhaps best known for creating a little thing called the Internet, has been testing three voice recognition and translation technologies for use by troops in Iraq and Afghanistan as part of the bureaucratically-named project TRANSTAC. Judging by a [URL="http://www.youtube.com/watch?v=fOIbdB7s0o4&feature=player_embedded"]video from the National Institute for Standards …

Member Avatar
+0 forum 0

My name is Melandra and I am probably a bit unusual in that rather than being any kind of a computer technician myself, I work for a company that supplies you technicians with translation of your video game text, software and help files etc. when you want to reach overseas markets. I work from home and have many interests myself, including Runescape, playing the drums, guitar and violin, writing songs, painting and playing computer games on my PC after work. I like strategy games best and can waste hours on them if unchecked. I also love cooking and being outdoors …

Member Avatar
Member Avatar
+0 forum 1

Hi there I am translating PERL code into PYTHON Code My PERL code is if ( my $client = $dealing_clients->{ $data->{fundId} } ) And i translated it into python as if (client = dealing_clients[data["fundId"]]): But it is giving my following Error "Syntax Error While detecting Tuple" Any one know how to fix this error and why i am getting this error? Waiting for guidance. Thanks in advance. Regards Sarfraz

Member Avatar
Member Avatar
+0 forum 2

I want to make a website just like [url snipped] , can you please help me, where to start it. Regards, rizwan7781

Member Avatar
+0 forum 0

I am not a great fan of online translation services, or at least not the free variety which almost invariably end up making some huge gaffs. However, Google obviously likes the idea as it has been providing just such a tool for a while now in the shape of Google Translate. Today it has announced that the technology will be integrated into Gmail as an experimental feature. This will, the nice lady in the Google Press Office tells me, enable you "to conduct entire conversations in multiple languages, with each of you reading the messages in whatever language you choose." …

Member Avatar
Member Avatar
+0 forum 2

The End.