HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: character output in different languages (shell...
Operating System - Linux
1827668
Members
3475
Online
109967
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 04:57 AM
01-30-2008 04:57 AM
character output in different languages (shell script)
hello,
i have to change a lot of shell scripts (sh,ksh) for one reason :
the character 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 a other language,which i choice, for an example: german ("das ist ein test"), 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
i have to change a lot of shell scripts (sh,ksh) for one reason :
the character 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 a other language,which i choice, for an example: german ("das ist ein test"), 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
- Tags:
- locale
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 05:06 AM
01-30-2008 05:06 AM
Re: character output in different languages (shell script)
In start of scripts set language and include language files, depending of choise.
For exaple:
if $LANG == ENG {
. english.text
}
and after that just echo, print variables - echo $MSG1.
In the file english.text MSG1='this is a test'
in file german.text MSG1='das ist ein test' and so on.
regards,
ivan
For exaple:
if $LANG == ENG {
. english.text
}
and after that just echo, print variables - echo $MSG1.
In the file english.text MSG1='this is a test'
in file german.text MSG1='das ist ein test' and so on.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 05:07 AM
01-30-2008 05:07 AM
Re: character output in different languages (shell script)
Hi:
The GNU 'gettext' package is available for HP-UX from the Porting Center. The manpages and README file offers some insights for your undertaking (should you decide that this is worth the effort).
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gettext-0.17/
Regards!
...JRF...
The GNU 'gettext' package is available for HP-UX from the Porting Center. The manpages and README file offers some insights for your undertaking (should you decide that this is worth the effort).
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gettext-0.17/
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP