Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith'

2008-11-11 Thread F Wolff
On Di, 2008-11-11 at 22:50 +0800, Olaf wrote:
> F Wolff wrote:
> > I managed to duplicate the error and found the cause: it was a typing
> > error in pootle.prefs. Details in this bug:
> > 
> > http://bugs.locamotion.org/show_bug.cgi?id=594
> > 
> Indeed that was it, all that trouble due to a missing double quote... 
> Thanks a lot, Friedel, you're my hero of the day - especially because I 
> cannot understand how someone can locate a bug with this kind of error 
> messages...
> 
> 
> Thanks again,
> 
> Olaf

It is my pleasure. It was a bit of an obscure one. We'll be moving away
from the prefs files quite soon. So these errors should soon be
something of the past. Thanks for persevering on this one.

Keep well
Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/blurred-vision-beeld


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith'

2008-11-11 Thread Olaf
F Wolff wrote:
> I managed to duplicate the error and found the cause: it was a typing
> error in pootle.prefs. Details in this bug:
> 
> http://bugs.locamotion.org/show_bug.cgi?id=594
> 
Indeed that was it, all that trouble due to a missing double quote... 
Thanks a lot, Friedel, you're my hero of the day - especially because I 
cannot understand how someone can locate a bug with this kind of error 
messages...


Thanks again,

Olaf

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith'

2008-11-10 Thread F Wolff
On Ma, 2008-10-27 at 09:49 +0800, Olaf wrote:
> I am running Pootle 1.2, allow English and Chinese Traditional in 
> pootle.prefs and have set up Chinese Traditional as default language. 
> When I click on English or try to go to the Pootle project on my site, I 
> get this error displayed (The rest of the page (header/footer) is still 
> working normally.)
> 
> UnresolvedPref instance has no attribute 'startswith'
> 
> The console lists this:
> 
>File "/usr/lib/python2.5/posixpath.py", line 49, in isabs
>  return s.startswith('/')
> AttributeError: UnresolvedPref instance has no attribute 'startswith'
> 
> I suppose this is another problem with pootle.prefs not being set up the 
> way it should?
> 
> Regards,
> 
> Olaf

I managed to duplicate the error and found the cause: it was a typing
error in pootle.prefs. Details in this bug:

http://bugs.locamotion.org/show_bug.cgi?id=594


Keep well
Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/blurred-vision-beeld


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith' - and UI language

2008-10-31 Thread Olaf
Dwayne Bailey wrote:
> On Fri, 2008-10-31 at 07:36 +0200, F Wolff wrote:
>>> rights:
>>>default = u'view, suggest, archive, pocompile'
>>>nobody = u'view'
> Why is there a 3 space indent in that entry?  Is that not the source of
> the problem since the main pootle.prefs is two space indented if I
> recall?
> 
I don't know how this happened, but when I sent out that original mail 
there was only a two-space indent, as is in the prefs files.

Regards,

Olaf

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith' - and UI language

2008-10-31 Thread Olaf
F Wolff wrote:
> On Vr, 2008-10-31 at 09:25 +0800, Olaf wrote:
> I'm not sure why you suppose this. As Wynand asked before. If you are
> able to upload your pootle.prefs file (probably easiest in Bugzilla) we
> can try to duplicate the problem to see what is causing it. I would
Sorry, I had sent it to Wynand directly, because he offered to have a 
look. I didn't want to paste it here on the list. But I have now posted 
it on Bugzilla.

> The interface translations are part of the "pootle" translation project
> that is shipped with Pootle. My guess is that you didn't put that into
> your "po" directory when you changed the default location of these
> files.
> 
The Pootle project and all its language files are still at the original 
location in the po folder. I can set the default language to either 
English or Chinese through pootle.prefs, but I cannot change it through 
the web in my account preferences.

Regards,

Olaf


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith' - and UI language

2008-10-31 Thread Dwayne Bailey
On Fri, 2008-10-31 at 07:36 +0200, F Wolff wrote:



> > This is just a hunch, but could this error be related to the 
> > pootle-project-lang.prefs file within each language folder in a project?
> > 
> > Mine look like this:
> > 
> > # Pootle preferences for project pnforum, language zh_TW
> > 
> > rights:
> >default = u'view, suggest, archive, pocompile'
> >nobody = u'view'
> > 
> > 
> > 
> > The same file in the Pootle project is basically empty, only has the 
> > first, commented line.
> 
> This lists the rights for the project. With the Pootle one being empty
> it just means that it is using the default rights defined on the server.

Why is there a 3 space indent in that entry?  Is that not the source of
the problem since the main pootle.prefs is two space indented if I
recall?



