Re: [Bashburn-info] Gettext support
Brought to you by:
bashburn
|
From: Anders L. <and...@gm...> - 2008-09-11 20:40:35
|
tor 2008-09-11 klockan 10:11 -0400 skrev Steven W. Orr:
> On Thursday, Sep 11th 2008 at 03:11 -0000, quoth Nick Warne:
>
> =>On Wed, 10 Sep 2008 22:30:05 -0400 (EDT)
> =>"Steven W. Orr" <st...@sy...> wrote:
> =>
> =>> >From bash however, we are given an extra obstacle. There are two
> =>> >printf's.
> =>> One is the builtin inside bash:
> =>>
> =>> 1519 > printf 'number1 is %2$s, and number2 is %1$s.\n' number2,
> =>> number1 bash: printf: `$': invalid format character
> =>> number1 is 1520 >
> =>>
> =>> The other is the binary that's seperate from the builtin:
> =>>
> =>> 1520 > /usr/bin/printf 'number1 is %2$s, and number2 is %1$s.\n' \
> =>> number2 number1
> =>> number1 is /usr/bin/printf: %$: invalid directive
> =>> 1521 >
> =>>
> =>> So we can see that they both don't work. Don't let that bother you.
> =>> Just pretend that the functionality is really there. Worst case I can
> =>> write a printf that does what we want. z.b.,
> =>>
> =>> awk 'BEGIN {printf "number1 is %2$s, and number2 is %1$s.\n",
> =>> "number2", "number1"}'
> =>> number1 is number1, and number2 is
> =>> number2.
> =>>
> =>
> =>I just found this:
> =>
> =>http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/localization.html
> =>
> =>I don't know if it helps here.
>
> Nick, you're so modest! This is officially sexy. :-)
>
I agree. This is awesome.
A question for you guys. Do you think we should release 3.0 before or
after we have gettextified BashBurn? I'm thinking that this translation
might take a while and so it will be quite some time before a new
version is released.
On the other hand we want 3.0 to be as good as it can get, and this new
translation system would make our baby kick ass.
So what do you think? Stabilize what we have now and wait with the new
translation system for 3.1, or wait with a release until the translation
system is in place and then release 3.0?
I'm leaning towards waiting but I'd like to hear your opinions as well.
--
Anders Lindén
http://bashburn.sf.net
|