mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
1fccd23656
PR: ports/8408 Submitted by: Issei Suzuki <issei@jp.FreeBSD.ORG>
33 lines
998 B
Plaintext
33 lines
998 B
Plaintext
--- afterstep/configure.c.old Mon Oct 19 22:00:57 1998
|
|
+++ afterstep/configure.c Mon Oct 19 22:06:26 1998
|
|
@@ -409,7 +409,7 @@
|
|
****************************************************************************/
|
|
void MakeMenus(const char *display_name, char *m4_options)
|
|
{
|
|
- char *system_file = STEPRC;
|
|
+ char *system_file;
|
|
char *home_file;
|
|
char line[256],*tline;
|
|
char *Home; /* the HOME environment variable */
|
|
@@ -504,8 +504,20 @@
|
|
}
|
|
afterstep_file = home_file;
|
|
config_fd = fopen(home_file,"r");
|
|
+#ifdef I18N
|
|
+ if (config_fd == (FILE *)NULL && Lang != NULL) {
|
|
+ system_file = safemalloc(strlen(STEPRC) + strlen(Lang) + 2);
|
|
+ sprintf(system_file, "%s.%s", STEPRC, Lang);
|
|
+ afterstep_file = system_file;
|
|
+ config_fd = fopen(system_file,"r");
|
|
+ }
|
|
+#endif
|
|
if(config_fd == (FILE *)NULL)
|
|
{
|
|
+#ifdef I18N
|
|
+ free(system_file);
|
|
+#endif
|
|
+ system_file = STEPRC;
|
|
afterstep_file = system_file;
|
|
config_fd = fopen(system_file,"r");
|
|
}
|