🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #266

Re: adding spanish language support

#266
From: Andrue Cope [TeamB]
Date: Thu, 14 Oct 2004 14:23
41 lines
2648 bytes
George wrote:

> Hi, sorry for such a vague question.
> 
> ok, well, basically I want to be able to write spanish in my app.
> TMemo, TEdit or whatever
> control it will be.

Your email address has a .ru extension so I'm assuming you're
configured to use the Cyrillic codepage. If that is the case then your
machine probably doesn't have the Spanish characters available to it.

The problem is that the VCL (and most Windows applications come to
that) still use 8-bit characters in strings. 8-bits only gives 256
characters and that is nowhere near enough to support all the World's
languages.

The solution is something called a codepage. Basically this is a subset
of characters tailored to a particular language. In effect it's the 256
characters that you as a cyrillic user need. It includes several
characters that I as an Briton don't need but more importantly it may
not include some of the accented Roman alphabet letters than Spanish
needs.

You could try changing your locale (Control panel\Regional settings) to
Spain after ensuring that 'Western European' is enabled in the list of
input languages.

This 'problem' is not really a problem at all. You can translate your
application on a machine set up for Spain and then release. Obviously
anyone wanting to see the Spanish version will have their machine
configured appropriately and all will be well.

If for some reason you need to be able to display text in any language
on any machine you need to look at using Unicode. Unfortunately the VCL
doesn't support this.

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <416e8bf9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <416c225b@newsgroups.borland.com> <416c3717$1@newsgroups.borland.com> <416d3117@newsgroups.borland.com> <416d714f$1@newsgroups.borland.com> <416e7eda@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,d71949923ef57c99
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: adding spanish language support
Newsgroups: borland.public.cppbuilder.internationalization
References: <416c225b@newsgroups.borland.com> <416c3717$1@newsgroups.borland.com> <416d3117@newsgroups.borland.com> <416d714f$1@newsgroups.borland.com> <416e7eda@newsgroups.borland.com>
User-Agent: XanaNews/1.16.4.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <416e8bf9$1@newsgroups.borland.com>
Date: 14 Oct 2004 07:23:53 -0700
X-Trace: newsgroups.borland.com 1097763834 217.207.223.34 (14 Oct 2004 07:23:54 -0700)
Lines: 41
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail