PHP & ?? How to edit a "Message catalog binary file?" or "GNU Gettext..."
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: PHP & ?? How to edit a "Message catalog binary file?" or "GNU Gettext..."
Oh okay, it's a Wordpress file.  That makes it much clearer.  As you mentioned "binary", I thought you were trying to edit a game related file or similar.
".mo" and ".po" make absolutely no sense to someone who doesn't use Wordpress (and possibly confuse people who do).

(12-04-2010 09:09 PM)Firefox Wins Wrote:  Do you (or anyone else) have a favorite hex editor, which works with different file extensions?
Makes no sense, cause hex editors edit any file.
I personally like the free HxD, though HexWorkshop and maybe UltraEdit are popular commercial editors.
However, unless you know what you're doing, a hex editor probably won't help.
Especially with editing binary files.

Taking a look at a sample Wordpress .mo file, there seems to be a bunch of 32-bit ints at the top of the file.  There's a good possibility that this is an index, so editing stuff below willy nilly will probably break the file. (if I were to take a 1 minute guess without checking, they're 2x 32-bit pairs, yielding an offset and length descriptor).

My Blog
(This post was last modified: 12-04-2010 10:47 PM by ZiNgA BuRgA.)
12-04-2010 10:45 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: PHP & ?? How to edit a "Message catalog binary file?" or "GNU Gettext..." - ZiNgA BuRgA - 12-04-2010 10:45 PM

 Standard Tools
Forum Jump: