[Adium-devl] Compression.
Evan Schoenberg
evan at adiumx.com
Mon Jan 29 12:56:12 UTC 2007
On Jan 29, 2007, at 7:48 AM, Chris Forsythe wrote:
>> The Localizable.strings files go from 188 KB to 32 KB, and there
>> 22 of
>> them, one per language.
>>
>> 50% of the text of a Localizable.strings file is comments; these
>> comments are nice to have in the English file so that a new localizer
>> can begin translation, but are totally unnecessary in all the others.
>> I think I've seen a tool to remove these /* blah */ comments before,
>> but I can't find it now. Running such a tool would be a good
>> addition
>> to our release Makefile.
>
>
> Would grep -v "/*" do the trick? Something like cat file | grep -v
> "/*"
Localizable.strings aren't ASCII, they're UTF-16, so grep can't work
with 'em out of the box. Something like that -- using ^ to anchor to
the start of the line, and then stripping blank lines -- could be
effective, though, if there's a way to use grep or a similar tool on
the files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070129/825df7c8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070129/825df7c8/attachment.sig>
More information about the devel
mailing list