Samuel Murray (Groenkloof) wrote:
> G'day Pål
>
> I'm not a Pootle server guy but allow me to make some guesses (you can
> tell me if I'm wrong). Also could anyone please correct me if I say the
> wrong things.
>
>
>> The procedure so far:
>> Created a project, made sure it was set to XLIFF type.
>> Tried uploading a sample XLIFF file using the web interface (1)
>>
>
> You can only upload files via the web interface if those files are
> modified versions of files that are already on the Pootle web server.
>
> The purpose the web interface's upload function is for translators to
> upload translated files, not for project managers to add new files to
> the project.
>
> The project manager puts the untranslated files on the Pootle server
> manually (by FTP or some similar action). Unless I'm mistaken, the
> Pootle server must be restarted when new source files are added.
>
> So new or a new version of the source text is a separate function that
> can't be done via the web interface.
>
I'll keep that in mind :-)
>
>> Also, the project stops working altogether, only giving the error
>> message above.
>>
>
> I also sometimes get cases where a project stops working, if I've
> uploaded something that I shouldn't have. Restarting the server usually
> works. Personally I think the "upload with overwrite" function is very
> dangerous and should only be done by someone who works with the server
> admin.
Traceback from the server, after recreating the project, adding
language, uploading files via FTP:
--8<--
Error
'str' object has no attribute 'strings'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Pootle/users.py", line 259, in
handle
page = self.getpage(pathwords, session, argdict)
File "/usr/lib/python2.5/site-packages/Pootle/pootle.py", line 422, in
getpage
project = self.potree.getproject(languagecode, projectcode)
File "/usr/lib/python2.5/site-packages/Pootle/potree.py", line 311, in
getproject
self.projectcache[languagecode, projectcode] =
projects.TranslationProject(languagecode, projectcode, self)
File "/usr/lib/python2.5/site-packages/Pootle/projects.py", line 113,
in __init__
self.scanpofiles()
File "/usr/lib/python2.5/site-packages/Pootle/projects.py", line 458,
in scanpofiles
self.pofiles[pofilename] = pootlefile.pootlefile(self, pofilename)
File "/usr/lib/python2.5/site-packages/Pootle/pootlefile.py", line
281, in __init__
self.statistics = statistics.pootlestatistics(self, generatestats)
File "/usr/lib/python2.5/site-packages/Pootle/statistics.py", line 56,
in __init__
self.getstats()
File "/usr/lib/python2.5/site-packages/Pootle/statistics.py", line 74,
in getstats
self.calcstats()
File "/usr/lib/python2.5/site-packages/Pootle/statistics.py", line
152, in calcstats
self.basefile.pofreshen()
File "/usr/lib/python2.5/site-packages/Pootle/pootlefile.py", line
482, in pofreshen
self.readpofile()
File "/usr/lib/python2.5/site-packages/Pootle/pootlefile.py", line
468, in readpofile
self.statistics.classifyunits()
File "/usr/lib/python2.5/site-packages/Pootle/statistics.py", line
188, in classifyunits
self.countwords()
File "/usr/lib/python2.5/site-packages/Pootle/statistics.py", line
195, in countwords
self.sourcewordcounts.append([statsdb.wordcount(text) for text in
unit.source.strings])
AttributeError: 'str' object has no attribute 'strings'
--8<--
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle