16 June 2014, 19:50 | #1 |
Registered User
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
Posts: 204
|
Locale
What program are you using to create your program's locale catalogs?
|
16 June 2014, 19:56 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,026
|
CatComp
|
16 June 2014, 22:28 | #3 | |
Registered User
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
Posts: 204
|
CatComp errors with every catalog file I have tried.
Quote:
Code:
## version $VER: we.catalog 1.0 (6.7.14) ## language english ## codeset 0 ; ; *** MPS_SetUp ยท Libraries *** ; MSG_LIBS_COULD_NOT_OPEN_X_LIBRARY (1//) Could not open %s library. MSG_LIBS_COULD_NOT_OPEN_X_CLASS (//) Could not open %s class. |
|
16 June 2014, 22:42 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,026
|
You are mixing up .cd and .ct files. The lines with ## belong into .ct files while the (//) tokens are only valid in the .cd file.
Find a complete example attached. |
17 June 2014, 03:50 | #5 |
Registered User
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
Posts: 204
|
Now I remember why I always hated CatComp.
In my SMakefile I do this Code:
@DH1:CatComp/CatComp DESCRIPTOR=LocaleStrings.cd CFILE=Protos_LocaleStrings.h NOARRAY NOBLOCK NOCODE @DH1:CatComp/CatComp DESCRIPTOR=LocaleStrings.cd CFILE=LocaleStrings.c CTFILE=$(PROGRAM2)_Blank.ct NONUMBERS NOSTRINGS NOBLOCK NOCODE The second line is to make the array only. I use a GST file to speed things up. Everything is included in Headers.h Code:
#include <dos/dostags.h> #include <dos/rdargs.h> #include <exec/execbase.h> #include <exec/io.h> #include <exec/libraries.h> #include <exec/lists.h> #include <exec/memory.h> #include <exec/nodes.h> #include <exec/ports.h> #include <exec/tasks.h> #include <exec/types.h> blah blah blah Then my program's stuff #include "Protos_Globals.h" #include "Protos_Modules.h" #define CATCOMP_NUMBERS #define CATCOMP_STRINGS #include "Protos_LocaleStrings.h" Same for the CATCOMP_ARRAY in LocaleStrings.c. The compiler says something like "No external data was created" and is empty, essentially. And Code:
struct LocaleInfo { APTR li_LocaleBase; APTR li_Catalog; }; OS3.9. CatComp v40.4 (isn't there a newer version?) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help needed... Please insert Locale?? | A14n | project.WHDLoad | 2 | 03 June 2013 11:51 |
BoingBag39-2 Locale | ma693541 | support.Apps | 3 | 14 April 2013 06:40 |
Locale problem with ClassicWB ADVSP | Kristian95 | project.ClassicWB | 0 | 14 August 2011 03:54 |
WB2.1 Locale disk | freeze205 | request.Apps | 1 | 29 March 2006 19:43 |
|
|