Re: [translate-pootle] Pootle 1.2.0 fail building rpm
Yes sure: python -V Python 2.4.2 rpmbuild --version RPM versión 4.3.3 Regards Normando F Wolff escribió: On Ma, 2008-10-20 at 23:33 -0200, Normando Hall wrote: Hi Friedel I have building under SME Server, based on Centos 4, similar to rhel4. regards Normando Thanks Normando I was able to check that we got this problem on an Ubuntu build machine with Python 2.5.2 and RPM version 4.4.2.1, which is what initiated the change. Can you perhaps give the versions of these pieces of software? Python --version rpmbuild --version Keep well Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/autocompletion-during-translation - 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=100url=/ ___ 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=100url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Pootle 1.2.0 fail building rpm
Hi Friedel I have building under SME Server, based on Centos 4, similar to rhel4. regards Normando F Wolff escribió: On Sa, 2008-10-18 at 18:05 -0300, Normando Hall wrote: Running the command ./pootlesetup.py bdist_rpm give me this error: + python setup.py build python: can't open file 'setup.py': [Errno 2] No such file or directory I have Pootle 1.1.0 and build ok, so I compared between the two pootlesetup.py file (1.1.0 and 1.2.0) and give me this diff: 203a204 pootlefiles.append(listfiles(join('Pootle', 'html', 'js', 'jquery'))) 245a247,249 print file, prune virtaal print file, prune spelt print file, prune corpuscatcher 290c294 fix_bdist_rpm(os.path.basename(__file__)) --- #fix_bdist_rpm(os.path.basename(__file__)) 328c332 author=David Fraser, translate.org.za, --- author=Translate.org.za, 330,331c334,335 url=http://translate.sourceforge.net/;, download_url=http://sourceforge.net/project/showfiles.php?group_id=91920package_id=97082;, --- url=http://translate.sourceforge.net/wiki/pootle/index;, download_url=http://sourceforge.net/project/showfiles.php?group_id=91920package_id=144807;, So, I uncomment the line: from #fix_bdist_rpm(os.path.basename(__file__)) to fix_bdist_rpm(os.path.basename(__file__)) and now compile ok. Is this correct? regards Normando Hallo Normando It seems right (especially if it works for you), but I'll want to check why this is commented. The machine we used for building is not available at the moment, and I'd want to check it there in the clean environment we used for building. There was obviously some reason, but I can't recall right now what it was. Somewhere pootlesetup.py was being replaced with pootlepootlesetup.py, but I can't remember exactly what the issue was. By the way, on what platform are you doing this? I'll try to get back to you. Keep well Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/autocompletion-during-translation - 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=100url=/ ___ 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=100url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] Pootle 1.2.0 fail building rpm
Running the command ./pootlesetup.py bdist_rpm give me this error: + python setup.py build python: can't open file 'setup.py': [Errno 2] No such file or directory I have Pootle 1.1.0 and build ok, so I compared between the two pootlesetup.py file (1.1.0 and 1.2.0) and give me this diff: 203a204 pootlefiles.append(listfiles(join('Pootle', 'html', 'js', 'jquery'))) 245a247,249 print file, prune virtaal print file, prune spelt print file, prune corpuscatcher 290c294 fix_bdist_rpm(os.path.basename(__file__)) --- #fix_bdist_rpm(os.path.basename(__file__)) 328c332 author=David Fraser, translate.org.za, --- author=Translate.org.za, 330,331c334,335 url=http://translate.sourceforge.net/;, download_url=http://sourceforge.net/project/showfiles.php?group_id=91920package_id=97082;, --- url=http://translate.sourceforge.net/wiki/pootle/index;, download_url=http://sourceforge.net/project/showfiles.php?group_id=91920package_id=144807;, So, I uncomment the line: from #fix_bdist_rpm(os.path.basename(__file__)) to fix_bdist_rpm(os.path.basename(__file__)) and now compile ok. Is this correct? regards Normando - 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=100url=/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] How to scanpofiles at command line?
I have created a script (published in my lasts email) for update languages files from templates using pot2po. But when I added a new template, and then is generated a new po file under each language, I can't see it through pootle web inteface. I must restart the server to see it. Searching the way pootle update from templates, it use the function named scanpofiles() to re-scan the new or deleted files. Is there a way to use this or similar function through command line? Thank you regards, Normando - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] Project folders
I was see various sites witch has folders under projects. I can't find the way to make this folders. I have tried to create real folders under /po/projects but without success. Thank you Normando Hall - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] poindex
Thank you Friedel! One server: [EMAIL PROTECTED] ~]# python2.4 -c import PyLucene Traceback (most recent call last): File string, line 1, in ? File /usr/lib/python2.4/site-packages/PyLucene.py, line 4, in ? import _PyLucene ImportError: libgcj.so.5: cannot open shared object file: No such file or directory [EMAIL PROTECTED] ~]# The other server: [EMAIL PROTECTED] ~]# python2.4 -c import PyLucene [EMAIL PROTECTED] ~]# So, it is easy to identify the problem :) Best Regards, Normando F Wolff escribió: Op Maandag 2008-03-03 skryf Normando Hall: I have two identical installations of Pootle (1.1.0rc2) and TT (1.1.1rc4) in two different machines. In oneevery time I have add new language to a project (with templates), it is created the poindex directories, but no in the other machine. I have installed pylucene 1.9x in both machines. What happens? There is a way to re-create an index, or how to update index with the last strings. Thank you Normando Hall Hi Normando I'm not sure I understand. Is the index not automatically created in the one installation? Can you confirm that the following does not give an error: python -c import PyLucene (it should print nothing, or only warnings about the security files of PyLucene) Friedel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Make commits from command line
Thank you Friedel, Miklos, Lars, and Christian for your helpful advices. We implement a cron auto-commit script to make the commits without force user to make this. This is because in the future we implement an automatic system to make patchs and rpms automatically, so yet at testing only. I will try to add a message log from pocount and last username translator, via -F commit option. For those are interested in the script, here I add a dirty non refined script, the same we are using now. SVN-CI-PO #!/bin/bash - /usr/bin/svn -q ci --username pootle --password -m Automatic updating from Pootle /usr/lib/python2.4/site-packages/Pootle/po/project1/* /usr/bin/svn -q ci --username pootle --password -m Automatic updating from Pootle /usr/lib/python2.4/site-packages/Pootle/po/project2/* /usr/bin/svn -q ci --username pootle --password -m Automatic updating from Pootle /usr/lib/python2.4/site-packages/Pootle/po/project3/* In our system we have implemented two svn repositories. One for PO translated files, and one only for Templates. Each repo has anonymous access for checkout and update, but authenticated for import and commit. Because pootle has not yet a way to upload templates, we can do through SVN and other cron script. Follow is the templates script, that run an update from svn to pootle templates. SVN-UP-TMPL #!/bin/bash - /usr/bin/svn -q update /usr/lib/python2.4/site-packages/Pootle/po/project1/templates /usr/bin/svn -q update /usr/lib/python2.4/site-packages/Pootle/po/project2/templates /usr/bin/svn -q update /usr/lib/python2.4/site-packages/Pootle/po/project3/templates Now, because we can't give admin access to users for run Update from templates or Update languages from pootle web admin inteface, we also make another script to run this: UPDATE-PO-FROM-TMPL #!/bin/bash lup=/tmp/langupd mkdir $lup #BASE=pootleLang BASE=/usr/lib/python2.4/site-packages/Pootle/po/ cd $BASE #echo `pwd` for project in project1 project2 project3 do cd $project #echo `pwd` for dir in `ls -I templates` do #echo $dir mkdir $lup/$dir cp -r $dir/*.po $lup/$dir /usr/bin/python2.4 /usr/bin/pot2po --progress=none -t $lup/$dir templates $dir rm -rf $lup/$dir done cd .. done rm -rf $lup Finally we make a script to add new files to repository. This is because if you have upload (add + commit) a new template to svn, then this template is parsed through all languages PO files with the above script, generating new files (if this is the cace) or modifying. But this new PO file is not added to the PO repo. The follow is the script to add new files to PO repo from Pootle PO files. SVN-ADD-PO #!/bin/bash poadd=/tmp/svnadd echo #!/bin/bash $poadd echo $poadd svn status /usr/lib/python2.4/site-packages/Pootle/po/project1/??/*.po |grep ? $poadd perl -pi -e 's/\? /svn add -q/g' $poadd chmod 755 $poadd $poadd rm -f $poadd echo #!/bin/bash $poadd echo $poadd svn status /usr/lib/python2.4/site-packages/Pootle/po/project2/??/*.po |grep ? $poadd perl -pi -e 's/\? /svn add -q/g' $poadd chmod 755 $poadd $poadd rm -f $poadd echo #!/bin/bash $poadd echo $poadd svn status /usr/lib/python2.4/site-packages/Pootle/po/project3/??/*.po |grep ? $poadd perl -pi -e 's/\? /svn add -q/g' $poadd chmod 755 $poadd $poadd rm -f $poadd It i better if I use for-do-done :) Run these scripts once an hour. I was made a mistake running every 5 or 6 minutes and at some time two or more scripts overlap and make locked repo, generatin lock errors from svn. We will try to refine these scripts, and publish them. Thanks again for all your replies. regards, Normando F Wolff escribió: Op Vrydag 2008-02-29 skryf Miklos Vajna: On Fri, Feb 29, 2008 at 07:19:05AM +0100, Christian Perrier [EMAIL PROTECTED] wrote: I want to make commit from command line. I can make commits through cron scripts, but I want through pootle, because add a message about translator and translated strings. Is this possible? As far as I know, no. This is something we also need for Debian's experimental Pootle server. hmm. i think it's good to force users to commit manually, so that you can run 'git blame' (or other similar command for other vcses) to see who committed for example a mistake. if you do anonymous commits, then you can't blame anybody when a bug is found. Well, the Last-Translator header field helps a little bit, and if people commit manually, that can also help. In XLIFF files, you might be able to store all sorts of interesting meta information (like who, when, etc.), but the tool support is not really there yet. I guess the support provided by Pootle is really meant for cases where we want to give VCS access to more people that might not know or care about the differences. And of course, no extra accounts necessary, as the Pootle accounts are used. It is not ideal for everything, but solves some problems for some people.
Re: [translate-pootle] Make commits from command line
Becareful with scripts because email wrap lines. Normando Normando Hall escribió: Thank you Friedel, Miklos, Lars, and Christian for your helpful advices. We implement a cron auto-commit script to make the commits without force user to make this. This is because in the future we implement an automatic system to make patchs and rpms automatically, so yet at testing only. I will try to add a message log from pocount and last username translator, via -F commit option. For those are interested in the script, here I add a dirty non refined script, the same we are using now. SVN-CI-PO #!/bin/bash - /usr/bin/svn -q ci --username pootle --password -m Automatic updating from Pootle /usr/lib/python2.4/site-packages/Pootle/po/project1/* /usr/bin/svn -q ci --username pootle --password -m Automatic updating from Pootle /usr/lib/python2.4/site-packages/Pootle/po/project2/* /usr/bin/svn -q ci --username pootle --password -m Automatic updating from Pootle /usr/lib/python2.4/site-packages/Pootle/po/project3/* In our system we have implemented two svn repositories. One for PO translated files, and one only for Templates. Each repo has anonymous access for checkout and update, but authenticated for import and commit. Because pootle has not yet a way to upload templates, we can do through SVN and other cron script. Follow is the templates script, that run an update from svn to pootle templates. SVN-UP-TMPL #!/bin/bash - /usr/bin/svn -q update /usr/lib/python2.4/site-packages/Pootle/po/project1/templates /usr/bin/svn -q update /usr/lib/python2.4/site-packages/Pootle/po/project2/templates /usr/bin/svn -q update /usr/lib/python2.4/site-packages/Pootle/po/project3/templates Now, because we can't give admin access to users for run Update from templates or Update languages from pootle web admin inteface, we also make another script to run this: UPDATE-PO-FROM-TMPL #!/bin/bash lup=/tmp/langupd mkdir $lup #BASE=pootleLang BASE=/usr/lib/python2.4/site-packages/Pootle/po/ cd $BASE #echo `pwd` for project in project1 project2 project3 do cd $project #echo `pwd` for dir in `ls -I templates` do #echo $dir mkdir $lup/$dir cp -r $dir/*.po $lup/$dir /usr/bin/python2.4 /usr/bin/pot2po --progress=none -t $lup/$dir templates $dir rm -rf $lup/$dir done cd .. done rm -rf $lup Finally we make a script to add new files to repository. This is because if you have upload (add + commit) a new template to svn, then this template is parsed through all languages PO files with the above script, generating new files (if this is the cace) or modifying. But this new PO file is not added to the PO repo. The follow is the script to add new files to PO repo from Pootle PO files. SVN-ADD-PO #!/bin/bash poadd=/tmp/svnadd echo #!/bin/bash $poadd echo $poadd svn status /usr/lib/python2.4/site-packages/Pootle/po/project1/??/*.po |grep ? $poadd perl -pi -e 's/\? /svn add -q/g' $poadd chmod 755 $poadd $poadd rm -f $poadd echo #!/bin/bash $poadd echo $poadd svn status /usr/lib/python2.4/site-packages/Pootle/po/project2/??/*.po |grep ? $poadd perl -pi -e 's/\? /svn add -q/g' $poadd chmod 755 $poadd $poadd rm -f $poadd echo #!/bin/bash $poadd echo $poadd svn status /usr/lib/python2.4/site-packages/Pootle/po/project3/??/*.po |grep ? $poadd perl -pi -e 's/\? /svn add -q/g' $poadd chmod 755 $poadd $poadd rm -f $poadd It i better if I use for-do-done :) Run these scripts once an hour. I was made a mistake running every 5 or 6 minutes and at some time two or more scripts overlap and make locked repo, generatin lock errors from svn. We will try to refine these scripts, and publish them. Thanks again for all your replies. regards, Normando F Wolff escribió: Op Vrydag 2008-02-29 skryf Miklos Vajna: On Fri, Feb 29, 2008 at 07:19:05AM +0100, Christian Perrier [EMAIL PROTECTED] wrote: I want to make commit from command line. I can make commits through cron scripts, but I want through pootle, because add a message about translator and translated strings. Is this possible? As far as I know, no. This is something we also need for Debian's experimental Pootle server. hmm. i think it's good to force users to commit manually, so that you can run 'git blame' (or other similar command for other vcses) to see who committed for example a mistake. if you do anonymous commits, then you can't blame anybody when a bug is found. Well, the Last-Translator header field helps a little bit, and if people commit manually, that can also help. In XLIFF files, you might be able to store all sorts of interesting meta information (like who, when, etc.), but the tool support is not really there yet. I guess the support provided by Pootle is really meant for cases where we want to give VCS