Sunday 27 August 2006 6:04:58 am
Hi Claudia, I'm no C programmer. But I guess the solution is in file 'fetchtr_tpl.cpp'. Around line 164 I find:
if ( endpos < 0 )
{
qWarning( filename + ":error: Found non-quoted context, skipping translation" );
exit( 1 );
// continue;
}
Perhaps it's enough to comment the exit and uncomment the continue... I would try if it skips variables correctly then. Also I would make a diff of the result of translation.ts before and after changing the C code to ensure that everything works as expected (of course without variables in the templates to translate). Additionally you can change the qWarning function like:
qWarning( filename + ":error: Found non-quoted context, skipping translation" + "content: " + content );
Then you should see the skipped content strings. If you got an other error message just search for it in the code and try to solve it in a similar way. There are only two other exit commands between line 144 and 174. Shouldn't be that hard... With printing the content variable it should be solvable. But I don't know if you will run in some other problems of wrong strings where e.g. only one quotation marks exists (or whatever). (Perhaps there is a reason for the exit instead of continue...) Would be nice to hear if it works. Have a nice day Thomas
|