mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix some minor issues and re-enable building of DE, ES, FR, and IT locale data (help and message cats)
Note, there are still some issues with certain programs appearing not to use their localized message catalogs properly, while others work fine. Also, in order to build these now, you need to make sure you have installed the DE, ES, FR, and IT locales before building or you will get failures. On [k]ubuntu, at least, you can install these with the following commands: sudo locale-gen de_DE sudo locale-gen es_ES sudo locale-gen fr_FR sudo locale-gen it_IT
This commit is contained in:
parent
75f2f96793
commit
860aa64942
10 changed files with 46 additions and 24 deletions
|
@ -847,13 +847,27 @@ XCOMM
|
|||
fi
|
||||
|
||||
HASH now load any localized filesets
|
||||
|
||||
if [ "$DEVELOP_ENV" != "yes" ]
|
||||
then
|
||||
if [ "$theLang" != "" ]
|
||||
then
|
||||
DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \
|
||||
CDE-HELP-$theLang"
|
||||
else
|
||||
HASH load all current (working) languages
|
||||
DATABASE_FILES="$DATABASE_FILES \
|
||||
CDE-DE \
|
||||
CDE-MSG-DE \
|
||||
CDE-HELP-DE \
|
||||
CDE-ES \
|
||||
CDE-MSG-ES \
|
||||
CDE-HELP-ES \
|
||||
CDE-FR \
|
||||
CDE-MSG-FR \
|
||||
CDE-HELP-FR \
|
||||
CDE-IT \
|
||||
CDE-MSG-IT \
|
||||
CDE-HELP-IT "
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -82,9 +82,10 @@ XCOMM site: $TOG: site.def /main/23 1998/03/19 18:43:26 mgreess $
|
|||
# define DtLocalesToBuild ja_JP.dt-eucJP
|
||||
#endif
|
||||
|
||||
XCOMM No locales other than C will build at this time.
|
||||
#ifdef LinuxArchitecture
|
||||
# define DtLocalesToBuild
|
||||
XCOMM Make sure you have installed the de_DE, es_ES, fr_FR and it_IT locales.
|
||||
XCOMM or building non-C locales will cause build failures.
|
||||
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
|
||||
# define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
|
||||
#endif
|
||||
|
||||
#ifdef SunArchitecture
|
||||
|
|
|
@ -1768,7 +1768,7 @@ if (!charset)
|
|||
charset = dotPtr + 1;
|
||||
}
|
||||
if (dotPtr)
|
||||
*dotPtr = NULL;
|
||||
*dotPtr = 0;
|
||||
|
||||
strcpy(stdLang, locale);
|
||||
if (charset)
|
||||
|
@ -2250,7 +2250,7 @@ M_WCHAR wc;
|
|||
{
|
||||
if ((wc >= 0) && (wc <= 255))
|
||||
{
|
||||
return _toupper(wc);
|
||||
return toupper(wc);
|
||||
}
|
||||
return wc;
|
||||
}
|
||||
|
|
|
@ -1680,9 +1680,9 @@ while (pThis)
|
|||
pId = &pThis->u.u_switch.id;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, errMess);
|
||||
fprintf(stderr, "%s\n", errMess);
|
||||
if (m_errfile && (m_errfile != stderr))
|
||||
fprintf(m_errfile, errMess);
|
||||
fprintf(m_errfile, "%s\n", errMess);
|
||||
exit(xxx);
|
||||
}
|
||||
if (w_strcmp(rid, *pId) == 0) return pThis;
|
||||
|
@ -2342,9 +2342,9 @@ while (pThis)
|
|||
pThis = pThis->pNext;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, errMess);
|
||||
fprintf(stderr, "%s\n", errMess);
|
||||
if (m_errfile && (m_errfile != stderr))
|
||||
fprintf(m_errfile, errMess);
|
||||
fprintf(m_errfile, "%s\n", errMess);
|
||||
exit(xxx);
|
||||
}
|
||||
}
|
||||
|
@ -3368,9 +3368,9 @@ while (pThis)
|
|||
pThis = pThis->pNext;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, errMess);
|
||||
fprintf(stderr, "%s\n", errMess);
|
||||
if (m_errfile && (m_errfile != stderr))
|
||||
fprintf(m_errfile, errMess);
|
||||
fprintf(m_errfile, "%s\n", errMess);
|
||||
exit(xxx);
|
||||
}
|
||||
}
|
||||
|
@ -4915,9 +4915,9 @@ while (pThis)
|
|||
DeleteElement(pThat);
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, errMess);
|
||||
fprintf(stderr, "%s\n", errMess);
|
||||
if (m_errfile && (m_errfile != stderr))
|
||||
fprintf(m_errfile, errMess);
|
||||
fprintf(m_errfile, "%s\n", errMess);
|
||||
exit(xxx);
|
||||
}
|
||||
}
|
||||
|
@ -6409,7 +6409,7 @@ static char padString[COMPRESS_PAD_LENGTH];
|
|||
pc = padString;
|
||||
length = COMPRESS_PAD_LENGTH;
|
||||
while (--length >= 0)
|
||||
*pc++ = 0xff;
|
||||
*pc++ = (char)0xff;
|
||||
|
||||
FcloseFile(outFile, compFileName, xxx);
|
||||
newZsize = Compress(compFileName, compZFileName, TRUE) + 4;
|
||||
|
|
|
@ -30,3 +30,7 @@ LANG=fr
|
|||
#ifdef UXPArchitecture
|
||||
LANG=fr
|
||||
#endif
|
||||
|
||||
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
|
||||
LANG=fr_FR.ISO8859-1
|
||||
#endif
|
||||
|
|
|
@ -30,3 +30,7 @@ LANG=de
|
|||
#ifdef UXPArchitecture
|
||||
LANG=de
|
||||
#endif
|
||||
|
||||
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
|
||||
LANG=de_DE.ISO8859-1
|
||||
#endif
|
||||
|
|
|
@ -30,3 +30,7 @@ LANG=it
|
|||
#ifdef UXPArchitecture
|
||||
LANG=it
|
||||
#endif
|
||||
|
||||
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
|
||||
LANG=it_IT.ISO8859-1
|
||||
#endif
|
||||
|
|
|
@ -30,3 +30,7 @@ LANG=es
|
|||
#ifdef UXPArchitecture
|
||||
LANG=es
|
||||
#endif
|
||||
|
||||
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
|
||||
LANG=es_ES.ISO8859-1
|
||||
#endif
|
||||
|
|
|
@ -39,12 +39,6 @@ AllTarget($(TMPLOCAL_TARGET)) @@\
|
|||
@@\
|
||||
.SUFFIXES: .msg .cat @@\
|
||||
@@\
|
||||
RandomMotifMessageCatalogRule(Xm) @@\
|
||||
@@\
|
||||
RandomMotifMessageCatalogRule(Mrm) @@\
|
||||
@@\
|
||||
RandomMotifMessageCatalogRule(Uil) @@\
|
||||
@@\
|
||||
dtprintinfo.cat: dtprintinfo.msg @@\
|
||||
@echo "Running sym2num for $@ with LANG set to $(LANG)" @@\
|
||||
( \ @@\
|
||||
|
|
|
@ -9,9 +9,6 @@ SHELL=/bin/ksh
|
|||
#endif
|
||||
|
||||
OBJS= \
|
||||
Xm.cat \
|
||||
Mrm.cat \
|
||||
Uil.cat \
|
||||
DtHelp.cat \
|
||||
fmt_tbl.cat \
|
||||
DtMail.cat \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue