English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 16 June 2014, 19:50   #1
mritter0
Registered User

 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 50
Posts: 204
Locale

What program are you using to create your program's locale catalogs?
mritter0 is offline  
Old 16 June 2014, 19:56   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,523
CatComp
thomas is offline  
Old 16 June 2014, 22:28   #3
mritter0
Registered User

 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 50
Posts: 204
CatComp errors with every catalog file I have tried.

Quote:
ERROR: 'version' is not a valid command after '#'
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.
mritter0 is offline  
Old 16 June 2014, 22:42   #4
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,523
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.
Attached Files
File Type: lha locale.lha (5.8 KB, 91 views)
thomas is offline  
Old 17 June 2014, 03:50   #5
mritter0
Registered User

 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 50
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 first line is to make a file with just the #define lines for the IDs and Strings.
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"
This will not include the defines because of the #ifdef check. If I take out all of those lines, they get included in the GST. What am I missing?

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;
};
is in every file. Doesn't need to be. NOCODE should leave it out.


OS3.9. CatComp v40.4 (isn't there a newer version?)
mritter0 is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:49.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Page generated in 0.12617 seconds with 16 queries