mo.file does not appear in system-config-firewall/ja.po

Asgeir Frimannsson asgeirf at
Sun Apr 6 04:26:24 UTC 2008

Hi James,

On Sunday 06 April 2008 08:40:55 am Kiyoto James Hashida wrote:
> I am trying to proofread by producing the mo file
> for system-config-firewall/ja.po because I had to
> fix some tags translated by another member.
> I followed the instruction in the Quick Guide chap 3.5
> but I can't get the mo file in the
> |/usr/share/locale//|lang|//LC_MESSAGES/.
> ---------------------------------------------------------------------------
>--------------------------------------------------- [khashida at khashida
> system-config-firewall]$ msgfmt ja.po
> [khashida at khashida system-config-firewall]$ ls
> ja.po

Step 1: Create a MO from your PO file:

(in your po directory:)

$msgfmt -o ja.po

(the '-o' option will ensure that your file is named 
rather than

> [khashida at khashida system-config-firewall]$ cp
> /usr/share/locale/ja/LC_MESSAGES/
> cp: cannot stat
> `/usr/share/locale/ja/LC_MESSAGES/': そのような
> ファイルやディレクトリはありません (this means there is no such file or
> directory)

Step 2: Make a backup of the existing translations

Now, you might want to keep a backup of the original translations located in 
this directory. But in your case, it seems there was no original file, that 
is why you got the 'cp: cannot stat' error message. So in your case you might 
want to skip this next command.

$ cp /usr/share/locale/ja/LC_MESSAGES/
(this will only work if the original file existed)

Step 3: Copy the file to the LC_MESSAGES directory

$ su
(you need to be root to copy files to the LC_MESSAGES directory)

$ cp /usr/share/locale/ja/LC_MESSAGES/
$ exit

Step 4: Running the application

$ LANG=ja_JP.UTF-8 system-config-firewall

> |What am I doing wrong ? Could someone correct my mistake ?

I hope these steps may help you getting started.


More information about the trans mailing list