Re: [translate-pootle] ImportError: No module named pootlepage

2009-03-25 Thread F Wolff
Op Do, 2009-03-26 om 13:07 +0700 skryf au8ust:
> Hello,
> 
> I've just installed latest stable of Pootle and got an issue. I got the
> blank page when access to the Pootle webserver.
> 




> [r...@server l10n]# PootleServer --v
> Python-Levenshtein not found. Continuing with built-in (slower) fuzzy
> matching.
> PootleServer 1.2.1
> jToolkit 0.7.8
> Translate Toolkit 1.2.1
> Kid 0.9.6
> ElementTree 1.2.7
> Python 2.4.3 (#1, May 24 2008, 13:47:28)
> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] (on linux2/posix)
> 
> What is pootlepage? How do I install that?
> 
> Thank you in advance!
> Lee


Hallo Lee

Pootlepage is part of Pootle, and I think you will have it installed. I
guess the error message is putting us on the wrong track here.

Firstly, can you check that all your languages have good names in the
language configuration? The file pootle.prefs contains lots of languages
as examples (with some commented out) which should give you an idea of
what it should look like. My guess is that there is a language without a
proper human readable name (the field is called "fullname" in
pootle.prefs). You can also check in the admin page for languages. If
you see anything different there that might be a good place to start
looking.

There might still be a problem with pootlepage, but let's see if the
languages might be the only issue here.

Keep well
Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/video-virtaals-functionality


--
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


[translate-pootle] ImportError: No module named pootlepage

2009-03-25 Thread au8ust
Hello,

I've just installed latest stable of Pootle and got an issue. I got the
blank page when access to the Pootle webserver.

[r...@server l10n]# PootleServer
Python-Levenshtein not found. Continuing with built-in (slower) fuzzy
matching.
2009-03-26 12:56:23: Listening on port 8080
2009-03-26 12:56:23: To use the server, open a web browser at
http://127.0.0.1:8080/
2009-03-26 13:02:39: Could not get translation for language 'lo':
directory not found for language lo, project pootle
2009-03-26 13:02:40: Could not get translation for language 'lo':
directory not found for language lo, project pootle
2009-03-26 13:02:40: Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Pootle/users.py", line 279, in
handle
page = self.getpage(pathwords, session, argdict)
  File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 63, in
decorated_f
return f(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 302, in
getpage
return indexpage.PootleIndex(self.potree, session)
  File "/usr/lib/python2.4/site-packages/Pootle/indexpage.py", line 99, in
__init__
languages = [{"code": code, "name": self.tr_lang(name), "sep":
self.listseperator} for code, name in self.potree.getlanguages()]
  File "/usr/lib/python2.4/site-packages/translate/lang/data.py", line 164,
in handlelanguage
match = dialect_name_re.match(name)
TypeError: expected string or buffer

2009-03-26 13:02:40: Error handling request from ('202.137.142.20', 54767):
ImportError: No module named pootlepage

2009-03-26 13:02:40: Traceback follows:
Traceback (most recent call last):
  File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
  File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py",
line 73, in __init__
BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, request,
client_address, server)
  File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
self.handle()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 310, in
handle_one_request
method()
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py",
line 241, in do_GET
self.serve_request(path, argdict)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py",
line 194, in serve_request
self.sendpage(thepage)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py",
line 222, in sendpage
response = self.server.sendpage(self, thepage)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py",
line 441, in sendpage
return self.jtoolkitserver.sendpage(req, thepage)
  File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 590, in
sendpage
return super(PootleServer, self).sendpage(req, thepage)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/templateserver.py",
line 136, in sendpage
pagestring = self.buildpage(template, templatevars, loadurl,
req.session.localize)
  File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 550, in
buildpage
t = kid.Template(filename, **context)
  File
"/usr/lib/python2.4/site-packages/kid-0.9.6-py2.4.egg/kid/__init__.py", line
206, in Template
mod = load_template(file, name=name, encoding=encoding)
  File
"/usr/lib/python2.4/site-packages/kid-0.9.6-py2.4.egg/kid/__init__.py", line
160, in load_template
store=cache, ns=ns, exec_module=exec_module)
  File
