Line 44... |
Line 44... |
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
|
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 */
|
49 |
* directory that is named like the executable but with an *.LNG extension.
|
- |
|
50 |
* selfexe should point to the executable's full filename path (either relative
|
- |
|
51 |
* or absolute). You may want to pass argv[0] or __argv[0] there. */
|
50 |
int svarlang_autoload_exepath(const char *lang);
|
52 |
int svarlang_autoload_exepath(const char *selfexe, const char *lang);
|
51 |
|
53 |
|
52 |
/* this relies on getenv() to pull LANG and NLSPATH variables and looks
|
54 |
/* this relies on getenv() to pull LANG and NLSPATH variables and looks
|
53 |
* for a translation file named "%NLSPATH%\progname.lng".
|
55 |
* for a translation file named "%NLSPATH%\progname.lng".
|
54 |
* this call should be used only by "CORE" SvarDOS programs. */
|
56 |
* this call should be used only by "CORE" SvarDOS programs. */
|
55 |
int svarlang_autoload_nlspath(const char *progname);
|
57 |
int svarlang_autoload_nlspath(const char *progname);
|