Update of /cvsroot/phpwebapp/web_app/l10n
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2455/l10n
Modified Files:
class.L10n.php
Log Message:
Index: class.L10n.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/l10n/class.L10n.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** class.L10n.php 13 Jun 2005 06:55:20 -0000 1.1
--- class.L10n.php 16 Jun 2005 11:34:37 -0000 1.2
***************
*** 174,178 ****
textdomain($domain);
}
!
}
--- 174,178 ----
textdomain($domain);
}
! //WebApp::debug_msg('==== '.$this->printState());
}
***************
*** 194,197 ****
--- 194,203 ----
);
array_push($this->stack, $item);
+ //WebApp::debug_msg('>>> '.$this->printState());
+ }
+
+ function printState()
+ {
+ return $this->path.' '.$this->domain.' '.$this->lng.' '.$this->codeset;
}
***************
*** 219,222 ****
--- 225,229 ----
$this->load_translation_file();
}
+ //WebApp::debug_msg('<<< '.$this->printState());
}
***************
*** 241,247 ****
//a translation file is found, save the parameters and load it
! $this->path = $l10n;
! $this->domain = $id;
! $this->load_translation_file();
}
--- 248,257 ----
//a translation file is found, save the parameters and load it
! if ($l10n != $this->path or $id != $this->domain)
! {
! $this->path = $l10n;
! $this->domain = $id;
! $this->load_translation_file();
! }
}
|