← Back to team overview

qpdfview team mailing list archive

Re: [Question #669479]: When can a new release be expected?

 

Question #669479 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/669479

Razi Alavizadeh posted a new comment:
Hello,

Oops, I should apologize that I didn't send the modified
convert_translations.sh in first place. Since, I also fixed the same
issue. And indeed I made a CI to do conversion.

If I have been understood the work of python script correctly, I did its
job with these sed commands (a little hakish :D):

sed -i "s/^\"X-Generator:..*/\"X-Qt-Contexts: true\\\\n\"/"
${source_dir}/${source_file}

sed -i -r "/^msgctxt \"[^Qq][^:]+\"/ s/^msgctxt
\"([^Qq][^:|\"]+)|\"$/msgctxt \"qpdfview::\1/"
${source_dir}/${source_file}

To see the modified version of "convert_translation.sh" that also does some other cleanups see [1].
And [2] is link to github repository that uses travis to do automatic conversion. If you have github account then I can give you write access or you can fork it if you want. "convert_translation1.sh" uses your python script.

Best Regards,
Razi.

PS: The sed command:
sed -i "s/<translation>/<translation type=\"unfinished\">/" ${dest_dir}/${dest_file}
is just to have a clean diff against current translations, but I suggest that we should remove it.

[1] https://github.com/srazi/qpdfview-translations-import/blob/master/scripts/convert_translation.sh
[2] https://github.com/srazi/qpdfview-translations-import

-- 
You received this question notification because your team qpdfview is an
answer contact for qpdfview.