"/usr/lib/python2.4/site-packages/kid-0.9.6-py2.4.egg/kid/importer.py", line
147, in _create_module
raise_template_error(module=name, filename=filename)
  File
"/usr/lib/python2.4/site-packages/kid-0.9.6-py2.4.egg/kid/importer.py", line
143, in _create_module
exec code in mod.__dict__
  File "", line 20, in ?
ImportError: No module named pootlepage


[r...@server l10n]# PootleServer --v
Python-Levenshtein not found. Continuing with built-in (slower) fuzzy
matching.
PootleServer 1.2.1
jToolkit 0.7.8
Translate Toolkit 1.2.1
Kid 0.9.6
ElementTree 1.2.7
Python 2.4.3 (#1, May 24 2008, 13:47:28)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] (on linux2/posix)

What is pootlepage? How do I install that?

Thank you in advance!
Lee
--
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] styling of the new translate page

2009-03-25 Thread Julen
On Wed, Mar 25, 2009 at 11:50 AM, Samuel Murray (Groenkloof)
 wrote:
> F Wolff wrote:
>
>> I agree with Alaa that we should try a
>> smaller font for the location comments. I think it is looking large
>> since it uses a monospaced font.
>
> The thing is that the screenshot was taken on a screen with a very high
> resolution viewed at full screen width.  This means that there is lots
> of space.  When viewed on a lower resolution (eg a laptop with a more
> squarish screen) or not in full screen width (eg if the user doesn't
> maximise his browser windows), the layout is likely to look more
> crowded.  I personally had no problem with the size of the elements
> here... I noticed that the location comments are in a monospace font,
> and that is good because it reaffirms the potentially more geeky nature
> of it, but I did not think that it was too big.

I agree about the monospace font.

The screen: 24 inches @ 1920x1200, but using only 1250px for the browser :P

>> In Virtaal we are only showing it if
>> there are no developer comments.
>
> I know that one can hide stuff using CSS, but is it possible to build
> evaluations into a style sheet (i.e. if dev comment = none then set loc
> comment = do display)?

This isn't done through CSS but directly from Python or even
JavaScript is possible (not so nice though).

>> Can we try with a lighter background colour for the source texts?
>
> I agree for a slightly lighter background colour.

I see we all agree with this and that the third one is the best choice :)

More screenshots:

- lighter background: http://xs137.xs.to/xs137/09133/thick6135.png

- lighter background and smaller font for locations:
http://xs137.xs.to/xs137/09133/thick7872.png

> I think I've missed the initial posts of this thread -- is this about
> creating skins for Pootle or will these styles be hard-coded?

No, this thread has born after an IRC conversation -- therefore,
nothing you've missed. These styles will be included right in the CSS,
so any Pootle admin can edit them (unfortunately there's no easy way
to support skins right now).

Thanks for your input !

Julen.

--
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] styling of the new translate page

2009-03-25 Thread Samuel Murray (Groenkloof)
F Wolff wrote:

> I agree with Alaa that we should try a
> smaller font for the location comments. I think it is looking large
> since it uses a monospaced font.

The thing is that the screenshot was taken on a screen with a very high 
resolution viewed at full screen width.  This means that there is lots 
of space.  When viewed on a lower resolution (eg a laptop with a more 
squarish screen) or not in full screen width (eg if the user doesn't 
maximise his browser windows), the layout is likely to look more 
crowded.  I personally had no problem with the size of the elements 
here... I noticed that the location comments are in a monospace font, 
and that is good because it reaffirms the potentially more geeky nature 
of it, but I did not think that it was too big.


> In Virtaal we are only showing it if
> there are no developer comments.

I know that one can hide stuff using CSS, but is it possible to build 
evaluations into a style sheet (i.e. if dev comment = none then set loc 
comment = do display)?

> Can we try with a lighter background colour for the source texts?

I agree for a slightly lighter background colour.

I think I've missed the initial posts of this thread -- is this about 
creating skins for Pootle or will these styles be hard-coded?

Samuel



-- 
Samuel Murray
sam...@translate.org.za
Decathlon, for volunteer opensource translations
http://translate.sourceforge.net/wiki/decathlon/

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle