veryfying messages



On 21 Apr 2001 11:54:18 +0200, Keld J¸rn Simonsen wrote:
> We would like a windows manager for verifying the executed apps.
> Running the program and clicking a text or a whole
> page should automatically mark it as ok or wrong in the .po file.
> We thought that it would be next to impossible to have people
> do this by hand, so we need assistance from a general 
> windows manager.

What do you mean by windows manager? A thing which can say if some
message is visible or not?

But it should be some compile-time option, or, better, separate tool
that does not mean anything for a  general user.

>From gettext point of view, this can be done as:

#ifdef I_AM_HARDCORE_TRANSLATOR
#define _(x) gettext_logged(x)
#else
#define _(x) gettext(x)
#endif

const char* gettext_logged(const char *x)
{
    static char *domain = NULL;
    if (domain == NULL)
        domain = textdomain (NULL);
    print_to_log_file (domain, x);
    /* or */
    verify_message (domain, x);
    return gettext(x);
}

-- 
Gediminas Paulauskas
´




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