The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bash and languages dave123 Shell Programming and Scripting 9 06-10-2008 03:30 AM
Writing in Japanese or differet languages jeremiebarber UNIX for Dummies Questions & Answers 1 10-22-2002 02:47 AM
Operating System and Programming languages jacx2 UNIX for Advanced & Expert Users 2 04-15-2002 08:59 AM
scripting languages headspin UNIX for Dummies Questions & Answers 3 01-31-2002 02:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-30-2008
Registered User
 

Join Date: Jul 2007
Posts: 8
output in different languages

hello,

i have to change a lot of shell scripts for one reason :

the output in a script should be done in different languages.

for example:

echo "this is a test"

and "this is a test" should be printed out in language for an example: german,italian and so.

i saw a tool "gettext" , is it useable for this ?

also should work

echo "this is a test of Variable $Var"

regards
Reply With Quote
Forum Sponsor
  #2  
Old 01-30-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,046
The GNU gettext approach is one way of doing it. Most UNIX vendors however use dspmsg.
Reply With Quote
  #3  
Old 01-31-2008
Registered User
 

Join Date: Jul 2007
Posts: 8
Thank you for your fast answer. I made some tests with gettext (HP-UX,Linux). We will choice gettext.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0