Commit Graph

92 Commits

Author SHA1 Message Date
Jon Trulson b3309f59d3 doc: get the C SDL help files building 2021-11-09 19:46:17 -07:00
Jon Trulson 7aa24b086a programs/localized: delete Imakefiles and imake templates 2021-07-03 19:01:28 -06:00
Jon Trulson c489af6b3b utils/merge: re-fix include issue 2021-06-02 20:43:06 -06:00
Jon Trulson 75bf61c584 localized/util: fixup for autotools and new MsgCat.c 2021-06-02 19:57:23 -06:00
Lev Kujawski a4d9902a48 Switch default backdrop from SkyLight to KnitLight
programs/dtwm/Dtwm.defs.src: Update default Dtwm backdrop
localized/*/app-defaults/Dtwm.tmsg: Update translations to reflect change

For CDE users with sufficiently high resolution screens, the abrupt
transition towards the end of the default SkyLight backdrop image bore
a close enough resemblance to graphical corruption to spur bug
reports. This problem likely did not manifest to the original CDE
developers using the typical monitors of the 1990s.

This patch changes the default backdrop to KnitLight, which comports
well with CDE's low distraction UI while still offering something
visually interesting enough to showcase CDE's support for bitmap
backdrops. Because of the repeating pattern within KnitLight, this
problem will not occur in the future. Additionally, SkyLight will be
retained as a CDE backdrop.
2021-06-02 19:56:26 -06:00
Lev Kujawski a6ea2a2d52 Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.

This patch:

- Centralizes (with the exception of ToolTalk) all calls to catopen(),
  catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
  undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
  redundant caching implementations designed to work around a design
  peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
  the appropriate macros.
2021-06-02 19:55:15 -06:00
Jon Trulson d9a8325c8d Disable Japanese locale support since we do not currently support it
make distclean ignores the language definitions, as it should.

However, we had options that suggested that the Japanese locale was
supported.  Distclean would decend into that locale directory and
fail, since of course we do not actually support that locale and it is
not currently buildable.
2021-01-31 13:11:41 -07:00
Jon Trulson b64d91d5a9 app-defaults, config, types: re-enable parallel builds
With a fixed merge utility, we can run these builds in parallel now
without random corruption of the message files.
2020-03-24 18:44:40 -06:00
Jon Trulson 3d217c6ed1 merge: fix to use per-proc filenames rather than hardcoding them
The localized/utils/merge utility used hardcoded temporary filenames
to do its thing.  This prevented any Makefiles that called merge from
enabling parallel builds in order avoid the file collisions that would
result.

Now we:

- use filenames that embed the PID in them, making them unique
  per-process
- place them in /tmp, rather than the current directory

As a result, we can now re-enable parallel builds for localized
app-defaults, config, and types.
2020-03-24 18:43:11 -06:00
Jon Trulson 255b399760 appmanager action files: create and populate them
The appmanager action files (/usr/dt/appconfig/appmanager/*) are now
created properly for the main 4 languages supported.  As usual, the
en_US.UTF-8 locale is a symlink to C.

These files were previously created via the UDB database files via
imake.  Obviously we aren't going to be using those in autotools.

So, each language now has an appmanager/ dir in
programs/localized/$LANG/ that will create them properly on a make and
make install.  It uses a new appmgr.am template in localized/templates
to do this.

This also means all of these languages now can use the new actions
added by Antonis, even though they are not translated, they are at
least usable in those languages now.
2020-03-24 18:41:55 -06:00
Jon Trulson dd729a7be9 _common.dt.tmsg: remove unportable quote hackery 2019-12-15 12:34:00 -07:00
Jon Trulson e4e8b323c7 localized: use proper mkcatdefs for the Motif catalogs 2019-12-15 11:20:36 -07:00
Jon Trulson 617865da94 gencat: get rid of -o option, not needed and not supported on some systems 2019-12-14 19:05:35 -07:00
Jon Trulson 1b5d18f604 fontaliases: redo the way these are built, and actually install them
Use a common make include file to do most of the work and set the
appropriate LANG from localized/templates/ .  This should simplify it
quite a bit and reduce duplication.

Also we were not even installing them, so now we are.
2019-12-04 15:47:28 -07:00
Jon Trulson 21cf53c0d0 Fix palette and backdrops installation in dt/shared with proper symlinks 2019-12-04 13:21:31 -07:00
Jon Trulson 0cc0766cbd Get the dt types installed properly on make install 2019-12-02 19:31:02 -07:00
Jon Trulson c6b31ebd5f Get the palettes installed properly on make install 2019-12-02 19:20:36 -07:00
Jon Trulson e479b2082b Get the message catalogs installed properly on make install 2019-12-02 19:06:31 -07:00
Jon Trulson c40f0c9f08 Get /usr/dt/config populated correctly on make install 2019-12-02 14:33:05 -07:00
Jon Trulson 5823e95e03 Install backdrops in proper location, install localization for them 2019-12-02 13:08:52 -07:00
Jon Trulson 435ca4553f app-defaults.am: tweak installation 2019-12-02 13:08:06 -07:00
Jon Trulson d7a734c171 Get app-defaults installing correctly 2019-12-01 22:37:59 -07:00
Jon Trulson ab393fbef1 localization: disable parallel builds for app-defaults, types, and config
These use the 'merge' utility which hardcodes temp files and the like
- it cannot be run with other instances without generating bogus
errors and occasionally coredumping. :(
2019-11-30 20:49:10 -07:00
Jon Trulson d8e218c865 localization: finish up with getting message catalogs building
There are still some issues here - specifically with the C
dtbuilder/dtcodegen catalogs.  They may be broken due to dtbuilder not
being built yet.

Also, once dtinfo can be built, the msgs and app-defaults for it
should be re-enabled.

I also see gencat coredumping in localization/ while doing a multicore
(-jX) make.  Regular single core builds seem to work fine.
2019-11-30 20:26:59 -07:00
Jon Trulson d9749f5c9c localized: temporarily disable dtinfo appdefaults 2019-11-30 20:04:06 -07:00
Jon Trulson 805d22c5a8 localized: make palettes build 2019-11-30 17:12:15 -07:00
Jon Trulson bfc5b2eef1 localized: make types build 2019-11-30 17:00:34 -07:00
Jon Trulson d89d47bded localized: make backdrops build 2019-11-30 17:00:00 -07:00
Jon Trulson 376f1e15ee localized: make configs build 2019-11-30 16:59:14 -07:00
Jon Trulson e42c0cc1be localization: make FR, DE, IT, and ES app-defaults/ build 2019-11-24 18:55:11 -07:00
Jon Trulson 3ee747ac6b localized/C/app-defaults: make it build 2019-11-24 17:54:52 -07:00
Jon Trulson 0aec3c159f merge, mkcatdefs: add missing includes, clean up trailing whitespace 2019-11-24 17:50:18 -07:00
Jon Trulson 152f5c9a88 Merge branch 'master' into autotools-conversion after utf8-conversion 2019-11-19 11:44:33 -07:00
Jon Trulson 82059bf240 Merge branch 'master' into autotools-conversion after 2.3.1 release 2019-11-16 16:35:56 -07:00
Jon Trulson ba68ff0a17 Merge branch 'master' into utf8-conversion after 2.3.1 release 2019-11-16 16:34:48 -07:00
Nina Didenko f75ee32e72 sym2num: don't hardcode path to cpp 2019-11-05 18:49:17 -07:00
Nina Didenko de7fe55d6a merge: don't hardcode path to gencat 2019-11-05 18:49:10 -07:00
Jon Trulson 730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Chase 29424f66cd programs/localized: add automake files 2019-10-23 15:34:20 -06:00
Jon Trulson ddc3c8857b Merge branch 'master' into utf8-conversion 2019-09-16 13:24:18 -06:00
Jon Trulson 5cdeaf5b1f NLS: fix quote issue with various OS's in C/types/_common.dt.tmsg 2019-02-24 12:58:31 -07:00
Jon Trulson c876a76f4f utf8 conversion: fix up seperation of locale and doc building
Docs (help and the dtinfo guides) are now always built using the
ISO8859-1 locale.  To support UTF-8, our docbook needs to be updated
to something from this century, ideally this decade.  In addition, a
conversion to XML would also be required as a result.  So, until that
happens, use ISO8859-1 for docs.

However, other locale information, like message catalogs, resource
files, and the like are now converted to UTF-8.

All supported languages are now built by default on linux again.
2018-11-04 19:25:57 -07:00
Jon Trulson 63ad725508 UTF-8 conversion: programs/localized/sv_SE 2018-11-04 18:35:54 -07:00
Jon Trulson 8c73c01cb1 UTF-8 conversion: programs/localized/it_IT 2018-11-04 18:34:49 -07:00
Jon Trulson 592c6bc5d1 UTF-8 conversion: programs/localized/fr_FR 2018-11-04 18:34:43 -07:00
Jon Trulson 6867b04b1b UTF-8 conversion: programs/localized/es_ES 2018-11-04 18:34:34 -07:00
Jon Trulson c2997ba60c UTF-8 conversion: programs/localized/de_DE 2018-11-04 18:34:23 -07:00
chase 6b713f12b5 Revert "dtudcfonted, dtudcexch: delete from repository"
This reverts commit e0036e6167.
2018-08-18 16:37:36 -06:00
Jon Trulson ba611cbde6 templates/types.tmpl: make sure to clean up new .dt's on a make clean 2018-07-20 14:15:28 -06:00
Jon Trulson 2f6f1d2afb Finish integrating Antonis's desktop_approots work
In addition:

- moved video type detection into a separate file: videoTypes.dt out
  of datatypes.dt.  Also, removed all actions from Antonis' dt files,
  as these are handled by the new actions (listed below).

  Image, postscript, and PDF types definitions are still located in
  datatypes.dt.src

- supports most image files, PDFs, postscript files, and video files
  via dtapp now.

- Added new actions:

  - DisplayImage
  - DisplayVideo
  - DisplayPDF
  - DisplayPS

  All of these call the dtapp_* helpers to locate an appropriate
  program to handle the task.

- Added a camera icon

- standardized the icons used to display the various types - all
  images use the Dtimage icon now, as an example.

- moved the new *.dt files to their proper place in programs/types,
  rather than programs/localized/C/types (my bad).

Please add any further video types into videoTypes.dt, and everything
else (for now) into datatypes.dt.

In the future, we should probably separate these out into
type-specific .dt files.  Also, something should be done about playing
audio files too (maybe DisplayVideo.dt can handle all those too?)
2018-07-19 19:52:40 -06:00