Subversion Repositories SvarDOS

Rev

Rev 1277 | Rev 1279 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1277 Rev 1278
Line 43... Line 43...
43
 * to call svarlang_strid() after a load failure, the previously loaded
43
 * to call svarlang_strid() after a load failure, the previously loaded
44
 * language will be used then, or the default language if no loading has been
44
 * language will be used then, or the default language if no loading has been
45
 * done yet. */
45
 * done yet. */
46
int svarlang_load(const char *fname, const char *lang);
46
int svarlang_load(const char *fname, const char *lang);
47
 
47
 
-
 
48
/* tries loading lang strings from a file located in the executable's
-
 
49
 * directory that is named like the executable but with an *.LNG extension */
-
 
50
int svarlang_autoload_exepath(const char *lang);
48
 
51
 
49
/* this relies on getenv() to pull LANG and NLSPATH variables and looks
52
/* this relies on getenv() to pull LANG and NLSPATH variables and looks
50
 * for a translation file named "%NLSPATH%\progname.lng".
53
 * for a translation file named "%NLSPATH%\progname.lng".
51
 * this call should be used only by "CORE" SvarDOS programs. */
54
 * this call should be used only by "CORE" SvarDOS programs. */
52
int svarlang_autoload_nlspath(const char *progname);
55
int svarlang_autoload_nlspath(const char *progname);
53
 
56
 
54
/* alias to svarlang_autoload_nlspath() */
-
 
55
int svarlang_autoload(const char *progname);
-
 
56
 
-
 
57
/* Returns a pointer to the string "id". Does not require svalang_load() to be
57
/* Returns a pointer to the string "id". Does not require svalang_load() to be
58
 * executed, but then it will only return the reference language strings.
58
 * executed, but then it will only return the reference language strings.
59
 * a string id is the concatenation of the CATS-style identifiers, for example
59
 * a string id is the concatenation of the CATS-style identifiers, for example
60
 * string 1,0 becomes 0x0100, string 2.10 is 0x020A, etc.
60
 * string 1,0 becomes 0x0100, string 2.10 is 0x020A, etc.
61
 * It NEVER returns NULL, if id not found then an empty string is returned */
61
 * It NEVER returns NULL, if id not found then an empty string is returned */