Re: [Bashburn-info] Question on Language files
Brought to you by:
bashburn
|
From: Nick W. <ni...@uk...> - 2008-08-31 21:53:24
|
On Sun, 31 Aug 2008 22:50:09 +0200 Anders Lindén <and...@gm...> wrote: > On Sun, 2008-08-31 at 16:08 -0400, Steven W. Orr wrote: > > On Sunday, Aug 31st 2008 at 14:39 -0000, quoth Nick Warne: > > > > =>I just noticed a lot of the English Lang files text is wrapped in > > =>singles quotes ' whereas most other languages use double quotes " > > => > > =>Why is this? Does it matter? Should there be a convention > > anyway if =>either work (as they seem to do)? > > => > > =>I can clean up if desired tomorrow (pub time now ;-) ) > > => > > =>Nick > > > > There's nothing wrong with how things are written. using any of the > > working quoting systems. I personally use a style that I developed > > called The Steven Orr System of Minimal Shell Quoting. (patent > > pending) :-( > > > > Anyhoo, it looks like this: > > > > foo=Hello # Case 1 > > bar='Woops. I slipped.' # Cabe B > > baz="I like to say $foo when I meet peopls." # Case iii > > > > so what you have here is three distinct situations: > > > > In case 1, the value in question is a s single word. There is no > > need to quote anything. You are allowed to use both single or > > double quotes, but but not using anything, the reader of the code > > immediately sees that there is a value that is composed of just one > > word. > > > > Case 2 is obviously a multi-word value with no variable expansion. > > No double quotes needed. Yes, "s are legal, but I can look at a > > long string and see right away that there is no variable expansion > > going on. > > > > Case 3 tells me right away that there are variables afoot. > > > > So you asked about a convention? There it is. > > > > Do you hate it? Do you love it? > > > > Sound great to me. I think we should use this system, and I'll contact > Stevens lawyers to settle a licensing fee. :-) > I dunno if I said it right. The files under bashburn/lang/ ... e.g. ./lang/German/BashBurn.lang:22:bb_text_7="Suche CD Brenner...." ./lang/Czech/BashBurn.lang:22:bb_text_7="Detekuji CD mechaniku ...." ./lang/Norwegian/BashBurn.lang:22:bb_text_7="Finn cd-brennar...." ./lang/Spanish/BashBurn.lang:22:bb_text_7="Detectando grabadora de CD ...." ./lang/English/BashBurn.lang:22:bb_text_7='Detecting CD Writer ....' ./lang/Italian/BashBurn.lang:22:bb_text_7="Sto cercando il masterizzatore cd ...." ./lang/Swedish/BashBurn.lang:22:bb_text_7="Söker efter CD-brännare ...." ./lang/Polish/BashBurn.lang:22:bb_text_7="Wykrywanie nagrywarki..." It is only the English language files that have single quotes... Nick -- Free Software Foundation Associate Member 5508 |