Fix some minor issues and re-enable building of DE, ES, FR, and IT locale data (help...
authorJon Trulson <jon@radscan.com>
Fri, 13 Jul 2012 23:42:12 +0000 (17:42 -0600)
committerJon Trulson <jon@radscan.com>
Fri, 13 Jul 2012 23:42:12 +0000 (17:42 -0600)
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

cde/admin/IntegTools/dbTools/installCDE.src
cde/config/cf/site.def
cde/programs/dthelp/parser/canon1/helptag/help.c
cde/programs/dthelp/parser/pass2/htag2/sdl.c
cde/programs/localized/templates/French.tmpl
cde/programs/localized/templates/German.tmpl
cde/programs/localized/templates/Italian.tmpl
cde/programs/localized/templates/Spanish.tmpl
cde/programs/localized/templates/header2.tmpl
cde/programs/localized/templates/msg.C.tmpl

index b4c5c91b4fb4612ead1803fe234668486ca45e54..6e13dd0f7bd46c024b0dd9152d2123e2754791b0 100755 (executable)
@@ -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
index 613a0abfa3dfdd4a6efcba71748e78ab458cf90d..2cdc401c47ae5401814d725e0e21332d3109bea4 100644 (file)
@@ -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
index 7ffe7ec19014b8daa504dd049bdd3a4867f2b239..830bf2ec65592173858c35ae00c7268161449fd2 100644 (file)
@@ -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;
 }
index f907fa1ea3b1661a01875a9e01219786cc2ba8a0..b75adf6eb668fb1b3995908cafe5cf5ad331c13e 100644 (file)
@@ -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;
index 7a611383488a969983b922c381bb35892968cd02..7e029390fc725d6446397078991faa5eeb90f4c0 100644 (file)
@@ -30,3 +30,7 @@ LANG=fr
 #ifdef UXPArchitecture
 LANG=fr
 #endif
+
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
+LANG=fr_FR.ISO8859-1
+#endif
index e0ea4ffe0a23d7df5821f9bd2a2da73f2c9a11cd..890b333a0db836f587e9a32d01a0ca990ce73844 100644 (file)
@@ -30,3 +30,7 @@ LANG=de
 #ifdef UXPArchitecture
 LANG=de
 #endif
+
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
+LANG=de_DE.ISO8859-1
+#endif
index 0dd50445543e380a73a35242bbfc93f7a056c69b..ccc368beb15203ecae58300b81da048464c4cef9 100644 (file)
@@ -30,3 +30,7 @@ LANG=it
 #ifdef UXPArchitecture
 LANG=it
 #endif
+
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
+LANG=it_IT.ISO8859-1
+#endif
index e7d9de5a85aac755397a1f0ea666ffd175229972..532d01eafde349f18e74de4343197f0358d83b16 100644 (file)
@@ -30,3 +30,7 @@ LANG=es
 #ifdef UXPArchitecture
 LANG=es
 #endif
+
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
+LANG=es_ES.ISO8859-1
+#endif
index 621fd93b339390e4d05435801bd17ce6dbd73826..bc7b2f356fc172f4b3f9b085a3eefaef226ee83b 100644 (file)
@@ -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)"         @@\
        ( \                                                             @@\
index b0ae5cb4a3520a27fa0e2df35c114b874e7e7926..c307c89d46415db39827763912bd4b903b47d8fc 100644 (file)
@@ -9,9 +9,6 @@ SHELL=/bin/ksh
 #endif
 
 OBJS= \
-      Xm.cat           \
-      Mrm.cat          \
-      Uil.cat          \
       DtHelp.cat       \
       fmt_tbl.cat      \
       DtMail.cat       \