Re: [translate-pootle] How to search for untranslated and fuzzy and setting limits?

2008-05-05 Thread Dwayne Bailey

On Sat, 2008-05-03 at 14:02 +0200, Julen wrote:
> Hi Amos,
> 
> Nice to have feedback from you. Comments below :)
> 
> On Sat, May 3, 2008 at 2:49 AM, Amos Batto <[EMAIL PROTECTED]> wrote:
> >
> >  Now that Pootle is up and running, several of the
> >  translators are resisting using it because they can´t
> >  figure out how to search for untranslated and fuzzy PO
> >  entries. Also, they can´t figure out how to continue a
> >  search. The search always returns to the same PO
> >  entry. Is there a way to filter for untranslated and
> >  fuzzy PO entries and also is there a way to continue
> >  searches?
> 
> Pootle's search function is very limited at the moment. It just
> searches for the typed string within the project you are.
> I'm planning to extend this functionality in my Summer of Code
> project, and although the idea seems to be vague nowadays, it's good
> to hear from user needs. So +1 for this.

I think we're confusing two things here.  If the translators want to
find untranslated and fuzzy they should click on Quick Translate which
will step through the entries that are fuzzy or untranslated.

There is no specific way to search for only untranslated or only fuzzy.

For searching you really want to run against Lucene or Xapian as tehy
are much faster, Xapian unfortunately only works on the Pootle version
in trunk/

> >  The second question is why is there an arbitrary limit
> >  of 20 PO entries in Edit mode, whereas you can see 100
> >  entries in Read mode. Does the performance degrade so
> >  badly with more PO objects in Edit Mode?
> 
> I don't have a response for this, but I would think about performance
> issues as you pointed out.

Performance yes, but completely arbitrary values.  You can change these
in the code and check how it affects your instance.  The smaller
translation limit was to stop translators stepping on each others toes.

> >  I would like to set Pootle to show 100 PO entries at a
> >  time by default for users who haven´t yet registered.
> >  We want the public to check our translations and
> >  discuss them in a separate electronic bulletin board,
> >  but 10 fields at a time is too few. Where can I change
> >  this default value in the code?
> 
> Every user can customize this value in its account page. This affects
> to "viewrows" and "translaterows" variables in users.prefs. So this is
> a per-user setting.
> 
> There's no preference to set a default value for all the users, it's
> hard-coded. So you have to dive into the code and change two variables
> -- translatepage.py, getdisplayrows method, lines 386 and 390.

If you manage to create a patch to allow a global configuration I'd be
glad to apply it to Pootle trunk/

> 
> Hope this helps.
> 
> Julen.
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Translate-pootle mailing list
> Translate-pootle@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
-- 
Dwayne Bailey
Translate.org.za

+27-12-460-1095 (w)
+27-83-443-7114 (cell)


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] How to search for untranslated and fuzzy and setting limits?

2008-05-05 Thread F Wolff
On Vr, 2008-05-02 at 17:49 -0700, Amos Batto wrote:
> Hi,
> Our group runasimipi.org is setting up a Pootle Server
> to translate in languages of the Andes at
> 66.150.224.204:8080 (we will get a real domain name
> eventually). 

Good to hear. We can add it to our list as soon as you have the domain
name.

> 
> I have a couple questions and please pardon me if I´m
> asking something which is already explained in the
> documentation somewhere. Just point me to the
> appropiate page.
> 
> First of all, let me describe some problems I
> encountered setting up Pootle.  The Description field
> for Projects doesn´t accept characters with
> diacritical marks. I discovered that you have to enter
> the HTML code for those characters (like á) or
> PootleServer won´t run. Then I discovered that none of
> the PO files can have characters with diacritical
> marks. After learning that, the pootle server actually
> managed to start.

I am definitely able to have descriptions with diacritics through the
web interface. Did you perhaps try to add it manually in the
configuration file? In that case you need to make sure you prefix the
description with a 'u'. Something like 
description = u'Prójéct déscríptíón"

