Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2016 17:38:21 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        RayCherng Yu <raycherng@gmail.com>
Cc:        freebsd-translators@freebsd.org
Subject:   Re: POedit freezes after pressing save buttton
Message-ID:  <alpine.BSF.2.20.1602071735070.74300@wonkity.com>
In-Reply-To: <CAG2Wu4Pugm4ZprR_MJ4fRkd4xYjmfj4h1Qx-Dbm1L-Zz7xH-hA@mail.gmail.com>
References:  <CAG2Wu4PV0V%2BT00GrQMjJ%2BxS996-mihwEgRWROzgK69ywLB-fjw@mail.gmail.com> <alpine.BSF.2.20.1602021124310.90784@wonkity.com> <CAG2Wu4Ob-mcMmRmZU1k8=q-2dcgaAD4ZHEDnTez5b7UNTZxD4g@mail.gmail.com> <alpine.BSF.2.20.1602041007160.8045@wonkity.com> <CAG2Wu4OqdeP%2BdUKDF0LYHOCGP21sjeK-9iz1V6n6AgqAF7VSow@mail.gmail.com> <alpine.BSF.2.20.1602061622230.4028@wonkity.com> <CAG2Wu4Pugm4ZprR_MJ4fRkd4xYjmfj4h1Qx-Dbm1L-Zz7xH-hA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 Feb 2016, RayCherng Yu wrote:

> $msgfmt -o /dev/null -c "/usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po"
> 
> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3: 警告:header field 'Project-Id-Version' still has the initial default value
> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3: 警告:header field 'PO-Revision-Date' still has the initial default value
> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3: 警告:header field 'Last-Translator' still has the initial default value
> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3: 警告:header field 'Language-Team' still has the initial default value
> 
> 
> 
> "警告" means warning.

Those are all warnings about the file content, which is fine, and shows 
that msgfmt can actually run.

I can think of a few things that could be a problem.  Maybe the 
temporary file that poedit tries to check can't be created.  This could 
be due to permissions on /tmp (or maybe no /tmp).  Or maybe poedit is 
trying to run it with a shell that is not installed (bash?)?

> 2016-02-07 7:23 GMT+08:00 Warren Block <wblock@wonkity.com>:
>       On Sun, 7 Feb 2016, RayCherng Yu wrote:
>
>             Yes, /usr/local/bin/msgfmt is present.
>
>             $ls -al /usr/local/bin/msgfmt
>             -rwxr-xr-x  1 root  wheel  73960  1月 29 13:16 /usr/local/bin/msgfmt
>
>             gettexts-tools is installed.
>
>             $pkg info|grep gettext-tools
>             gettext-tools-0.19.6           GNU gettext development and translation tools
> 
>
>       Can you run msgfmt manually?
>
>         msgfmt -o /dev/null -c "/usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po"
>
>       Maybe this is due to a permissions problem or a security setting?
>
>             2016-02-05 1:09 GMT+08:00 Warren Block <wblock@wonkity.com>:
>                   On Fri, 5 Feb 2016, RayCherng Yu wrote:
>
>                         My VM has 4gb RAM and 20gb hardisk.I forgot how much swapspace it had. I think it has enough swap space because I installed FreeBSD 10.2 with
>             automatic disk
>                         allocation to entire disk
>                         space.
> 
>
>                         I deleted that vm and created a new one in order to test the xfce logout menu option but I have not installed xwindow and xfce for that vm yet so I
>             can't test it
>                         now.
>
>                         I tested poedit again 30 minute ago on another machine(2008 macbook, FreeBSD 11-CURRENT with xwindow and KDE installed). I make po to create a fresh
>             po file and
>                         translate the "FreeBSD
>                         Porter's Handbook" to "FreeBSD Porter"(delete several).Then,pressed save button.I got this error message:
>
>                         無法執行程式:msgfmt -o /dev/null -c "/usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.temp.po"
>
>                         The Chinese message means "Cannot run:"
>
>                         My poedit version is:
>
>                         poedit-1.8.4_1                 Gettext catalogs (.po files) editor
> 
>
>                   It appears to be using msgfmt just to check the output.  Is /usr/local/bin/msgfmt present?  It is part of the devel/gettext-tools port.  Is that port or
>             package installed?
> 
> 
> 
>
>             --
>             "Life is like a snowball. The important thing is finding wet snow and a really long hill."
>
>             "Price is what you pay. Value is what you get."
>
>             "The first rule of Investing is don't lose money; the second rule is don't forget rule #1..."
>
>             "Wall Street is the only place that people ride to work in a Rolls-Royce to get advice from those who take the subway..."
>
>                                                                                                                            — Warren Buffett.
> 
> 
> 
> 
> --
> "Life is like a snowball. The important thing is finding wet snow and a really long hill."
> 
> "Price is what you pay. Value is what you get."
> 
> "The first rule of Investing is don't lose money; the second rule is don't forget rule #1..."
> 
> "Wall Street is the only place that people ride to work in a Rolls-Royce to get advice from those who take the subway..."
> 
>                                                                                                                — Warren Buffett.
> 
>
From owner-freebsd-translators@freebsd.org  Mon Feb  8 02:12:38 2016
Return-Path: <owner-freebsd-translators@freebsd.org>
Delivered-To: freebsd-translators@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D514AA1F2E
 for <freebsd-translators@mailman.ysv.freebsd.org>;
 Mon,  8 Feb 2016 02:12:38 +0000 (UTC)
 (envelope-from raycherng@gmail.com)
Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com
 [IPv6:2607:f8b0:4001:c05::231])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 53C7CDFF
 for <freebsd-translators@freebsd.org>; Mon,  8 Feb 2016 02:12:38 +0000 (UTC)
 (envelope-from raycherng@gmail.com)
