Update of /cvsroot/stack/stack-1-0/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11575/scripts
Modified Files:
stackUtility.php
Log Message:
Index: stackUtility.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/scripts/stackUtility.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** stackUtility.php 14 Jul 2005 08:46:53 -0000 1.26
--- stackUtility.php 14 Jul 2005 11:28:14 -0000 1.27
***************
*** 175,179 ****
/**
! * Translates a string from Maxima.
*
* This function takes a variable number of arguments, the first of which is assumed to be the identifier
--- 175,203 ----
/**
! * Create the a filename, given the current options.
! *
! */
! function stack_lang_filename($options,$fn) {
! global $stack_root;
!
! if (array_key_exists('Language',$options)) {
! $lang = $options['Language'];
! } else {
! $lang = 'en';
! }
!
! $filename = $stack_root."/lang/$lang/$fn";
!
! if (!file_exists($filename)) {
! // The file has not been translated - so give them the English instead.
! $filename = $stack_root.'/lang/en/'.$fn;
! }
!
! return $filename;
!
! }
!
! /**
! * Translates a string taken as output from Maxima.
*
* This function takes a variable number of arguments, the first of which is assumed to be the identifier
|