I would first test to do it through the web interface and see if that
works.

I'm not sure I understand what you mean with the PO files. Are you
talking about diacritics in the filenames, or in the files itself? We
can obviously host files with diacritics, so if this is your problem,
perhaps the advice from Simos is what you need.

> Since I installed Pootle from source, I didn´t have
> any helpful scripts to start and stop PootleServer.
> When I tried stopping the server using Control + Z, it
> left a socket open, which prevented the Pootle server
> from restarting. Only stopping Pootle with Control + C
> actually released the socket and stopped  PootleServer
> correctly.

Control + Z always just stops a process on Linux and keeps the process
in memory. So this is a Linux issue - I'm sure it is meant to work
exactly that way. Pootle is packaged for Debian and Ubuntu systems (and
Gentoo?), which should provide you with start and stop scripts
in /etc/init.d/ like you would have for other services. You could
perhaps also use the scripts from these packages to build your own, if
you want.

> 
> Now that Pootle is up and running, several of the
> translators are resisting using it because they can´t
> figure out how to search for untranslated and fuzzy PO
> entries. Also, they can´t figure out how to continue a
> search. The search always returns to the same PO
> entry. Is there a way to filter for untranslated and
> fuzzy PO entries and also is there a way to continue
> searches? 

In a project, click on "Show editing functions" and then "Quick
translate". This takes you to each fuzzy and untranslated entry within
their context in the file. If people only want to review untranslated
entries (or only fuzzy entries), they can click on "show checks" which
will show all the check categories, which allows the user to review only
the translations in those categories.

At each of these units, if you submit, suggest or skip, it continues to
the next one in the category. The same is true for searching.

> The second question is why is there an arbitrary limit
> of 20 PO entries in Edit mode, whereas you can see 100
> entries in Read mode. Does the performance degrade so
> badly with more PO objects in Edit Mode?
> 
> I would like to set Pootle to show 100 PO entries at a
> time by default for users who haven´t yet registered.
> We want the public to check our translations and
> discuss them in a separate electronic bulletin board,
> but 10 fields at a time is too few. Where can I change
> this default value in the code? 
> 
> Sincerely,
> Amos Batto
> www.runasimipi.org

I believe Julen's reply will help you to change this as you like. Let us
know if there are indeed performance problems or not, then we can
perhaps in future look at making this configurable.

Keep well
Friedel


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 'find'

2008-05-05 Thread Dwayne Bailey
We'd need to see the .pref file.  It seems that your project description
is causing some problems.

This is unrelated but in your directories I don't see a templates/
directory that should be storing your .pot files.

On Thu, 2008-05-01 at 22:47 +0200, Gustavo Narea wrote:
> Hello, everyone.
> 
> I'm getting a very weird error message after I changed the files in my
> working copy of PO catalogs due to a svn problem. The error is
> "UnresolvedPref instance has no attribute 'find'".
> 
> This is what I could find in the log:
> =
> 2008-05-01 22:41:52: Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/Pootle/users.py", line 259, in handle
> page = self.getpage(pathwords, session, argdict)
>   File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 291, in 
> getpage
> return indexpage.PootleIndex(self.potree, session)
>   File "/usr/lib/python2.4/site-packages/Pootle/indexpage.py", line
> 90, in __init__
> meta_description = shortdescription(description)
>   File "/usr/lib/python2.4/site-packages/Pootle/indexpage.py", line
> 44, in shortdescription
> stopsign = descr.find(" AttributeError: UnresolvedPref instance has no attribute 'find'
> =
> 
> I've also attached the layout of this directory, just in case.
> 
> Thanks in advance.
> 
> Gustavo Narea.
> GNU/Linux Matters.
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___ Translate-pootle mailing list 
> Translate-pootle@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
-- 
Dwayne Bailey
Translate.org.za

+27-12-460-1095 (w)
+27-83-443-7114 (cell)


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] How to search for untranslated and fuzzy and setting limits?

2008-05-05 Thread Lars Kruse
Hi,

> For searching you really want to run against Lucene or Xapian as tehy
> are much faster, Xapian unfortunately only works on the Pootle version
> in trunk/

I think, it was not merged, yet. I have to resolve performance issues of the
testing installation with the openoffice PO-files before we can do it.

Lars

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 'find'

2008-05-05 Thread Gustavo Narea
Hello, Dwayne!

I've attached the file.

By the way, regarding the templates/ directory, I didn't about it but it's 
always worked the way it's right now; I'm going to move the .pot files there.

Thanks!

On Monday 05 May 2008 12:33:56 Dwayne Bailey wrote:
> We'd need to see the .pref file.  It seems that your project description
> is causing some problems.
>
> This is unrelated but in your directories I don't see a templates/
> directory that should be storing your .pot files.
>
> On Thu, 2008-05-01 at 22:47 +0200, Gustavo Narea wrote:
> > Hello, everyone.
> >
> > I'm getting a very weird error message after I changed the files in my
> > working copy of PO catalogs due to a svn problem. The error is
> > "UnresolvedPref instance has no attribute 'find'".
> >
> > This is what I could find in the log:
> > =
> > 2008-05-01 22:41:52: Traceback (most recent call last):
> >   File "/usr/lib/python2.4/site-packages/Pootle/users.py", line 259, in
> > handle page = self.getpage(pathwords, session, argdict)
> >   File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 291, in
> > getpage return indexpage.PootleIndex(self.potree, session)
> >   File "/usr/lib/python2.4/site-packages/Pootle/indexpage.py", line
> > 90, in __init__
> > meta_description = shortdescription(description)
> >   File "/usr/lib/python2.4/site-packages/Pootle/indexpage.py", line
> > 44, in shortdescription
> > stopsign = descr.find(" > AttributeError: UnresolvedPref instance has no attribute 'find'
> > =
> >
> > I've also attached the layout of this directory, just in case.
> >
> > Thanks in advance.
> >
> > Gustavo Narea.
> > GNU/Linux Matters.
> > -
> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > Don't miss this year's exciting event. There's still time to save $100.
> > Use priority code J8TL2D2.
> > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja
> >vaone ___ Translate-pootle
> > mailing list Translate-pootle@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/translate-pootle


-- 
Gustavo Narea.
http://gustavonarea.net/

Get rid of unethical constraints!
 - Switch to Freedomware: http://softwareliberty.com/
 - Reclaim your culture: http://lifesnotreadonly.net/
-- 
Gustavo Narea.
http://gustavonarea.net/

Get rid of unethical constraints!
 - Switch to Freedomware: http://softwareliberty.com/
 - Reclaim your culture: http://lifesnotreadonly.net/


signature.asc
Description: This is a digitally signed message part.
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] How to search for untranslated and fuzzy and setting limits?

2008-05-05 Thread Amos Batto
--- F Wolff <[EMAIL PROTECTED]> wrote:

> >  The Description field
> > for Projects doesn´t accept characters with
> > diacritical marks. I discovered that you have to
> enter
> > the HTML code for those characters (like á)
> or
> >  Then I discovered that none of
> > the PO files can have characters with diacritical
> > marks. After learning that, the pootle server
> > actually managed to start.
> 
> I am definitely able to have descriptions with
> diacritics through the
> web interface. Did you perhaps try to add it
> manually in the
> configuration file? In that case you need to make
> sure you prefix the
> description with a 'u'. Something like 
>   description = u'Prójéct déscríptíón"
> 

OK, that worked.

> 
> I'm not sure I understand what you mean with the PO
> files. Are you
> talking about diacritics in the filenames, or in the
> files itself? 

