CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Detecting i18n CCS PHP Projects

Print topic Send  topic

Author Message
xbill

Posts: 35
Posted: 01/09/2009, 8:32 AM

Hi-

I have two versions of my CCS projects- one that is just
plain US english with no internationalization, and one with
full internationalization/locales turned on.

Is there a quick way - by a CCS internal function or variable
to know if the internationalization has been turned on at runtime?

ie what I want to do is only run pieces of code when the generated
files are running under the full internationalization.

Something like:

if (CCS is international) {
iconv etc etc
}

thanks,
-bill
View profile  Send private message
mentecky

Posts: 321
Posted: 01/09/2009, 10:23 PM

Bill,

Best I can think of is count the Locales defined... for example:
   global $CCSLocales;  
  
   if (count($CCSLocales->Locales) > 1)  
   ...  

Hope that helps!

Rick
_________________
http://www.ccselite.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.