Posted: Tue 18 Mar 2014, 19:58 Post subject:
gettext - the use of the apostrophe
Here is an example for programmers to use as a guide when
writing a script for Puppy linux.
It shows the proper way to insert text (text widgets or buttons)
which have the apostrophe in the text string.
As well I show how to use Xdialog in an <action> tag.
It must be just one continuous line of code. \n is allowed by
Xdialog for several lines of text in the window.
Exporting of the variable is needed to get the string into Xdialog
which is a separate program. i.e. export TEXT3
Also note that two levels of quoting is sometimes necessary ie.
"'$(gettext "Dick's Conversion")'"
The strong quoting allows the execution of gettext program
Joined: 12 Oct 2012 Posts: 1423 Location: The other Mr. 305
Posted: Wed 19 Mar 2014, 14:44 Post subject:
Once again, I appreciate your work and tutelage. I have been piecing together a bunch of useful bash scripts and I've been considering a nicer interface. I wasn't so interested in the apostrophe as I was with the actual end product. Good stuff.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum