Page 1 of 1

Copy n' paste... BUT...

Posted: Fri Aug 08, 2003 10:42 am
by mikusan
I got this problem, i don't know how many of you ever had that problem, but every project that i do needs at least 3 languages. I have no problem with the ranslation tables as i have all of that set up. My translation works on the premise that there is an array $LANG['titles'][1] which will diplay one thing whereas $LANG['titles'][2] will display something else...

However, when i build a website to keep my code comprehensible i code things with human communication system "words" and once i have finished 2000 lines of code going back and forth copy n' pasting and typing the array numbers and all that becomes extremely tedious!!

I was looking for a tool to do that for me...
So that i select a text, and then let the program copy it to the translation tables, replace the text with the equivalent array index.

Posted: Fri Aug 08, 2003 11:15 am
by m3rajk
i don't know of any, but check out emacs and xemacs. i wouldn't be suprised if it's an add in to one of those

Posted: Fri Aug 08, 2003 11:57 am
by nielsene
I've never used it, but this sounds like what the gettext program is designed for.