Sorry, I was unclear. I am talking about diacritics in
the header of the PO File, which is the blank msgid
where the information about the package and the
translator is put. I found a bug report about this so,
it is a known problem.

> Pootle is packaged for Debian and
> Ubuntu systems (and
> Gentoo?), which should provide you with start and
> stop scripts
> in /etc/init.d/ like you would have for other
> services. You could
> perhaps also use the scripts from these packages to
> build your own, if
> you want.
>

I sort of wrote my own simple script and stuck it in
/etc/init.d, which seems to work good enough. 
 
>> The second question is why is there an arbitrary
>> limit
>> of 20 PO entries in Edit mode, whereas you can see
>> 100
>> entries in Read mode. Does the performance degrade
>> so
>> badly with more PO objects in Edit Mode?

> Let us
> know if there are indeed performance problems or
> not, then we can
> perhaps in future look at making this configurable.

Since I'm sitting in Bolivia where internet
connections are really bad, it is dificilt to judge,
but I notice a that it does take much longer for
Pootle to respond when asked for 200 entries at a time
in read mode. Will PyLucene speed up the general
retrieval of entries, or only when doing searches? 

I haven´t been able to install PyLucene in Debian
Etch. There is a nice how-to at
https://systemausfall.org/wikis/howto/PyLuceneOnDebian,
but I get errors when I try to install jcc, so I can't
use the latest version of pyLucene. (The error lies in
the instalation of sun-java5-bin, perhaps because my
system was Sarge, upgraded to Etch.)

When I try to compile  PyLucene 2.2.0-1 with gcj, I
can't seem to figure out how to configure the Makefile
correctly. I have installed gcc 3.4 as recommended,
but I can't figure out what is the proper value for
GCJ_HOME in the Makefile. On my system, I don't have a
directory at /usr/local/gcc-3.4.4 or anything similar.
If anyone has compiled PyLucene on Debian Etch using
gcj, could you please send me the Makefile that you
used.  

Thanks for any advice,
Amos Batto
www.runasimipi.org


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] How to search for untranslated and fuzzy and setting limits?

2008-05-05 Thread Lars Kruse
Hi,

> I haven´t been able to install PyLucene in Debian
> Etch. There is a nice how-to at
> https://systemausfall.org/wikis/howto/PyLuceneOnDebian,
> but I get errors when I try to install jcc, so I can't
> use the latest version of pyLucene. (The error lies in
> the instalation of sun-java5-bin, perhaps because my
> system was Sarge, upgraded to Etch.)

I recently wrote that how-to. I would be happy, if you could solve your problem
and describe your solution there ...

Another option: maybe you could just install a fresh etch installation in a
chroot via debootstrap. There you can build it following the how-to. Afterwards
you could probably move the result of the build into your original sarge/etch
system. (just guessing ...)


> When I try to compile  PyLucene 2.2.0-1 with gcj, I
> can't seem to figure out how to configure the Makefile
> correctly. I have installed gcc 3.4 as recommended,
> but I can't figure out what is the proper value for
> GCJ_HOME in the Makefile. On my system, I don't have a
> directory at /usr/local/gcc-3.4.4 or anything similar.
> If anyone has compiled PyLucene on Debian Etch using
> gcj, could you please send me the Makefile that you
> used.  

I am not sure, if I ever compiled PyLucene with gcj. But at least the following
binary package worked in my (also upgraded) sarge/etch system:
 
http://downloads.osafoundation.org/PyLucene/linux/ubuntu/6.06/PyLucene-2.2.0-1.tar.gz
You just need to move the content of the python directory to the appropriate
place.

I hope, that helps ...
Lars


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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?'find'

2008-05-05 Thread Miklos Vajna
On Mon, May 05, 2008 at 06:55:24PM +0200, Gustavo Narea <[EMAIL PROTECTED]> 
wrote:
> I've attached the file.

are you sure you did? it seems you attached an empty file ;)


pgplIuuO5DYwx.pgp
Description: PGP signature
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle