On Saturday 15 November 2014 9:15:46 AM Trang HO wrote:
> Actually I just took a look at the diff and I noticed that you check if the
> line starts with "#".
> That will remove also the comments of each string, not just the header.
> You would need to check if it starts with "# " (with a space after the #).
> 
> Also, maybe instead of iterating on each line, you can just execute a sed.
> What I do when I want to remove the header is (for instance on the Arabic
> file):
> sed '/^# /d' -i app/locale/ara/LC_MESSAGES/ar.po
> 

xD
The sed command will remove the comments on each string as well :)
Looks like you didn't see the whole block of code that I add, It will just 
remove the headers, I've tested it :)

The script is attached.
-- 
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to