Re: Portlet titles gone in J2-M2?

2005-04-12 Thread Shinsuke SUGAYA
Updated the following files:
(B
(Bshinsuke2005/04/08 17:24:45
(B
(B  Modified:components/registry/src/java/org/apache/jetspeed/om/impl
(BLanguageImpl.java LanguageSetImpl.java
(B   components/registry/src/java/org/apache/jetspeed/om/portlet/impl
(BPortletDefinitionImpl.java
(B   portal/src/java/org/apache/jetspeed/tools/pamanager
(BPortletApplicationManager.java
(B   portal/src/java/org/apache/jetspeed/util/descriptor
(BPortletApplicationDescriptor.java
(BPortletApplicationWar.java
(B
(BThanks,
(B shinsuke
(B
(B
(BFrank Villarreal wrote:
(B I was running on my default locale (en_US), however what classes did you
(B have to update?  If possible, I'd like to isolate and just download the
(B patched classes.
(B 
(B Thanks,
(B 
(B Frank
(B 
(B 
(B-Original Message-
(BFrom: Shinsuke SUGAYA [mailto:[EMAIL PROTECTED]
(BSent: Monday, April 11, 2005 07:44 PM
(BTo: Jetspeed Users List
(BSubject: Re: Portlet titles gone in J2-M2?
(B
(B
(BHi Frank,
(B
(BIf you run J2 on locales other than en_US, it might occur..
(BAfter M2 release, I have fixed the portlet title handling issue.
(BSo, I think you can see the fix on CVS HEAD right now.
(B
(BThanks,
(B shinsuke
(B
(B
(BTo all:
(B
(BIs it just me, or did the portlet title functionality get
(B
(Bbugged out between release M1 and M2?
(B
(BI upgraded my installation of J2 and now all my portlet titles
(B
(Bhave vanished ... they display
(B
(Bempty strings ?!?  Of course perhaps I screwed something up
(B
(Bduring my upgrade process.  Just
(B
(Bcurious if anyone else out there is experiencing the same issue.
(B
(B- Frank
(B
(B
(B__
(BDo You Yahoo!?
(BUpgrade Your Life
(Bhttp://bb.yahoo.co.jp/
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B 
(B 
(B 
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B 
(B
(B__
(BDo You Yahoo!?
(BUpgrade Your Life
(Bhttp://bb.yahoo.co.jp/
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Velocity: Japanese localisation.

2004-08-31 Thread Shinsuke SUGAYA
Hi,
Please check the following:
- check the file name. It's JetspeedLocalization_ja.properties
- use Japanese browser. The preferred language is ja.
- use native2ascii command
Thanks,
 shinsuke
Sampangi, Dinesh wrote:
Hi! Shinsuke,
  I tried to localize using the
JetSpeedLocalization_language.properties. It seems to work for all
except Japanese language.. When user selects Japanese language it is
getting defaulted to English. I'm not very sure about this peculiar
behavior.
 When I tried with the merge properties technique.. Nothing seems to
work including my action class in custom modules package. is there a way
to verify whether merge of properties files was successful.
Please guide me on this... I need your help...
Rgds,
Dinesh B Sampangi
-Original Message-
From: Shinsuke SUGAYA [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 26, 2004 5:35 PM
To: Sampangi, Dinesh
Subject: Re: Velocity: Japanese localisation.

Hi,
I do not have a sample portlet that I can send you now.
Typically, messages are moved into .properties file.
If you do not know how to encode it by UTF-8, try to move
messages into .properties file.
Thanks,
  shinsuke
Sampangi, Dinesh wrote:
Hi!
Can u send me a sample portlet where in u have the file encoded, Coz
in
my case it's not working even after doing all the stuffs u mentioned.
Rgds,
Dinesh B Sampangi
-Original Message-
From: Shinsuke SUGAYA [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 26, 2004 3:03 AM
To: Sampangi, Dinesh
Subject: Re: Velocity: Japanese localisation.

Hi,
Please try:
 - encode the file by UTF-8(not native2ascii)
 - set ja to the browser's preferred language
Thanks,
 shinsuke
Sampangi, Dinesh wrote:

Hi! Shinsuke,
 I'm facing some problem with localization of velocity templates in 
JetSpeed. I have followed the i18n instructions as per the velocity 
documentation. But the Japanese char sets are not getting translated. 
Here is my velocity template. This is placed under 
WEB-INF\templates\vm\portlets\html\ja.


/META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=UTF-8 /
/html/
/ head/
/ script LANGUAGE=JavaScript/
/ /
/  function chgLanguage()/
/  {/
/var language =/
/document.ChangeLanguageForm.Language./
/
options[document.ChangeLanguageForm.Language.selectedIndex].value;/

/ document.ChangeLanguageForm.submit(); /
/}/
/ /script/
/ /head/
/form name=ChangeLanguageForm 
action=$jslink.setAction(portlets.witness.ChangeSettingsAction) /

/method=post/
/  font color=$!{skin.Color}/
/


p\u8a00\u8a9e\u3092\u5909\u3048\u305f\u3044\u3068\u601d\u3048\u3070\u6
642\u9593\u5e2f\u306e\u8a2d\u5b9a/

/
\u3001\u305d\u308c\u3092\u6b21\u306b\u5909\u3048\u306a\u3055\u3044/

/  brbr/
/ select name=Language size=1/
/  option selected
value=$SelectedLang$SelectedLang/option/

/#foreach($Langauge in $Languages)/
/#if($Langauge != $SelectedLang)/
/option value='$Langauge'$Langauge/option/
/#end/
/   #end/
/  /select/
/ select name=TimeZone size=1/
/ option selected
value=$SelectedZone$SelectedZone/option/

/  #foreach($TimeZone in $TimeZones)/
/  #if($TimeZone != $SelectedZone)/
/   option value='$TimeZone'$TimeZone/option/
/   #end/
/   #end/
/  /select/
//p/
/BRBR/
/p/
/ table/
/  tr/
/td\u73fe\u5728\u306e\u5730\u5e2f :
b$SelectedZone/b/td/

/td\u6642\u9593nbsp;nbsp; nbsp;nbsp;: $ZoneTime/td/
/  /tr/
/  tr/
/td\u73fe\u5728\u306e\u5834\u6240 :
b$SelectedLang/b/td/

/td\u6642\u9593nbsp;nbsp; nbsp;nbsp;: $LocaleTime/td/
/  /tr/
//p/
/  table bgcolor=#ff cellpadding=5 width=100%/
/  tr/
/td align=$ui.buttonAlignment 
bgcolor=$!{skin.TitleBackgroundColor}/

/ input type=submit name=eventSubmit_doUpdate 
value=SaveSettings//

/  /td/
//tr/
/  /table/
/  /font/
/ /form/
/ /html/
/ /
Please check this template and let me know what must be the problem..


Rgds,
Dinesh B Sampangi.

__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/

__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: i10n messages in email subsystem Jetspeed 1.5

2004-08-24 Thread Shinsuke SUGAYA
Hi,
It's i18n issue. Currently, you will need to modify the source code.
Jetspeed for Japanese Support project has the patch.
Patches, Japanese template files, and Classes imported from commons-lang 2.0:
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/jetspeed-japan/jetspeed-japan/patches/P-14/resources/
 - replace with commons-email
 - set charset by newuser.notification.charset key
 - use StringEscapeUtils(it's commons-lang 2.0 code)
I think that I'll modify some code and commit them into cvs later..
Thanks,
 shinsuke
Vladimir Figurov wrote:
Hi!
Any body know How To make i10n message in email subsystem Jetspeed 1.5 ???
By example, I try send Confirmation email from jetspeed and, I see 
correct National Chars only SUBJECT-field mail 8(
In BODY - the all chars is broken (as  )
In header-mail ALLWAYS setting Content-Type: test/plain; 
charset=us-ascii 8(((
but I working in utf-8 !!!

in velocity.properties I setting:
# 

# T E M P L A T E  E N C O D I N G
# 

#template.encoding=8859_1
template.encoding=utf-8
# 

# C O N T E N T  T Y P E  
# 

# This is the default content type for the VelocityServlet.
# 

#default.contentType=text/html
default.contentType=text/html; charset=utf-8
but not effect 8((
__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: New Country Language

2004-08-21 Thread Shinsuke SUGAYA
Since the resouce bundle is cached, I think you need to restart tomcat.
Please see JetspeedLocalizationService and TurbineLocalizationService.
Thanks,
 shinsuke
Raghdan Rabah wrote:
Do I need to rebuild jetspeed and restart TOMCAT every time I change any 
character on that JetspeedLocalization_LANG.properties file?

Or is there any runtime method to update?
Regards
On Fri, 20 Aug 2004 21:02:04 +0900, Shinsuke SUGAYA wrote
Hi,
Raghdan Rabah wrote:
Hello,
Kindly, can you provide good example; 
or where can I find one like JetspeedLocalization_LANG.properties
You can find the following location ;)

src/java/org/apache/jetspeed/modules/localization/JetspeedLocalization_??.pro
perties
Thanks,
 shinsuke

Regards
On Fri, 20 Aug 2004 07:25:48 +0900, Shinsuke SUGAYA wrote

Raghdan Rabah wrote:

Hello,
I have the followings:
1- What are the detailed steps in order to 
add a language to Change language portlet ? 
and how to define its dictionary? Like Russian.
- update changeLanguage.vm
- create JetspeedLocalization_LANG.properties

2- Change language portlet is using Velocity coding, 
is there any JSP Change language portlet?
I think, no.

3- Also, how to define new country?
- create JetspeedLocalization_LANG.properties
Thanks,
shinsuke

Any help in those points?
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: New Country Language

2004-08-20 Thread Shinsuke SUGAYA
Hi,
Raghdan Rabah wrote:
Hello,
Kindly, can you provide good example; 
or where can I find one like JetspeedLocalization_LANG.properties
You can find the following location ;)
src/java/org/apache/jetspeed/modules/localization/JetspeedLocalization_??.properties
Thanks,
 shinsuke
Regards
On Fri, 20 Aug 2004 07:25:48 +0900, Shinsuke SUGAYA wrote
Raghdan Rabah wrote:
Hello,
I have the followings:
1- What are the detailed steps in order to 
add a language to Change language portlet ? 
and how to define its dictionary? Like Russian.
- update changeLanguage.vm
- create JetspeedLocalization_LANG.properties

2- Change language portlet is using Velocity coding, 
is there any JSP Change language portlet?
I think, no.

3- Also, how to define new country?
- create JetspeedLocalization_LANG.properties
Thanks,
 shinsuke

Any help in those points?
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: New Country Language

2004-08-19 Thread Shinsuke SUGAYA
Raghdan Rabah wrote:
Hello,
I have the followings:
1- What are the detailed steps in order to 
add a language to Change language portlet ? 
and how to define its dictionary? Like Russian.
- update changeLanguage.vm
- create JetspeedLocalization_LANG.properties
2- Change language portlet is using Velocity coding, 
is there any JSP Change language portlet?
I think, no.
3- Also, how to define new country?
- create JetspeedLocalization_LANG.properties
Thanks,
 shinsuke
Any help in those points?
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PostgreSQL bug

2004-07-28 Thread Shinsuke SUGAYA
Hi,
Mariusz Fitowski wrote:
Hello,

Jetspeed 1.5 has old commons-dbcp and commons-pool.
Please see JS1-484. In my environment(Linux), it
works fine by the fix!

I replaced these files in Tomcat and Jetspeed /lib  directories.
Don't work. While I try to add a new role there is a message: Entity
Name Already Exists. Please choose another unique, identifying name.
But role is added in turbine_role table, and no directory is created.
:-(. Sequence is working good. No turbine_role.objectdata is filled.
I did not see the error when adding a new role.
You may need to modify populate-postgres.sql.
FYI. I'm developing a portal server based on Tomcat,
Jetspeed(created by Jetspeed for Japanese project on
SourceForge.jp) and Postgres on SourceForge.jp,
and put the workspace to:
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/jetplume/jetplume/
Build Script: ./build.sh
Torque conf: ./src/conf/portal/Torque.properties
Populate Postgres: ./src/sql/populate-postgres.sql
Thanks,
 shinsuke
This is happened in Jetspeed 1.5  compiled by Maven.
__
GANBARE! NIPPON!
Yahoo! JAPAN¡¡JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PostgreSQL bug

2004-07-23 Thread Shinsuke SUGAYA
Hi,
Jetspeed 1.5 has old commons-dbcp and commons-pool.
Please see JS1-484. In my environment(Linux), it
works fine by the fix!
Thanks,
 shinsuke
Mariusz Fitowski wrote:
Hello,
I'm using Jetspeed 1.5 (both on Linux and Windows XP Pro) with
PostgreSQL 7.4. I noticed a bug: no directory is created for new
created role, group or user.
When I use HypersonicSQL - it works great, with PostgreSQL - don't.
There is not any information on console or in *.log files.
This situation occur in compiled by Maven Jetspeed 1.5 and WAR
wersion.
Any ideas to solve this problem?
__
GANBARE! NIPPON!
Yahoo! JAPAN¡¡JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: localisation

2004-07-01 Thread Shinsuke SUGAYA
Loreno F. de Oliveira wrote:
Hello, I´m in troubles trying to change the localization file. First, 
when a change the language letters in the TurbineResources.properties to :

locale.default.bundles=org.apache.jetspeed.modules.localization.JetspeedLocalization 

locale.default.language=pt
locale.default.country=US
nothing changes in the iterface. Doesn´t  matter which letters I put 
there, always the language used is english. Does anybody knows what is 
the problem??
Please try to set browser's preferred language to pt.
Regards,
 shinsuke

Also, is there a better jetspeed tutorial then the one in the jetspeed 
page?? That tutorias has no enough information about how to customize 
the portal. For example, if I´m creating a portal for my company, should 
I use the binary distribution or the source??

[]´s
Loreno
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
http://bb.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: localisation

2004-07-01 Thread Shinsuke SUGAYA
Loreno F. de Oliveira wrote:
Ok, but htere is two problems in this solution. First, I can´t ask all 
my portal users to change their browsers configuration. Second, what I 
really need is to alter some messages displayed in some places.
I think it's a general method. So, the localized browser has proper language
as default. For example, Japanese browser has ja by default. Using the
l10ned browser, user does not need to change it.
The poit is that I think jetspeed have localization problems. Since 
three day ago I´m, trying to alter messages in some pages and I can´t do 
it without change the .vm templates.
Some English messages are included in default .vm files, though you can create
l10n file. But these messages need to be i18ned, I believe. So, I'll
file a bug and submit a patch later. In Japanese Support for Jetspeed
project(Japanese only..), I have already fixed it. So, I'll submit the
same fix to jetspeed.
http://sourceforge.jp/projects/jetspeed-japan
Thanks,
 shinsuke

Does anybody has another ideia?? :-/
[]´s
Loreno
Shinsuke SUGAYA wrote:
Loreno F. de Oliveira wrote:
Hello, I´m in troubles trying to change the localization file. First, 
when a change the language letters in the TurbineResources.properties 
to :

locale.default.bundles=org.apache.jetspeed.modules.localization.JetspeedLocalization 

locale.default.language=pt
locale.default.country=US
nothing changes in the iterface. Doesn´t  matter which letters I put 
there, always the language used is english. Does anybody knows what 
is the problem??

Please try to set browser's preferred language to pt.
Regards,
 shinsuke

Also, is there a better jetspeed tutorial then the one in the 
jetspeed page?? That tutorias has no enough information about how to 
customize the portal. For example, if I´m creating a portal for my 
company, should I use the binary distribution or the source??

[]´s
Loreno
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
http://bb.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
http://bb.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Encoding problem

2004-06-03 Thread Shinsuke SUGAYA
Hi Chris,
Jetspeed1 uses the encoding by the following priorities.
 1. character-set parameter in media.xreg
 2. content.defaultencoding in JetspeedResources.properties
 3. UTF-8
please see media.xreg.
Thanks,
shinsuke
Floßmann Christoph wrote:
Hi folks!
The jetspeed default encoding is UTF-8 what causes some problems with my portlets (here in Germany we use some letters like üöä) 
How do I change the encoding to ISO-8859-1 by default?

Regards 
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
http://bb.yahoo.co.jp/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JetspeedLocalization_XX.properties ENCODING problem

2002-09-18 Thread Shinsuke SUGAYA

Hi,

 Hi there!
 
 As today I'm mysteriously unable to *SEARCH* in the jetspeed mail archive and I need 
to solve this think briefly I'm asking here.
 
 I wrote my own localized JetspeedLocalization_sk.properties file and put it in to 
right directory. I got my messages in the jsp page, so the file works. The problem is:
 1) When I read JetspeedLocalization_sk.properties in windows notepad, everithing 
looks ok (all special characters look ok).
 2) When I put text used in JetspeedLocalization_sk.properties file in to the html 
document, set the meta http-equiv=Content-Type content=text/html; 
charset=windows-1250 and wiev it, it works fine.
 3) BUT, when I wanna browse jetspeed (WEB-INF\templates\vm\layouts\html\defaut.vm) 
it comes with UTF-8 encoding and when I switch it in to windows-1250, almost all 
characters crashe at all.
 
 I tried to change some properties in TurbineResources and JetspeedResources.. but I 
can't get it work properly.
 Please tell me if you know, this is probably common problem:
 1) How should I encode my JetspeedLocalization_sk.properties file and set the /conf 
(which) files to get it work.

In Japanese properties file, I create it by native encoding
and convert from a native character to ASCII by native2ascii command. 

 2) Is a velocity templating services touching the encoding of templates..?

Please see the following comment:


Encoding configuration

 If you would like to use Multi-byte character, such as CJK characters, 
 you will need to modify the encoding parameters in:

  o jetspeed_home/WEB-INF/conf/JetspeedResources.properties:

content.defaultencoding=encoding

  o jetspeed_home/WEB-INF/conf/TurbineResources.properties:

services.VelocityService.input.encoding=encoding

 For examples, if you use UNIX in Japanese environment, encoding 
 will be UTF-8 or EUC-JP.



I think that it works if you use UTF-8...

Thanks,
 shinsuke

 
 Thank you very much.
 $kala.
 
 



__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]