Received: by mail-ig0-x231.google.com with SMTP id 5so49327474igt.0
 for <freebsd-translators@freebsd.org>; Sun, 07 Feb 2016 18:12:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=tzNKSxlpe34il2cHILwvUGb5fLXg63gJiJifqYzTZy4=;
 b=jQTs3Ud+RLhJccPLM+EyRYbNToKGBB65HMaTfSdZOYQQFJGsn82vMy+mbnBLkVXEs8
 V33/VQCNfCc9hnD7Y7gIYo2FB71tezCqvw5pl4JpfHSnb7INA2I86yCH4KGsCgKqVPnx
 RIP79DSxLG6fQdaxt9BS8FWYxcwXZivBymAw9tLg6Nh0zILG6IOaJaG/w0EJW0OwDsqQ
 FlF5hteQeCygOCDLU/wrxiqqrmwB313l73VfMjDaYdTmsvwONHW4fRvIpzoMyBfOchrA
 Zo/XU6e7yyWTfap31umT2jW93rr5E3zjH1WpAkumxohy5nQWVPRPB8uKcL6/UJ6wSdYI
 kyjg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc:content-type;
 bh=tzNKSxlpe34il2cHILwvUGb5fLXg63gJiJifqYzTZy4=;
 b=Co7QIVGjCnu01ZF3/DVtu1bUHhsOMvaPaYj76NrrVVyVtbgE4YNLsp8plhSVhrpvFx
 pxGsx/sngO49V3gBYrrUqYnTABiI5D8aoRX25DAKHjY+TenO+YkbPz+U3iVf8ElSoris
 iCYuZoZJytUMFFLD5Rtp1YZJn4ETPHbCwMq48E9BJ2CY98W5BoFZo841OyWJY4pzclrz
 xH+8DJRDXbwltENV/7E0vGjJw3M3VfWNMkei+HOky1SYWWlJqJWIhTR+J9L0m0365ED1
 dxAxqe3amd6KENJSvUByWvyXAwvlfMj1t2ABgYgdll/NdpSqoAdZuf0W0ArKIhv71W9V
 geKQ==
X-Gm-Message-State: AG10YOSbk6Tm+ZvyuWZ5qfe+1+EJP8eaI/Ra4u/eyb9fEb8S09pUBEizRPiMzPrOp+mtYS3gltRSK/zuMaDV3A==
MIME-Version: 1.0
X-Received: by 10.50.40.38 with SMTP id u6mr21571263igk.15.1454897557602; Sun,
 07 Feb 2016 18:12:37 -0800 (PST)
Received: by 10.107.156.8 with HTTP; Sun, 7 Feb 2016 18:12:37 -0800 (PST)
In-Reply-To: <alpine.BSF.2.20.1602071735070.74300@wonkity.com>
References: <CAG2Wu4PV0V+T00GrQMjJ+xS996-mihwEgRWROzgK69ywLB-fjw@mail.gmail.com>
 <alpine.BSF.2.20.1602021124310.90784@wonkity.com>
 <CAG2Wu4Ob-mcMmRmZU1k8=q-2dcgaAD4ZHEDnTez5b7UNTZxD4g@mail.gmail.com>
 <alpine.BSF.2.20.1602041007160.8045@wonkity.com>
 <CAG2Wu4OqdeP+dUKDF0LYHOCGP21sjeK-9iz1V6n6AgqAF7VSow@mail.gmail.com>
 <alpine.BSF.2.20.1602061622230.4028@wonkity.com>
 <CAG2Wu4Pugm4ZprR_MJ4fRkd4xYjmfj4h1Qx-Dbm1L-Zz7xH-hA@mail.gmail.com>
 <alpine.BSF.2.20.1602071735070.74300@wonkity.com>
Date: Mon, 8 Feb 2016 10:12:37 +0800
Message-ID: <CAG2Wu4MJN8CcYjLefAA=bC71d3Aa-vE_j-sF=7UAESTR4AONcw@mail.gmail.com>
Subject: Re: POedit freezes after pressing save buttton
From: RayCherng Yu <raycherng@gmail.com>
To: Warren Block <wblock@wonkity.com>
Cc: freebsd-translators@freebsd.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.20
X-BeenThere: freebsd-translators@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Translators <freebsd-translators.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-translators>, 
 <mailto:freebsd-translators-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-translators/>;
List-Post: <mailto:freebsd-translators@freebsd.org>
List-Help: <mailto:freebsd-translators-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-translators>, 
 <mailto:freebsd-translators-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2016 02:12:38 -0000

I do have /tmp.
$ls -l /
total 73
drwxr-xr-x   2 root  wheel  1024  1=E6=9C=88 28 00:19 bin
drwxr-xr-x   8 root  wheel  1536  2=E6=9C=88  7 14:24 boot
drwxr-xr-x   3 root  wheel   512  2=E6=9C=88  2 17:15 compat
-r--r--r--   1 root  wheel  6190  1=E6=9C=88 28 00:21 COPYRIGHT
dr-xr-xr-x  11 root  wheel   512  2=E6=9C=88  8 10:05 dev
-rw-r--r--   1 root  wheel  4096  2=E6=9C=88  8 02:05 entropy
drwxr-xr-x  25 root  wheel  2560  2=E6=9C=88  4 04:28 etc
lrwxr-xr-x   1 root  wheel     8  2=E6=9C=88  1 14:16 home -> usr/home
drwxr-xr-x   3 root  wheel  1536  1=E6=9C=88 28 00:20 lib
drwxr-xr-x   4 root  wheel   512  2=E6=9C=88  1 22:05 libexec
drwxr-xr-x   2 root  wheel   512  1=E6=9C=88 28 00:18 media
drwxr-xr-x   2 root  wheel   512  1=E6=9C=88 28 00:18 mnt
dr-xr-xr-x   2 root  wheel   512  1=E6=9C=88 28 00:18 proc
drwxr-xr-x   2 root  wheel  2560  1=E6=9C=88 28 00:20 rescue
drwxr-xr-x   2 root  wheel   512  2=E6=9C=88  7 14:20 root
drwxr-xr-x   2 root  wheel  2560  1=E6=9C=88 28 00:21 sbin
lrwxr-xr-x   1 root  wheel    11  1=E6=9C=88 28 00:21 sys -> usr/src/sys
drwxrwxrwt  11 root  wheel   512  2=E6=9C=88  8 02:07 tmp
drwxr-xr-x  16 root  wheel   512  2=E6=9C=88  4 15:16 usr
drwxr-xr-x  25 root  wheel   512  2=E6=9C=88  8 10:05 var


Maybe I don't have bash. The shell I installed is tcsh. How can I check if
bash is installed?

2016-02-08 8:38 GMT+08:00 Warren Block <wblock@wonkity.com>:

> On Sun, 7 Feb 2016, RayCherng Yu wrote:
>
> $msgfmt -o /dev/null -c
>> "/usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po"
>>
>> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3:
>> =E8=AD=A6=E5=91=8A=EF=BC=9Aheader field 'Project-Id-Version' still has t=
he initial default value
>> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3:
>> =E8=AD=A6=E5=91=8A=EF=BC=9Aheader field 'PO-Revision-Date' still has the=
 initial default value
>> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3:
>> =E8=AD=A6=E5=91=8A=EF=BC=9Aheader field 'Last-Translator' still has the =
initial default value
>> /usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po:3:
>> =E8=AD=A6=E5=91=8A=EF=BC=9Aheader field 'Language-Team' still has the in=
itial default value
>>
>>
>>
>> "=E8=AD=A6=E5=91=8A" means warning.
>>
>
> Those are all warnings about the file content, which is fine, and shows
> that msgfmt can actually run.
>
> I can think of a few things that could be a problem.  Maybe the temporary
> file that poedit tries to check can't be created.  This could be due to
> permissions on /tmp (or maybe no /tmp).  Or maybe poedit is trying to run
> it with a shell that is not installed (bash?)?
>
>
> 2016-02-07 7:23 GMT+08:00 Warren Block <wblock@wonkity.com>:
>>       On Sun, 7 Feb 2016, RayCherng Yu wrote:
>>
>>             Yes, /usr/local/bin/msgfmt is present.
>>
>>             $ls -al /usr/local/bin/msgfmt
>>             -rwxr-xr-x  1 root  wheel  73960  1=E6=9C=88 29 13:16
>> /usr/local/bin/msgfmt
>>
>>             gettexts-tools is installed.
>>
>>             $pkg info|grep gettext-tools
>>             gettext-tools-0.19.6           GNU gettext development and
>> translation tools
>>
>>
>>       Can you run msgfmt manually?
>>
>>         msgfmt -o /dev/null -c
>> "/usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.po"
>>
>>       Maybe this is due to a permissions problem or a security setting?
>>
>>             2016-02-05 1:09 GMT+08:00 Warren Block <wblock@wonkity.com>:
>>                   On Fri, 5 Feb 2016, RayCherng Yu wrote:
>>
>>                         My VM has 4gb RAM and 20gb hardisk.I forgot how
>> much swapspace it had. I think it has enough swap space because I instal=
led
>> FreeBSD 10.2 with
>>             automatic disk
>>                         allocation to entire disk
>>                         space.
>>
>>
>>                         I deleted that vm and created a new one in order
>> to test the xfce logout menu option but I have not installed xwindow and
>> xfce for that vm yet so I
>>             can't test it
>>                         now.
>>
>>                         I tested poedit again 30 minute ago on another
>> machine(2008 macbook, FreeBSD 11-CURRENT with xwindow and KDE installed)=
. I
>> make po to create a fresh
>>             po file and
>>                         translate the "FreeBSD
>>                         Porter's Handbook" to "FreeBSD Porter"(delete
>> several).Then,pressed save button.I got this error message:
>>
>>                         =E7=84=A1=E6=B3=95=E5=9F=B7=E8=A1=8C=E7=A8=8B=E5=
=BC=8F=EF=BC=9Amsgfmt -o /dev/null -c
>> "/usr/home/raycherng/doc/zh_TW.UTF-8/books/porters-handbook/zh_TW.temp.p=
o"
>>
>>                         The Chinese message means "Cannot run:"
>>
>>                         My poedit version is:
>>
>>                         poedit-1.8.4_1                 Gettext catalogs
>> (.po files) editor
>>
>>
>>                   It appears to be using msgfmt just to check the
>> output.  Is /usr/local/bin/msgfmt present?  It is part of the
>> devel/gettext-tools port.  Is that port or
>>             package installed?
>>
>>
>>
>>
>>             --
>>             "Life is like a snowball. The important thing is finding wet
>> snow and a really long hill."
>>
>>             "Price is what you pay. Value is what you get."
>>
>>             "The first rule of Investing is don't lose money; the second
>> rule is don't forget rule #1..."
>>
>>             "Wall Street is the only place that people ride to work in a
>> Rolls-Royce to get advice from those who take the subway..."
>>
>>
>>
>> =E2=80=94 Warren Buffett.
>>
>>
>>
>>
>> --
>> "Life is like a snowball. The important thing is finding wet snow and a
>> really long hill."
>>
>> "Price is what you pay. Value is what you get."
>>
>> "The first rule of Investing is don't lose money; the second rule is
>> don't forget rule #1..."
>>
>> "Wall Street is the only place that people ride to work in a Rolls-Royce
>> to get advice from those who take the subway..."
>>
>>
>> =E2=80=94 Warren Buffett.
>>
>>


--=20
"Life is like a snowball. The important thing is finding wet snow and a
really long hill."

"Price is what you pay. Value is what you get."

"The first rule of Investing is don't lose money; the second rule is don't
forget rule #1..."

"Wall Street is the only place that people ride to work in a Rolls-Royce to
get advice from those who take the subway..."


=E2=80=94 Warren Buffett.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1602071735070.74300>