home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / clients / language_simple_proposal.ycp < prev    next >
Text File  |  2006-11-29  |  591b  |  25 lines

  1. /**
  2.  * File:        language_simple_proposal.ycp
  3.  * Author:        Jiri Suchomel <jsuchome@suse.cz>
  4.  * Purpose:        Simple language proposal.
  5.  *
  6.  * $Id: language_simple_proposal.ycp 27936 2006-02-13 20:01:14Z olh $
  7.  */
  8. {
  9.     import "Language";
  10.  
  11.     string func  = (string) WFM::Args(0);
  12.     map    param = (map) WFM::Args(1);
  13.     map    ret   = $[];
  14.  
  15.     if ( func == "MakeProposal" )
  16.     {
  17.     ret = $[
  18.           "preformatted_proposal"    : Language::MakeSimpleProposal (),
  19.           "language_changed"    : false
  20.     ];
  21.     }
  22.     else ret = (map) WFM::CallFunction ("language_proposal", [func, param]);
  23.     return ret;
  24. }
  25.