Changeset 3774


Ignore:
Timestamp:
2003-02-28T14:28:22+13:00 (21 years ago)
Author:
davidb
Message:

* empty log message *

Location:
trunk/gsdl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/etc/main.cfg

    r3632 r3774  
    2525# end-user collection building facility to be available.
    2626collector       enabled
     27
     28# Set translator to "disabled" if you don't want the translation
     29# service for keeping language fragments of macro text up to date
     30translator       enabled
    2731
    2832# Set logcgiargs to true to keep a log of usage information in
  • trunk/gsdl/macros/home.dm

    r3725 r3774  
    4242
    4343_imagecollector_ {_gsimage_(_httppagecollector_,_httpimg_/ccolof.gif,_httpimg_/ccolon.gif,col,_collector:textcollector_)}
     44_imagetranslator_ {_gsimage_(_httppagetranslator_,_httpimg_/ctransof.gif,_httpimg_/ctranson.gif,trans,_translang:texttranslator_)}
    4445_imageadmin_ {_gsimage_(_httppagestatus_,_httpimg_/cadminof.gif,_httpimg_/cadminon.gif,admin,_home:textadmin_)}
    4546_imagegogreenstone_ {_gsimage_(_home:httppagegsdl_,_httpimg_/cabgsof.gif,_httpimg_/cabgson.gif,gogs,_home:textabgs_)}
     
    6364<p><table>
    6465_textgocollector_
     66_textgotranslator_
    6567_textgoadmin_
    6668_textgogreenstone_
     
    7678}
    7779
    78 # the _textgocollector_ and _textgoadmin_ macros may be overridden
    79 # to be empty from within the receptionist if the collector or admin
    80 # facilities are disabled
     80# the _textgocollector_, _textgotranslator_, and _textgoadmin_ macros
     81# may be overridden to be empty from within the receptionist if the
     82# collector, translator, or admin facilities are disabled
    8183_textgocollector_ {
    8284<tr valign=top>
    8385<td valign=top>_imagecollector_</td>
    8486<td>_textimagecollector_</td>
     87</tr>
     88}
     89
     90_textgotranslator_ {
     91<tr valign=top>
     92<td valign=top>_imagetranslator_</td>
     93<td>_textimagetranslator_</td>
    8594</tr>
    8695}
     
    143152<p><table>
    144153_home:textgocollector_
     154_home:textgotranslator_
    145155_home:textgoadmin_
    146156_home:textgogreenstone_
  • trunk/gsdl/src/recpt/pageaction.cpp

    r3625 r3774  
    3535  status_disabled = true;
    3636  collector_disabled = true;
     37  translator_disabled = true;
    3738  recpt = NULL;
    3839
     
    482483  // _textgocollector_     set to "" if collector is disabled in main.cfg
    483484  // _textgoadmin_         set to "" if status is disabled in main.cfg
     485  // _textgotranslator_    set to "" if translator is disabled in main.cfg
    484486
    485487
     
    546548    if (status_disabled) disp.setmacro ("textgoadmin", "home", "");
    547549    if (collector_disabled) disp.setmacro ("textgocollector", "home", "");
     550    if (translator_disabled) disp.setmacro ("textgotranslator", "home", "");
    548551
    549552  } else if (arg_p == "homepref") {
     
    733736         (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) {
    734737    collector_disabled = false;
     738  } else if ((key == "translator") && (cfgline.size() == 1) &&
     739         (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) {
     740    translator_disabled = false;
    735741  } else {
    736742    // call the parent class to deal with the things which
  • trunk/gsdl/src/recpt/pageaction.h

    r3625 r3774  
    8585  bool status_disabled;
    8686  bool collector_disabled;
     87  bool translator_disabled;
    8788
    8889};
Note: See TracChangeset for help on using the changeset viewer.