CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 LCID and foreign languages

Print topic Send  topic

Author Message
CMonteiro_PT
Posted: 01/02/2004, 12:09 PM

I use this line in all .asp documents for Portuguese use only. But why CCS
don't use this instead of using only session.LCID and block the use with
other languages like portuguese?

<%@ LANGUAGE="VBScript" CODEPAGE="1252" LCID="2070"%>

For a complete list of LCID for other countries see:
http://www.microsoft.com/office/ork/2003/four/ch14/IntB05.htm
For a complete list of codepage for other countries see:
http://msdn.microsoft.com/library/default.asp?url=/libr...ml_ref_scpg.asp

--
-----
CM

Turn off your script-blocking feature on your antivirus software, and enjoy
CCS!
-----

Documentation on IIS
#################
@LCID
You can use the @LCID directive to set the locale identifier (LCID) for a
script. The LCID is a DWORD containing the language identifier in the lower
word and a reserved value in the upper word. The identifier supplied in an
LCID is a standard international numeric abbreviation. This LCID has the
components necessary to uniquely identify one of the installed
system-defined locales. There are two predefined LCID values.
LOCALE_SYSTEM_DEFAULT is the system default locale, and LOCALE_USER_DEFAULT
is the current user's locale.

Syntax
<%@ LCID = localeidentifier %>



Parameters
localeidentifier
A valid locale identifier.

#################
LCID
The LCID property determines the location identifier that will be used to
display dynamic content.

Syntax
Session.LCID(=LCID)



Parameters
LCID
A valid locale identifier.

Remarks
An LCID specifies the locale identifier, which is a standard international
abbreviation that uniquely identifies one of the system-defined locales. If
an LCID has been set using the @LCID directive Session.LCID will override
the value set by the directive.

Example
The following example demonstrates setting the locale to British English and
using the VBScript FormatCurrency method to display the value 125 as
currency with the £ symbol:

<%
Session.LCID = 2057
Dim curNumb
curNumb = FormatCurrency(125)
Response.Write (curNumb)
%>


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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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