You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ahmed shaheen <ah...@hotmail.com> on 2003/02/20 16:52:12 UTC
jetspeed arabization problem
Hi all
we are trying now to arabize jetspeed and we are facing some problems.
We are using jetspeed1.4b3 with Tomcat 4.1.12 On WinXP
Our steps were:
1) writing a (JetspeedLocalization_ar.properties) file with windows
notepad(ansi encoding)
2) adding some changes to the LocalizationTool.class to return the string
with WINDOWS-1256 encoding
3) changing the encodings and charactersets in all files : jr.p tr.p
fulcrum.p velocity.p
these steps were successfully done and arabic strings appeared correctlty.
then we tried to arabize the content retrieved from XML files As .psml files
(eg. tabs' titles in tabpane layout)
but it seems that there is a problem in reading and writing arabic in XML
files. Did anybody face a similar problem .. we think that the problem
in the XML APIs that deals with files.
we have done a lot of trials but where system dependent (change the language
in RegionalSittings to Ar)
and not working perfectly because it conflicts with previous working steps.
Anyhelp will be appreciated.
Ahmed Shaheen
NileClix(www.nileclix.com.eg)
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: jetspeed arabization problem
Posted by Santiago Gala <sg...@hisitech.com>.
ahmed shaheen wrote:
> Hi all
>
> we are trying now to arabize jetspeed and we are facing some problems.
> We are using jetspeed1.4b3 with Tomcat 4.1.12 On WinXP
> Our steps were:
> 1) writing a (JetspeedLocalization_ar.properties) file with windows
> notepad(ansi encoding)
> 2) adding some changes to the LocalizationTool.class to return the
> string with WINDOWS-1256 encoding
> 3) changing the encodings and charactersets in all files : jr.p tr.p
> fulcrum.p velocity.p
> these steps were successfully done and arabic strings appeared correctlty.
>
As a generic comment, I think it is simpler to use UTF-8 encoding for
the whole Portal, since then the portal will be able to represent any
Unicode character *at the same time*, and thus your portal will be able
to show words in any language. For instance, my full name, "Santiago
Gala PĂ©rez" (é) has a character that cannot be represented in any
"local" locale except ISO-8859-1..15, but it fits nicely in UTF-8,
toghether with japanese, arab, chinese or even ancient native american
languages. UTF-8 is the default for XML (thus for xhtml), and your
portal will be accesible by any reasonable browser for any reasonable use.
I think about localization more like message translation than Character
Encoding translation. *But*, this does no mean that Jetspeed should not
work with any locale supported by java.
> then we tried to arabize the content retrieved from XML files As .psml
> files (eg. tabs' titles in tabpane layout)
> but it seems that there is a problem in reading and writing arabic in
> XML files. Did anybody face a similar problem .. we think that the problem
> in the XML APIs that deals with files.
>
If I remember correctly, the specification of locale in the xml preamble
*must* conform to a standard (I don't know from my head the url) and
very possibly WINDOWS-1265 is not part of this standard, or it hsould be
expressed in a precise case. But I could be wrong. Look for "xml
preamble locale" or something similar.
> we have done a lot of trials but where system dependent (change the
> language in RegionalSittings to Ar)
> and not working perfectly because it conflicts with previous working steps.
>
> Anyhelp will be appreciated.
>
> Ahmed Shaheen
> NileClix(www.nileclix.com.eg)
>
>
>
>
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: jetspeed arabization problem
Posted by Shinsuke SUGAYA <sh...@yahoo.co.jp>.
--- ahmed shaheen <ah...@hotmail.com>
> Hi all
>
> we are trying now to arabize jetspeed and we are facing some problems.
> We are using jetspeed1.4b3 with Tomcat 4.1.12 On WinXP
> Our steps were:
> 1) writing a (JetspeedLocalization_ar.properties) file with windows
> notepad(ansi encoding)
> 2) adding some changes to the LocalizationTool.class to return the string
> with WINDOWS-1256 encoding
> 3) changing the encodings and charactersets in all files : jr.p tr.p
> fulcrum.p velocity.p
> these steps were successfully done and arabic strings appeared correctlty.
>
> then we tried to arabize the content retrieved from XML files As .psml files
> (eg. tabs' titles in tabpane layout)
> but it seems that there is a problem in reading and writing arabic in XML
> files. Did anybody face a similar problem .. we think that the problem
> in the XML APIs that deals with files.
I think it is the following bug.
Encoding of the registry files: always default system encoding?
http://issues.apache.org/bugzilla/show_bug.cgi?id=13286
Thanks,
shinsuke
> we have done a lot of trials but where system dependent (change the language
> in RegionalSittings to Ar)
> and not working perfectly because it conflicts with previous working steps.
>
> Anyhelp will be appreciated.
>
> Ahmed Shaheen
> NileClix(www.nileclix.com.eg)
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org