Sponsored Content
Full Discussion: bash and languages
Top Forums Shell Programming and Scripting bash and languages Post 302202904 by dave123 on Friday 6th of June 2008 03:09:01 AM
Old 06-06-2008
Quote:
Originally Posted by era
What do you mean by "write a script in English"?

The command names like cat df awk etc are never localized, even though some of them coincide with English words (date, join, sort ...)

Output from some commands will be localized, so if you are e.g. parsing the output from ls it might be different from what you expect if the user is in another locale. See man locale for an overview. If this is an issue for your script, export LC_ALL=C should force all commands to use a "traditional" C locale (meaning in practice English minus minus).

If your script prints some messages in English, then of course, unless you take special precautions, your strings will be simply strings and won't change even if you would like them to. If you want to make your script localizable, look at gettext and other internationalization frameworks.
Hi Era
thankyou for repying, yes what i meant was, i have a bash script written in english
and if someone, eg german etc, wanted to use the script, would it it still work on their machine, ignoring the fact that they couldnt read it.
So if i understand you right adding export LC_ALL=C to a script will allow it to work regardless of locale/language set on the users machine,
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

scripting languages

I am currently working as a configuration manager on a quite a large project. Our development environment is on NT, but from unit testing onwards it will be UNIX. I will need to write scripts to automate the process of migrating code from NT to UNIX, now since I am new to UNIX, I wasn't sure if... (3 Replies)
Discussion started by: headspin
3 Replies

2. UNIX for Dummies Questions & Answers

Programming/Scripting Languages To Learn

Which languages would, in the long run, be best to learn on a UNIX environment for kernel work, every day programs, and overall UNIX programming? I've been learning C for over a year now (which I'm pretty confident with) and decided I want to look into some other languages. I'll mainly be... (1 Reply)
Discussion started by: tjinr
1 Replies

3. Shell Programming and Scripting

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" ,... (2 Replies)
Discussion started by: bora99
2 Replies

4. What is on Your Mind?

Programming languages polyglots: how many languages you know?

Post what languages (including scripting) you know, why and where you think that language is most usable. Also include libraries in which you're really good at (libusb, gtk, qt, etc). assembly? C or C++? perl or python? pascal? bash or csh/tcsh? opengl? gtk or qt? mono? (27 Replies)
Discussion started by: redoubtable
27 Replies

5. Web Development

What Web Development languages should i learn?

I am learning Web Development, so far i am learning html,xhtml, css, java script.... What I want to know is what other Web Development languages should i learn? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. What is on Your Mind?

How can I learn computer programming languages on my own?

I would love the idea to develop games. How can I teach myself computer programming? What programs or software must I use? I have the new iMac? (5 Replies)
Discussion started by: Anna Hussie
5 Replies

7. Programming

Why is C/C++ considered low-level languages???

Hi friends, I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies
MARIA-VIS(1)						      General Commands Manual						      MARIA-VIS(1)

NAME
maria-vis - graph visualization script for maria SYNOPSIS
maria-vis DESCRIPTION
This manual page documents briefly the maria-vis command. maria-vis is a lefty script invoked by maria in order to visually present information to the user. The script reads commands and direc- tives from standard input and may write maria query language commands to standard output. An end-of-file condition on standard input ter- minates the script. The script is built on top of the dotty script that is part of the GraphViz package. The commands prefixed with visual in maria issue two kinds of commands to this script: new(); or add(); followed by a newline character and a graph definition in the dot input language. The new function in the script displays the graph in a new window, while the add function copies information from the graph to the last modi- fied graph. SEE ALSO
dot(1), dotty(1), lefty(1), maria(1). AUTHOR
This manual page was written by Marko Makela <msmakela@tcs.hut.fi>. The maria-vis script and the visualization option were designed and implemented by Marko Makela. Please see the copyright file in /usr/share/doc/maria for details. August 10, 2001 MARIA-VIS(1)
All times are GMT -4. The time now is 05:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy