Explicacin ppt - Jira - Sakai

mobdescriptiveΛογισμικό & κατασκευή λογ/κού

28 Οκτ 2013 (πριν από 3 χρόνια και 9 μήνες)

125 εμφανίσεις

BLOGGER

General: Not follows
http://bugs.sakaiproject.org/confluence/display/I18N/How+to+write+Internationalized
+Tools+in+Sakai

0.


Properties f
iles.

OK


1.

Keywords:

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(95):
<h:outputText value="Keywords:"/>

b.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(94): <h:outputText
value="Keywords:"/>

2.

Introdu
ce keywords separated by comma

a.

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
sakai
\
tools
\
blogger
\
PostEditionAbs
tractController.java(45): protected static final String
KEYWORDS_MESSAGE="Introduce keywords separated by comma";

3.

(22 y 24)

Here trouble is more complex.


We can’t compare strings in i18n code, becau
se sometimes can be PRIVATE and
another one PRIVADO…

Retouch:

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
sakai
\
tools
\
blogger
\
converters
\
VisibilityCo
nverter.java

and

a.

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
sakai
\
tools
\
blogger
\
PostEditionAbs
tractController.java(501):
result.add(new SelectItem(new
Integer(State.PRIVATE),"PRIVATE"));

b.

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
sakai
\
tools
\
blogger
\
PostListViewer
Controller.java(263): result.add(new SelectItem(new
Integer(State.PRIVATE),"PRIVATE"));

c.

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_scie
nce
\
sakai
\
tools
\
blogger
\
PostEditionAbs
tractController.java(502): result.add(new SelectItem(new
Integer(State.SITE),"SITE"));

d.

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
sakai
\
tools
\
blogger
\
PostListViewer
Controller.java(264): result.add(new SelectItem(new
Integer(S
tate.SITE),"SITE"));

e.

tool
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
sakai
\
tools
\
blogger
\
PostListViewer
Controller.java(262): result.add(new SelectItem(new Integer(4),"ALL"));



4.

Preview

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(177):
<h:commandButton action
="#{postCreateController.doPreview}"
value="Preview" onclick="javascript:buttonPressed='PREVIEW'; " />

b.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(176):
<h:commandButton action="#{postEditController.doPreview}"
value="Preview" onclick="javascript:
buttonPressed='PREVIEW';" />

5.

Current structure

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(181):
<sakai:group_box title="Current structure:">

b.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(180):
<sakai:group_box title="Current structure:">

6.

(
7,8,9)

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(117):
<t:panelTab id="tab0" label="Text">

b.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(125):
<t:panelTab id="tab1" label="Images" style="vertical
-
align:top">

c.

tool
\
src
\
webapp
\
sakai
-
blogge
r
-
tool
\
PostCreateView.jsp(141):
<t:panelTab id="tab2" label="Links">

d.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(159):
<t:panelTab id="tab3" label="Files">

e.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(114): <t:panelTab
id="tab0" label="Tex
t">

f.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(123): <t:panelTab
id="tab1" label="Images">

g.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(139): <t:panelTab
id="tab2" label="Links">

h.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(157): <t:
panelTab
id="tab3" label="Files">

10.

Add to Document

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(120):
<h:commandButton action="#{postCreateController.addParagraph}"
value="Add to document" onclick="javascript:desactivateVerify=true;"/>

b.

tool
\
src
\
web
app
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(137):
<h:commandButton action="#{postCreateController.addImage}"
value="Add to document" onclick="javascript:desactivateVerify=true;"/>

c.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(155):
<h:commandButton
action="#{postCreateController.addLink}" value="Add
to document" onclick="javascript:desactivateVerify=true;"/>

d.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(168):
<h:commandButton action="#{postCreateController.addFile}" value="Add
to document"
onclick="javascript:desactivateVerify=true;"/>

e.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(118):
<h:commandButton action="#{postEditController.addParagraph}"
value="Add to document" onclick="javascript:desactivateVerify=true;"/>

f.

tool
\
src
\
webapp
\
sa
kai
-
blogger
-
tool
\
PostEditView.jsp(135):
<h:commandButton action="#{postEditController.addImage}" value="Add
to document" onclick="javascript:desactivateVerify=true;"/>

g.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(153):
<h:commandButton action="#{po
stEditController.addLink}" value="Add to
document" onclick="javascript:desactivateVerify=true;"/>

h.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(167):
<h:commandButton action="#{postEditController.addFile}" value="Add to
document" onclick="javascrip
t:desactivateVerify=true;"/>


Other not in powerpoint:



Modifiy in document

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(121):
<h:commandButton action="#{postCreateController.modifyParagraph}"
value="Modifiy in document (index:
#{postCreateControll
er.currentElementIndex})"
rendered="#{postCreateController.showModifyParagraphButton}"
onclick="javascript:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(138):
<h:commandButton action="#{postCreateController.modifyImage}"

value="Modifiy in document (index:
#{postCreateController.currentElementIndex})"
rendered="#{postCreateController.showModifyImageButton}"
onclick="javascript:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(156):
<h:comman
dButton action="#{postCreateController.modifyLink}"
value="Modifiy in document (index:
#{postCreateController.currentElementIndex})"
rendered="#{postCreateController.showModifyLinkButton}"
onclick="javascript:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sak
ai
-
blogger
-
tool
\
PostCreateView.jsp(169):
<h:commandButton action="#{postCreateController.modifyFile}"
value="Modifiy in document (index:
#{postCreateController.currentElementIndex})"
rendered="#{postCreateController.showModifyFileButton}"
onclick="javascr
ipt:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(119):
<h:commandButton action="#{postEditController.modifyParagraph}"
value="Modifiy in document (index:
#{postEditController.currentElementIndex})"
rendered="#{postEditCont
roller.showModifyParagraphButton}"
onclick="javascript:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(136):
<h:commandButton action="#{postEditController.modifyImage}"
value="Modifiy in document (index:
#{postEditControlle
r.currentElementIndex})"
rendered="#{postEditController.showModifyImageButton}"
onclick="javascript:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(154):
<h:commandButton action="#{postEditController.modifyLink}"
value="Modi
fiy in document (index:
#{postEditController.currentElementIndex})"
rendered="#{postEditController.showModifyLinkButton}"
onclick="javascript:desactivateVerify=true;"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(168):
<h:commandButton action="#{p
ostEditController.modifyFile}"
value="Modifiy in document (index:
#{postEditController.currentElementIndex})"
rendered="#{postEditController.showModifyFileButton}"
onclick="javascript:desactivateVerify=true;"/>



11.

Reset document

a.

tool
\
src
\
webapp
\
sakai
-
blogg
er
-
tool
\
PostCreateView.jsp(122):
<h:commandButton action="" value="Reset editor" immediate="true"
onclick="javascript:desactivateVerify=true;"/>

b.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(120):
<h:commandButton action="" value="Reset editor" imme
diate="true"
onclick="javascript:desactivateVerify=true;"/>

12.

Image:

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(129):
<h:outputText value="Image:"></h:outputText>

b.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(127):
<h:outputText value="Ima
ge:"></h:outputText>



Image name:

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(127):
<h:outputText value="Image name:"
rendered="#{postCreateController.showModifyImageButton}"></h:output
Text>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(125
):
<h:outputText value="Image name:"
rendered="#{postEditController.showModifyImageButton}"></h:outputTe
xt>

13.

Description:

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(143):
<h:outputText value="Description:"></h:outputText>

b.

tool
\
src
\
webapp
\
sakai
-
b
logger
-
tool
\
PostEditView.jsp(141):
<h:outputText value="Description:"></h:outputText>


File name:

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(161):
<h:outputText value="File name:"
rendered="#{postCreateController.showModifyFileButton}"></h:outp
utTe
xt>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(159):
<h:outputText value="File name:"
rendered="#{postEditController.showModifyFileButton}"></h:outputText
>


14.

Problem with UTF encoding. Contact
darol
mar@upvnet.upv.es

15.


(16,17)

a.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(128): writer.write("Index");

b.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(133): writer.write("Element");

c.

js
fComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(138): writer.write("Commands");

d.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(216): writer.write("Link description:");

e.

jsfComponent
\
src
\
ja
va
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(224): writer.write("Link URL:");

f.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IOutputPost.java(89): writer.write("Keywords:");

g.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_scienc
e
\
jsf
\
components
\
blogger
\
U
IOutputPost.java(266): writer.write("Comments");

18.

(19)
Another more complex:

a.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(160): renderButton(writer,"Delete","Delete",elementIndex);

b.

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
U
IEditPost.java(156): renderButton(writer,"Edit","Edit",elementIndex);

But we must update
too
this:

jsfComponent
\
src
\
java
\
uk
\
ac
\
lancs
\
e_science
\
jsf
\
components
\
blogger
\
UIEditPost.java(248): if (requestM
ap.containsKey("Delete")){

In general we
probably

must update “public void decode(FacesContext
context)”

Because is using a lot of strings to compare…

20.


Probably own configuration error but maybe UTF error…

21.

First time you can see it, but if you edit then yo
u loose it… maybe own
configuration error…. I don’t know…

23.

See
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFPage7.html

..
Using
DateTimeConverter

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostListViewer.jsp(89):
<f:convertDateTime/>

25.

(26) Sakai:pager… We are going to i18n it directly in sakai:pager component

a.

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostListViewer.jsp(53): <sakai:pager

27.

Last entries

a.


tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
main.jsp
(39):
<sakai:instruction_message value="Last entries"/>


28. Others:




Abstract:

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostCreateView.jsp(97):
<h:outputText value="Abstract:"/>

o

tool
\
src
\
webapp
\
sakai
-
blogger
-
tool
\
PostEditView.jsp(96): <h:outputText
value="Abstr
act:"/>


Please revise if more…