home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / MiniExamples / AskMe / Localization.h < prev    next >
Text File  |  1991-07-04  |  1KB  |  31 lines

  1. /* You may freely copy, distribute, and reuse the code in this example.
  2.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to
  3.  * its fitness for any particular use.
  4.  */
  5.  
  6. #import <appkit/Application.h>
  7. #import <defaults.h>
  8. #import <time.h>
  9.  
  10. #define LocalString(key, value, comment) doLocalString(NULL, key, value)
  11. #define LocalStringFromTable(table, key, value, comment)      \
  12.     doLocalString(#table, key, value)
  13.  
  14. extern id LoadLocalNib(const char *nibFile, id owner);
  15.  
  16. extern id LocalImage(const char *file);
  17.  
  18. extern void InitLocalDateAndTime();
  19.  
  20. extern void LocalDateAndTime(char *buffer,int  maxBufferSize, const time_t *time);
  21. extern void LocalDate(char *buffer,int  maxBufferSize, const time_t *time);
  22. extern void LocalTime(char *buffer,int maxBufferSize, const time_t *time);
  23.  
  24. extern const char *doLocalString(const char *stringTable, 
  25.                                  const char *key, 
  26.                                  const char *value);
  27.  
  28. /* Methods specific to AskMe app */
  29. extern void getAppDirectory(char *appDirectory);
  30. extern const char *findLocalDir();
  31.