romkaromka,
а почему б не использовать libc и libgettextlib ?
const
LC_ALL = 6; { for setlocale() }
function SetLocale(Category: Integer; const Locale: PChar): PChar; cdecl; external name 'setlocale';
{$linklib c}
function DGetText(const DomainName: PChar; const MsgID: PChar): PChar; cdecl; external name 'dgettext';
{$linklib gettextlib}
const
BASH_MSG = 'bash';
BASH_MSG_CNF='%s: command not found';
begin
SetLocale(LC_ALL, '');
WriteLn(DGetText(BASH_MSG, BASH_MSG_CNF));
end.
[console]
$ fpc test.pp
$ ./test
%s: команда не найдена
$ echo $LANG
ru_RU.UTF-8
$ msgunfmt /usr/share/locale/ru/LC_MESSAGES/bash.mo | grep Content-Type
"Content-Type: text/plain; charset=KOI8-R\n"
[/console]