| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

set_userlang_str

#include "sfllang.h"
int
set_userlang_str (const char *language)

Synopsis

Sets language used for date and numeric translation, using a string representation of the language. The valid user languages are:
"" Default language (use hard-coded values)
"--" Alternative form for default language
"DA" Danish
"DE" German
"EN" English
"ES" Castillian Spanish
"FB" Belgian or Swiss French
"FR" French
"IS" Icelandic
"IT" Italian
"NL" Dutch
"NO" Norwegian
"PO" Portuguese
"SV" Swedish
Returns 0 if okay, -1 if an unsupported language was specified.

Source Code - (sfllang.c)

{
    int
        index;

    if (strnull (language))
        return (set userlang (USERLANG_DEFAULT));

    for (index = 0; index < USERLANG_TOP; index++)
        if (streq (language, language_str [index]))
            return (set userlang (index));

    return (-1);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation