Copy n' paste... BUT...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Copy n' paste... BUT...

Post 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.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post 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
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

I've never used it, but this sounds like what the gettext program is designed for.
Post Reply