Em 21 de novembro de 2012, Allin Cottrell escreveu:

On Wed, 21 Nov 2012, Henrique Andrade wrote:

> Em 21/11/2012, Allin Cottrell escreveu:
>
>> On Wed, 21 Nov 2012, Henrique Andrade wrote:
>>
>>> I found some strings that I think are not marked for translation:
>>>
>>> 1. "No such file or directory"
>>> When open a non-existing file.
>>
>> That's a message from the C library, not one composed by
>> gretl. Seems like it should be translated automatically. Can
>> you tell me the context where you're seeing it?
>> (...)
>
> Dear Allin, the message appears when we try to open some deleted
> file using the "recent files" facility.

Thanks, Henrique.

Well, here (on Linux) if I run gretl in pt_BR I get that
message in translation OK. Gretl gets the string by calling
the C library function strerror(), which takes as its argument
the numerical error code ("errno") set when a library function
fails -- in this case the fopen() function to open a file.

The ISO C standard says that "The strerror function returns a
pointer to the string, the contents of which are
locale-specific." The Linux manual page for this function says
that it "returns a string describing the error code ...
possibly using the LC_MESSAGES part of the current locale to
select the appropriate language."

So it seems that if the language environment is set up
correctly strerror() should probably produce the right
translation, but it's not guaranteed (?).

Dear Allin, today I'm back to work (bye bye holiday!) and I'm looking again at this issue. Testing on Windows Vista I'm getting the same untranslatable message.

Best regards,
Henrique Andrade