-- 
Dwayne Bailey
Associate  +27 12 460 1095 (w)
Translate.org.za   +27 83 443 7114 (c)

Recent blog posts:
* Virtaal on Fedora: not just yet, but soon'ish
http://www.translate.org.za/blogs/dwayne/en/content/virtaal-fedora-not-just-yet-soonish
* Fennec in Afrikaans
* Virtaal on the Mac



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith' - and UI language

2008-10-30 Thread F Wolff
On Vr, 2008-10-31 at 09:25 +0800, Olaf wrote:
> I had mentioned this problem here before and Wynand tried to help, but I 
> suppose it was not the pootle.prefs file (Pootle 1.2) causing trouble. 

I'm not sure why you suppose this. As Wynand asked before. If you are
able to upload your pootle.prefs file (probably easiest in Bugzilla) we
can try to duplicate the problem to see what is causing it. I would
still guess that it is the pootle.prefs file, although the possibility
you mention below is also a possibility.

> This is just a hunch, but could this error be related to the 
> pootle-project-lang.prefs file within each language folder in a project?
> 
> Mine look like this:
> 
> # Pootle preferences for project pnforum, language zh_TW
> 
> rights:
>default = u'view, suggest, archive, pocompile'
>nobody = u'view'
> 
> 
> 
> The same file in the Pootle project is basically empty, only has the 
> first, commented line.

This lists the rights for the project. With the Pootle one being empty
it just means that it is using the default rights defined on the server.

> 
> And there is one more strange thing: I can not switch the interface 
> language from the web. I have English and Chinese (Taiwan) enabled. I 
> can select the other language in my account settings, but all that 
> changes is that the characters will become smaller if I try to switch to 
> English, or they become larger if I try to switch to Chinese. The 
> language displayed however does not change and depends on what I have 
> set as default...
> 
> Regards,
> 
> Olaf

The interface translations are part of the "pootle" translation project
that is shipped with Pootle. My guess is that you didn't put that into
your "po" directory when you changed the default location of these
files.

Keep well
Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/its-easyer-with-kulula


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


[translate-pootle] UnresolvedPref instance has no attribute 'startswith' - and UI language

2008-10-30 Thread Olaf
I had mentioned this problem here before and Wynand tried to help, but I 
suppose it was not the pootle.prefs file (Pootle 1.2) causing trouble. 
This is just a hunch, but could this error be related to the 
pootle-project-lang.prefs file within each language folder in a project?

Mine look like this:

# Pootle preferences for project pnforum, language zh_TW

rights:
   default = u'view, suggest, archive, pocompile'
   nobody = u'view'



The same file in the Pootle project is basically empty, only has the 
first, commented line.

And there is one more strange thing: I can not switch the interface 
language from the web. I have English and Chinese (Taiwan) enabled. I 
can select the other language in my account settings, but all that 
changes is that the characters will become smaller if I try to switch to 
English, or they become larger if I try to switch to Chinese. The 
language displayed however does not change and depends on what I have 
set as default...

Regards,

Olaf

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] UnresolvedPref instance has no attribute 'startswith'

2008-10-27 Thread Wynand Winterbach
Hi Olaf

That does seem like a problem with pootle.prefs.

If you attach your prefs file I can have a look.

Cheers
Wynand
> I am running Pootle 1.2, allow English and Chinese Traditional in 
> pootle.prefs and have set up Chinese Traditional as default language. 
> When I click on English or try to go to the Pootle project on my site, I 
> get this error displayed (The rest of the page (header/footer) is still 
> working normally.)
>
> UnresolvedPref instance has no attribute 'startswith'
>
> The console lists this:
>
>File "/usr/lib/python2.5/posixpath.py", line 49, in isabs
>  return s.startswith('/')
> AttributeError: UnresolvedPref instance has no attribute 'startswith'
>
> I suppose this is another problem with pootle.prefs not being set up the 
> way it should?
>
> Regards,
>
> Olaf
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Translate-pootle mailing list
> Translate-pootle@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
>   


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


[translate-pootle] UnresolvedPref instance has no attribute 'startswith'

2008-10-26 Thread Olaf
I am running Pootle 1.2, allow English and Chinese Traditional in 
pootle.prefs and have set up Chinese Traditional as default language. 
When I click on English or try to go to the Pootle project on my site, I 
get this error displayed (The rest of the page (header/footer) is still 
working normally.)

UnresolvedPref instance has no attribute 'startswith'

The console lists this:

   File "/usr/lib/python2.5/posixpath.py", line 49, in isabs
 return s.startswith('/')
AttributeError: UnresolvedPref instance has no attribute 'startswith'

I suppose this is another problem with pootle.prefs not being set up the 
way it should?

Regards,

Olaf

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle