[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] msgcat does not seem to handle locations with spaces

From: Peter Poulsen
Subject: Re: [bug-gettext] msgcat does not seem to handle locations with spaces
Date: Wed, 14 Aug 2019 06:57:43 +0200

Thanks for the tip! 


On Wed, Aug 14, 2019, 03:04 Bruno Haible <address@hidden> wrote:

Peter Poulsen wrote:
> I have a pot file that contains this snippet:
> #: C:\git\accuratech\Device
> Center\ShopfloorManagementDeviceCenter\Protocols.Units.cs:40
> msgid "Minutes"
> msgstr ""
> When i pass this (together with another pot file) to msgcat I get something
> like this:
> #: C:\git\accuratech\Device
> #: Center\ShopfloorManagementDeviceCenter\Protocols.Units.cs:40
> msgid "Minutes"
> msgstr ""

This is not a bug.

It is a best practice to pass relative file names, not absolute
file names, to xgettext, so that the file names make sense for
other people, who have unpacked the sources in different locations
on their disks.

If the PO file format would support file names with spaces,
this would require quoting/escaping in some form. Such a modification
of the file format would require adjustment in all software that
reads or writes PO files - and there are lots of such programs.
This effort is not worth it. Just avoid directory names and file
names with spaces, when it comes to programming.

IOW: I suggest to restrict spaces in file names to multimedia files.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]