PHP & ?? How to edit a "Message catalog binary file?" or "GNU Gettext..."
Firefox Wins Offline
Member
***
Posts: 164
Joined: Mar 2008
Post: #1
PHP & ?? How to edit a "Message catalog binary file?" or "GNU Gettext..."
Need to change a string in a language file?
Should be easy, right?  Tongue
The filesize is ~24KB, but all that shows up is somewhat like this:

Code:
Þ•6


The file extension is = .mo
Searching...

mo - MM2 Output chemical modeller output file

mo - Dymola simulation file

mo - GNU Gettext machine object file   ?

mo - Pidgin instant messenger language file

mo - Audacity language file

mo - Message catalog binary file  >>> How to edit this file?

...or would a php script use a "GNU Gettext machine object file?"



EDIT:
Making some progress:
.mo files are created from .po files   (Duh!  Wink)
Currently checking if this can read binaries, or only goes one-way:
Poedit is cross-platform gettext catalogs (.po files) editor...


EDIT#2:
This result...

(12-04-2010 04:42 PM)Firefox Wins Wrote:  The filesize is ~24KB, but all that shows up is somewhat like this:

Code:
Þ•6

... was when using WinSCP to view a remote file:

It might be time to take a second look at Notepad++
  • Can regular Notepad re-save a binary file?

Thank you...


EDIT#3
In regular Notepad I can read most of the file, but still need to test if it will save properly as a binary.
In Notepad++ (w/ default settings) = Messed up garbage...

Oh well, too much fun  Yipi
Will check back later.
(This post was last modified: 12-04-2010 05:26 PM by Firefox Wins.)
12-04-2010 04:42 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
PHP & ?? How to edit a "Message catalog binary file?" or "GNU Gettext..." - Firefox Wins - 12-04-2010 04:42 PM

 Standard Tools
Forum Jump: