LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2017, 01:49 PM   #1
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Rep: Reputation: 42
Thumbs down Where the mo2dir program/script is? Slax distro page seems broken


I want to edit an .mo file.

Searching around, I have found one page that uses this program to edit the file, using a few lines that involves a loop mount:

http://xpt.sourceforge.net/techdocs/...x/ar01s04.html

Great... but I need the program to make similar steps.

Searching a bit more, it seems that this program (or script) only exists on the Slax distro (slax.org). But on its website, besides the source link being a bit hidden, all ftp URLs (through HTTP) do not work. In fact, there is only one FTP URL, http://ftp.slax.org/Slax-7.x-develop...x-7.0-sources/, from which I trimmed each folder until root... none works.

I could not find a single result not depending on Slax. The farther good result found is in German: http://www.linux-web.de/thread/11520...ür-debian.html . Unfortunately, a forum question with no answer.

Ideas?

Last edited by dedec0; 01-29-2017 at 02:27 PM.
 
Old 01-29-2017, 05:57 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Is your .mo file a squashfs file?
Code:
$ file curlftpfs_0_8.mo
curlftpfs_0_8.mo: Squashfs filesystem, little endian, version 4.0, 48931 bytes, 26 inodes, 
  blocksize: 131072 bytes, created: Sun Jan 29 23:22:02 2017
If so, you can use unsquashfs to decompress, edit and use mksquashfs to recompress. Squashfs-tools is in the Debian repositories, don't know about other distros.
 
1 members found this post helpful.
Old 01-30-2017, 07:32 AM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Original Poster
Rep: Reputation: 42
Talking

Quote:
Originally Posted by norobro View Post
Is your .mo file a squashfs file?
Code:
$ file curlftpfs_0_8.mo
curlftpfs_0_8.mo: Squashfs filesystem, little endian, version 4.0, 48931 bytes, 26 inodes, 
  blocksize: 131072 bytes, created: Sun Jan 29 23:22:02 2017
If so, you can use unsquashfs to decompress, edit and use mksquashfs to recompress. Squashfs-tools is in the Debian repositories, don't know about other distros.
No, it is not. But I thought that these MO files had an unique format (like mpg and png, but not like txt). Yes, filenames are free, no extension needed. But some files use them for this reason, right?

With what you said, is it right to think that each mo file may need different steps to be changed?

Most mo's I have seen are on my old Ubuntu machine. This should guarantee some tendency - I want to guess.

The mo file I want to change has another format, a surprise for me:

Code:
# I just learned about the file command! Thank you!
$ file some.mo
some.mo: GNU message catalog (little endian), revision 0, 105 messages
I have found alternative steps... my next post will detail it and ask a bit more.
 
Old 01-30-2017, 07:36 AM   #4
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Original Poster
Rep: Reputation: 42
Arrow

Alternative steps I found and used yesterday:

Code:
# gettext package (which was already installed)

# .mo to .po
msgunfmt xxx.mo -o xxx.po

# edit po text file...

# .po to .mo
msgfmt xxx.po -o xxx.mo
But I would like to know what is wrong with Slax, where its sources are... it is a distro that I only found out today, and seems to have some good things.

Further, the norobro post added something new to these steps: will they work *only* if the mo file is GNU message catalog? I would guess this now.
 
Old 01-30-2017, 09:04 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,264
Blog Entries: 10

Rep: Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172
Quote:
Originally Posted by dedec0 View Post
I would like to know what is wrong with Slax, where its sources are.
i've been wondering the exact same recently, and turned away from it as i couldn't find an answer. so, effectively it's not open source?
 
Old 01-30-2017, 09:19 AM   #6
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Original Poster
Rep: Reputation: 42
Quote:
Originally Posted by ondoho View Post
i've been wondering the exact same recently, and turned away from it as i couldn't find an answer. so, effectively it's not open source?
Strange, isn't it? No clue. For a few minutes (and not trying too hard), I tried to find some contact information in Slax page, no success. My best guess was to ask around here...

Slax has an Wikipedia article (https://en.wikipedia.org/wiki/Slax) and a domain for itself. Both, together, should mean something - as one could think.
 
Old 01-30-2017, 03:29 PM   #7
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Original Poster
Rep: Reputation: 42
Unhappy Ideas for the whereabouts of mo2dir?

I have downloaded one slax file to USB things, just to search the mo2dir program, hoping it is just a script:

wget http://www.slax.org/download/7.0.8/s...7.0.8-i486.zip # 219 MiB

After extracting this zip file anywhere, a few files were found. They are Squashfs files.

7zip can extract them! :D Great...

After extracting each file, I tried to

$ find /tmp/slax/slax/all -iname '*mo2dir*'

No output. Ideas for the whereabouts of mo2dir?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem running a program/script in the background from a script newbie01.linux Programming 5 03-28-2011 07:28 AM
How can I make a script to open a program then operate within that program? graphixfx Linux - Newbie 5 05-08-2010 08:21 AM
Do you program and/or/nor script? CoderMan Programming 62 12-28-2009 07:48 AM
What is this program/script? centosfan Linux - Server 3 01-12-2008 09:01 AM
broken mo2dir please help... MaNiaC^ Slackware 5 04-19-2006 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration