|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Translation problemsHi,
I am looking at the translations for nl_NL and I'm running into some problems. First: make_mo_files.sh does not work. I've taken the cvn for Gallery today (and tested it with my installed 1.5.7 too) and I get: bash-3.2$ sh make_mo_files.sh -po nl_NL make_mo_files.sh: test: unknown operator -e bash-3.2$ I've looked into the script and it goes wrong on line 55: if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then There my shell script knowledge ends. This is on Solaris 7 BTW. Next, I'm looking for a translation but can't seem to find the correct message. The problem is that when viewing Gallery in the nl_NL translation, the dates are suffixed with '>' (as can be seen in my gallery on <http://maasluip.xs4all.nl/trein/gallery/?newlang=nl_NL>) But when I search for the message string, I can't find the '>' in the string. It does not appear to be a general Gallery problem because de_DE does not do this. What could go wrong here? Maarten ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gallery-translations mailing list Gallery-translations@... https://lists.sourceforge.net/lists/listinfo/gallery-translations |
|
|
Re: Translation problemsOn Sat, Feb 02, 2008 at 03:47:39PM +0100, Maarten Deen wrote:
> I've looked into the script and it goes wrong on line 55: > if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then That surely looks strange - and more complicated than it has to. I would write it if [ $1 != "-all" -a ! -e ../locale/$2 ] ; then no need to fork out two incanations of test /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - nba@... The purpose of computing is insight, not numbers --- R W Hamming ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gallery-translations mailing list Gallery-translations@... https://lists.sourceforge.net/lists/listinfo/gallery-translations |
|
|
Re: Translation problemsNiels Baggesen wrote:
> On Sat, Feb 02, 2008 at 03:47:39PM +0100, Maarten Deen wrote: >> I've looked into the script and it goes wrong on line 55: >> if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then > > That surely looks strange - and more complicated than it has to. > > I would write it > > if [ $1 != "-all" -a ! -e ../locale/$2 ] ; then > > no need to fork out two incanations of test Initially that didn't work either: bash-3.2$ sh make_mo_files.sh -po nl_NL make_mo_files.sh: test: argument expected bash-3.2$ So I also started to poke around and I just found that the first line of the shell script seems to want bash as shell. So I tried running it with bash: bash-3.2$ bash make_mo_files.sh -po nl_NL make_mo_files.sh: line 64: cd: make_mo_files.sh: Not a directory Checking ../locale OK only nl_NL find: bad option -iname find: path-list predicate-list nl_NL bash-3.2$ seems better, but I think still does not work properly. No .mo files are created. On top of that: the script is not made to be run in an external shell, judging the first error. That does disappear when running the script directly, but the other messages don't. Maarten ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gallery-translations mailing list Gallery-translations@... https://lists.sourceforge.net/lists/listinfo/gallery-translations |
|
|
Re: Translation problemsmaybe also wrap the $1 in quotes? "$1"
Niels Baggesen wrote: > On Sat, Feb 02, 2008 at 03:47:39PM +0100, Maarten Deen wrote: > >> I've looked into the script and it goes wrong on line 55: >> if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then >> > > That surely looks strange - and more complicated than it has to. > > I would write it > > if [ $1 != "-all" -a ! -e ../locale/$2 ] ; then > > no need to fork out two incanations of test > > /Niels > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gallery-translations mailing list Gallery-translations@... https://lists.sourceforge.net/lists/listinfo/gallery-translations |
|
|
Re: Translation problemsHallo Maarten,
thanks for the report. I changed the script in cvs. You can get it from there, or grab it from http://jems.de/archive/1.5.8/ Its in b21 (and later). Please tell me if it works now. Greetings, Jens Maarten Deen schrieb: > Hi, > > I am looking at the translations for nl_NL and I'm running into some problems. > First: make_mo_files.sh does not work. I've taken the cvn for Gallery today (and > tested it with my installed 1.5.7 too) and I get: > bash-3.2$ sh make_mo_files.sh -po nl_NL > make_mo_files.sh: test: unknown operator -e > bash-3.2$ > > I've looked into the script and it goes wrong on line 55: > if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then > > There my shell script knowledge ends. > This is on Solaris 7 BTW. > > Next, I'm looking for a translation but can't seem to find the correct message. > The problem is that when viewing Gallery in the nl_NL translation, the dates are > suffixed with '>' (as can be seen in my gallery on > <http://maasluip.xs4all.nl/trein/gallery/?newlang=nl_NL>) > But when I search for the message string, I can't find the '>' in the string. > It does not appear to be a general Gallery problem because de_DE does not do this. > What could go wrong here? > > Maarten > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gallery-translations mailing list > Gallery-translations@... > https://lists.sourceforge.net/lists/listinfo/gallery-translations ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gallery-translations mailing list Gallery-translations@... https://lists.sourceforge.net/lists/listinfo/gallery-translations |
|
|
Re: Translation problemsJens A. Tkotz wrote:
> Hallo Maarten, > > thanks for the report. I changed the script in cvs. > You can get it from there, or grab it from http://jems.de/archive/1.5.8/ > > Its in b21 (and later). > > Please tell me if it works now. Yes, after some more tweaking it does. It appeared that the standard Solaris msgfmt is not compatible with what is expected in the script. You need the GNU version (included in gettext). After I installed that, it seems to work fine. That is: the script now runs fine and msgfmt does not give out any errors. One thing though: please remove the 'clear' statement from the script. I see no need for it and IMHO it is very annoying when a script clear the screen. Regards, Maarten > Maarten Deen schrieb: >> Hi, >> >> I am looking at the translations for nl_NL and I'm running into some problems. >> First: make_mo_files.sh does not work. I've taken the cvn for Gallery today (and >> tested it with my installed 1.5.7 too) and I get: >> bash-3.2$ sh make_mo_files.sh -po nl_NL >> make_mo_files.sh: test: unknown operator -e >> bash-3.2$ >> >> I've looked into the script and it goes wrong on line 55: >> if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then >> >> There my shell script knowledge ends. >> This is on Solaris 7 BTW. >> >> Next, I'm looking for a translation but can't seem to find the correct message. >> The problem is that when viewing Gallery in the nl_NL translation, the dates are >> suffixed with '>' (as can be seen in my gallery on >> <http://maasluip.xs4all.nl/trein/gallery/?newlang=nl_NL>) >> But when I search for the message string, I can't find the '>' in the string. >> It does not appear to be a general Gallery problem because de_DE does not do this. >> What could go wrong here? >> >> Maarten >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gallery-translations mailing list >> Gallery-translations@... >> https://lists.sourceforge.net/lists/listinfo/gallery-translations > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gallery-translations mailing list Gallery-translations@... https://lists.sourceforge.net/lists/listinfo/gallery-translations |
| Free embeddable forum powered by Nabble | Forum Help |