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: website+unsubscribe@global.libreoffice.org
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
Context
- [libreoffice-website] Re: Your script · safa1996alfulaij
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.