Author: nico.ben
Date: 2009-11-23 15:25:21 -0500 (Mon, 23 Nov 2009)
New Revision: 5122
Modified:
doc/trunk/reference/it-IT/Author_Group.po
doc/trunk/reference/it-IT/Book_Info.po
doc/trunk/reference/it-IT/decorators.po
doc/trunk/reference/it-IT/dependencies.po
doc/trunk/reference/it-IT/ee.po
doc/trunk/reference/it-IT/environments.po
doc/trunk/reference/it-IT/events.po
doc/trunk/reference/it-IT/example.po
doc/trunk/reference/it-IT/extensions.po
doc/trunk/reference/it-IT/weldexamples.po
doc/trunk/reference/it-IT/xml.po
Log:
Italian translation
Modified: doc/trunk/reference/it-IT/Author_Group.po
===================================================================
--- doc/trunk/reference/it-IT/Author_Group.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/Author_Group.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-03-30 21:41+0100\n"
+"PO-Revision-Date: 2009-11-23 21:11+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -23,7 +23,7 @@
#: Author_Group.xml:8
#, no-c-format
msgid "JSR-299: Contexts and Dependency Injection Lead"
-msgstr ""
+msgstr "JSR-299: Contexts and Dependency Injection Lead"
#. Tag: author
#: Author_Group.xml:14
@@ -35,13 +35,13 @@
#: Author_Group.xml:17
#, no-c-format
msgid "Weld (JSR-299 RI) Lead"
-msgstr ""
+msgstr "Weld (JSR-299 RI) Lead"
#. Tag: author
#: Author_Group.xml:24
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<firstname>Dan</firstname>
<surname>Allen</surname>"
-msgstr "<firstname>David</firstname>
<surname>Allen</surname>"
+msgstr "<firstname>Dan</firstname>
<surname>Allen</surname>"
#. Tag: author
#: Author_Group.xml:31
@@ -56,7 +56,8 @@
msgstr "<firstname>Nicola</firstname>
<surname>Benaglia</surname>"
#. Tag: contrib
-#: Author_Group.xml:38 Author_Group.xml:67
+#: Author_Group.xml:38
+#: Author_Group.xml:67
#, no-c-format
msgid "Italian Translation"
msgstr "Traduzione italiana"
@@ -121,16 +122,14 @@
#~ msgstr ""
#~ "<jobtitle>JSR-299 specification lead</jobtitle> <orgname>Red
Hat "
#~ "Middleware LLC</orgname>"
-
#~ msgid ""
#~ "<jobtitle>Web Beans (JSR-299 Reference Implementation) lead
</jobtitle> "
#~ "<orgname>Red Hat Middleware LLC</orgname>"
#~ msgstr ""
#~ "<jobtitle>Web Beans (JSR-299 Reference Implementation) lead
</jobtitle> "
#~ "<orgname>Red Hat Middleware LLC</orgname>"
-
#~ msgid "Red Hat Middleware LLC"
#~ msgstr "Red Hat Middleware LLC"
-
#~ msgid "Kava Community"
#~ msgstr "Kava Community"
+
Modified: doc/trunk/reference/it-IT/Book_Info.po
===================================================================
--- doc/trunk/reference/it-IT/Book_Info.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/Book_Info.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-02-01 22:20+0100\n"
+"PO-Revision-Date: 2009-11-23 21:12+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -17,40 +17,32 @@
#: Book_Info.xml:4
#, no-c-format
msgid "Weld - JSR-299 Reference Implementation"
-msgstr ""
+msgstr "Weld - JSR-299 Implementazione di riferimento"
#. Tag: subtitle
#: Book_Info.xml:5
-#, fuzzy, no-c-format
-msgid ""
-"JSR-299: The new Java standard for dependency injection and contextual "
-"lifecycle management"
-msgstr ""
-"Il nuovo standard Java per la dependency injection e la gestione contestuale
"
-"dello stato"
+#, no-c-format
+msgid "JSR-299: The new Java standard for dependency injection and contextual
lifecycle management"
+msgstr "JSR-299: Il nuovo standard Java per la dependency injection e la gestione
contestuale del ciclo di vita"
#~ msgid "Web Beans: Java Contexts and Dependency Injection"
#~ msgstr "Web Beans: Contesti Java e Dependency Injection"
-
#~ msgid "Introduction to Web Beans"
#~ msgstr "Introduzione a Web Beans"
-
#~ msgid "<firstname>Gavin</firstname>
<surname>King</surname>"
#~ msgstr "<firstname>Gavin</firstname>
<surname>King</surname>"
-
#~ msgid ""
#~ "<jobtitle>Web Beans (JSR-299) specification lead</jobtitle>
<orgname>Red "
#~ "Hat Middleware LLC</orgname>"
#~ msgstr ""
#~ "<jobtitle>Responsabile della specifica di Web Beans
(JSR-299)</jobtitle> "
#~ "<orgname>Red Hat Middleware LLC</orgname>"
-
#~ msgid "<firstname>Pete</firstname>
<surname>Muir</surname>"
#~ msgstr "<firstname>Pete</firstname>
<surname>Muir</surname>"
-
#~ msgid ""
#~ "<jobtitle>Web Beans (JSR-299) Reference Implementation
lead</jobtitle> "
#~ "<orgname>Red Hat Middleware LLC</orgname>"
#~ msgstr ""
#~ "<jobtitle>Responsabile per l'implementazione della documentazione Web
"
#~ "Beans (JSR-299)</jobtitle> <orgname>Red Hat Middleware
LLC</orgname>"
+
Modified: doc/trunk/reference/it-IT/decorators.po
===================================================================
--- doc/trunk/reference/it-IT/decorators.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/decorators.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-02-11 21:50+0100\n"
+"PO-Revision-Date: 2009-11-23 21:13+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,47 +22,15 @@
#. Tag: para
#: decorators.xml:7
#, fuzzy, no-c-format
-msgid ""
-"Interceptors are a powerful way to capture and separate concerns which are "
-"<emphasis>orthogonal</emphasis> to the application (and type system).
Any "
-"interceptor is able to intercept invocations of any Java type. This makes "
-"them perfect for solving technical concerns such as transaction management, "
-"security and call logging. However, by nature, interceptors are unaware of "
-"the actual semantics of the events they intercept. Thus, interceptors aren't
"
-"an appropriate tool for separating business-related concerns."
-msgstr ""
-"Gli interceptor sono un potente modo per catturare e separare i concern
(N.d."
-"T. un concern è un particolare concetto o area di interesse) che sono "
-"<emphasis>ortogonali</emphasis> al sistema tipo. Qualsiasi interceptor
è "
-"capace di intercettare le invocazioni di qualsiasi tipo Java. Questo li "
-"rende perfetti per risolvere concern tecnici quali gestione delle "
-"transazioni e la sicurezza. Comunque, per natura, gli interceptor non sono "
-"consapevoli dell'attuale semantica degli eventi che intercettano. Quindi gli
"
-"interceptor non sono il giusto strumento per separare i concern di tipo "
-"business."
+msgid "Interceptors are a powerful way to capture and separate concerns which are
<emphasis>orthogonal</emphasis> to the application (and type system). Any
interceptor is able to intercept invocations of any Java type. This makes them perfect for
solving technical concerns such as transaction management, security and call logging.
However, by nature, interceptors are unaware of the actual semantics of the events they
intercept. Thus, interceptors aren't an appropriate tool for separating
business-related concerns."
+msgstr "Gli interceptor sono un potente modo per catturare e separare i concern
(N.d.T. un concern è un particolare concetto o area di interesse) che sono
<emphasis>ortogonali</emphasis> al sistema tipo. Qualsiasi interceptor è
capace di intercettare le invocazioni di qualsiasi tipo Java. Questo li rende perfetti per
risolvere concern tecnici quali gestione delle transazioni e la sicurezza. Comunque, per
natura, gli interceptor non sono consapevoli dell'attuale semantica degli eventi che
intercettano. Quindi gli interceptor non sono il giusto strumento per separare i concern
di tipo business."
# ...concerns that cut across many disparate types = ?
#. Tag: para
#: decorators.xml:15
#, fuzzy, no-c-format
-msgid ""
-"The reverse is true of <emphasis>decorators</emphasis>. A decorator
"
-"intercepts invocations only for a certain Java interface, and is therefore "
-"aware of all the semantics attached to that interface. Since decorators "
-"directly implement operations with business semantics, it makes them the "
-"perfect tool for modeling some kinds of business concerns. It also means "
-"that a decorator doesn't have the generality of an interceptor. Decorators
"
-"aren't able to solve technical concerns that cut across many disparate "
-"types. Interceptors and decorators, though similar in many ways, are "
-"complementary. Let's look at some cases where decorators fit the bill."
-msgstr ""
-"Il contrario è vero per i <emphasis>decoratori</emphasis>. Un
decoratore "
-"intercetta le invocazioni solamente per una certa interfaccia Java, e quindi
"
-"è consapevole della semantica legata a questa. Ciò rende i decoratori uno "
-"strumento perfetto per modellare alcuni tipi di concern di business. E "
-"significa pure che un decoratore non ha la generalità di un interceptor. I "
-"decoratori non sono capaci di risolvere i concern tecnici che agiscono per "
-"diversi tipi."
+msgid "The reverse is true of <emphasis>decorators</emphasis>. A
decorator intercepts invocations only for a certain Java interface, and is therefore aware
of all the semantics attached to that interface. Since decorators directly implement
operations with business semantics, it makes them the perfect tool for modeling some kinds
of business concerns. It also means that a decorator doesn't have the generality of an
interceptor. Decorators aren't able to solve technical concerns that cut across many
disparate types. Interceptors and decorators, though similar in many ways, are
complementary. Let's look at some cases where decorators fit the bill."
+msgstr "Il contrario è vero per i <emphasis>decoratori</emphasis>. Un
decoratore intercetta le invocazioni solamente per una certa interfaccia Java, e quindi è
consapevole della semantica legata a questa. Ciò rende i decoratori uno strumento perfetto
per modellare alcuni tipi di concern di business. E significa pure che un decoratore non
ha la generalità di un interceptor. I decoratori non sono capaci di risolvere i concern
tecnici che agiscono per diversi tipi."
#. Tag: para
#: decorators.xml:24
@@ -72,7 +40,7 @@
#. Tag: programlisting
#: decorators.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public interface Account {\n"
" public BigDecimal getBalance();\n"
@@ -82,39 +50,27 @@
"}]]>"
msgstr ""
"<![CDATA[public interface Account {\n"
-" public BigDecimal getBalance();\n"
-" public User getOwner();\n"
-" public void withdraw(BigDecimal amount);\n"
-" public void deposit(BigDecimal amount);\n"
+" public BigDecimal getBalance();\n"
+" public User getOwner();\n"
+" public void withdraw(BigDecimal amount);\n"
+" public void deposit(BigDecimal amount);\n"
"}]]>"
#. Tag: para
#: decorators.xml:28
#, fuzzy, no-c-format
-msgid ""
-"Several different beans in our system implement the
<literal>Account</"
-"literal> interface. However, we have a common legal requirement that; for
"
-"any kind of account, large transactions must be recorded by the system in a "
-"special log. This is a perfect job for a decorator."
-msgstr ""
-"Parecchi Web Beans del nostro sistema implementano l'interfaccia "
-"<literal>Account</literal>. Abbiamo come comune requisito legale, per
ogni "
-"tipo di account, che le transazioni lunghe vengano registrate dal sistema in
"
-"uno speciale log. Questo è un lavoro perfetto per un decoratore."
+msgid "Several different beans in our system implement the
<literal>Account</literal> interface. However, we have a common legal
requirement that; for any kind of account, large transactions must be recorded by the
system in a special log. This is a perfect job for a decorator."
+msgstr "Parecchi Web Beans del nostro sistema implementano l'interfaccia
<literal>Account</literal>. Abbiamo come comune requisito legale, per ogni
tipo di account, che le transazioni lunghe vengano registrate dal sistema in uno speciale
log. Questo è un lavoro perfetto per un decoratore."
#. Tag: para
#: decorators.xml:34
#, fuzzy, no-c-format
-msgid ""
-"A decorator is a bean (possibly even an abstract class) that implements the "
-"type it decorates and is annotated
<literal>(a)Decorator</literal>."
-msgstr ""
-"Un decorator è un semplice Web Beans che implementa il tipo che decora ed è "
-"annotato con <literal>(a)Decorator</literal>.\""
+msgid "A decorator is a bean (possibly even an abstract class) that implements the
type it decorates and is annotated <literal>(a)Decorator</literal>."
+msgstr "Un decorator è un semplice Web Beans che implementa il tipo che decora ed è
annotato con <literal>(a)Decorator</literal>.\""
#. Tag: programlisting
#: decorators.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Decorator\n"
"public abstract class LargeTransactionDecorator\n"
@@ -122,21 +78,21 @@
" ...\n"
"}]]>"
msgstr ""
-"<![CDATA[<Decorators>\n"
-" <myapp:LargeTransactionDecorator/>\n"
-"</Decorators>]]>"
+"<![CDATA[@Decorator\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: decorators.xml:41
#, no-c-format
-msgid ""
-"The decorator implements the methods of the decorated type that it wants to "
-"intercept."
+msgid "The decorator implements the methods of the decorated type that it wants to
intercept."
msgstr ""
#. Tag: programlisting
#: decorators.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Decorator\n"
"public abstract class LargeTransactionDecorator\n"
@@ -155,66 +111,43 @@
"}]]>"
msgstr ""
"<![CDATA[@Decorator\n"
-"public abstract class LargeTransactionDecorator \n"
-" implements Account {\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" @Inject @Delegate @Any Account account;\n"
+"\n"
+" @PersistenceContext EntityManager em;\n"
" \n"
-" @Decorates Account account;\n"
+" public void withdraw(BigDecimal amount) {\n"
+" ...\n"
+" }\n"
" \n"
-" @PersistenceContext EntityManager em;\n"
-" \n"
-" public void withdraw(BigDecimal amount) {\n"
-" account.withdraw(amount);\n"
-" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
-" em.persist( new LoggedWithdrawl(amount) );\n"
-" }\n"
-" }\n"
-" \n"
-" public void deposit(BigDecimal amount);\n"
-" account.deposit(amount);\n"
-" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
-" em.persist( new LoggedDeposit(amount) );\n"
-" }\n"
-" }\n"
-" \n"
+" public void deposit(BigDecimal amount);\n"
+" ...\n"
+" }\n"
"}]]>"
#. Tag: para
#: decorators.xml:47
#, fuzzy, no-c-format
-msgid ""
-"Unlike other beans, a decorator may be an abstract class. Therefore, if "
-"there's nothing special the decorator needs to do for a particular method of
"
-"the decorated interface, you don't need to implement that method."
-msgstr ""
-"Diversamente dai semplici Web Beans, un decoratore può essere una classe "
-"astratta. Se un decoratore non ha niente da fare per un particolare metodo, "
-"allora non occorre implementare quel metodo."
+msgid "Unlike other beans, a decorator may be an abstract class. Therefore, if
there's nothing special the decorator needs to do for a particular method of the
decorated interface, you don't need to implement that method."
+msgstr "Diversamente dai semplici Web Beans, un decoratore può essere una classe
astratta. Se un decoratore non ha niente da fare per un particolare metodo, allora non
occorre implementare quel metodo."
#. Tag: para
#: decorators.xml:52
#, fuzzy, no-c-format
-msgid ""
-"Interceptors for a method are called before decorators that apply to the "
-"method."
-msgstr ""
-"Gli interceptor per un metodo sono chiamati prima dei decoratori che vengono
"
-"applicati a tali metodo."
+msgid "Interceptors for a method are called before decorators that apply to the
method."
+msgstr "Gli interceptor per un metodo sono chiamati prima dei decoratori che vengono
applicati a tali metodo."
#. Tag: title
#: decorators.xml:57
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Delegate object"
-msgstr "Attributi delegate"
+msgstr "Oggetto delegate"
#. Tag: para
#: decorators.xml:59
#, no-c-format
-msgid ""
-"Decorators have a special injection point, called the <emphasis>delegate
"
-"injection point</emphasis>, with the same type as the beans they decorate,
"
-"and the annotation <literal>@Delegate</literal>. There must be exactly
one "
-"delegate injection point, which can be a constructor parameter, initializer "
-"method parameter or injected field."
+msgid "Decorators have a special injection point, called the
<emphasis>delegate injection point</emphasis>, with the same type as the beans
they decorate, and the annotation <literal>@Delegate</literal>. There must be
exactly one delegate injection point, which can be a constructor parameter, initializer
method parameter or injected field."
msgstr ""
#. Tag: programlisting
@@ -228,6 +161,12 @@
" ...\n"
"}]]>"
msgstr ""
+"<![CDATA[@Decorator\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" @Inject @Delegate @Any Account account;\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: decorators.xml:67
@@ -245,59 +184,43 @@
#: decorators.xml:74
#, fuzzy, no-c-format
msgid "has all qualifiers that are declared at the delegate injection point."
-msgstr ""
-"ha tutti i tipi di binding che sono dichiarati dall'attributo delegate."
+msgstr "ha tutti i tipi di binding che sono dichiarati dall'attributo
delegate."
#. Tag: para
#: decorators.xml:78
#, fuzzy, no-c-format
-msgid ""
-"This delegate injection point specifies that the decorator is bound to all "
-"beans that implement <literal>Account</literal>:"
-msgstr ""
-"Quest'attributo delegate specifica che ildecorator è legao a tutti i Web
"
-"Beans che implementano <literal>Account</literal>:"
+msgid "This delegate injection point specifies that the decorator is bound to all
beans that implement <literal>Account</literal>:"
+msgstr "Quest'attributo delegate specifica che ildecorator è legao a tutti i Web
Beans che implementano <literal>Account</literal>:"
#. Tag: programlisting
#: decorators.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Delegate @Any Account account;]]>"
-msgstr "<![CDATA[@Decorates Account account;]]>"
+msgstr "<![CDATA[@Inject @Delegate @Any Account account;]]>"
# E' corretto tradurre BOUND con LEGATO in questo particolare contesto?
# ....rivedere alcune frasi sopra.
#. Tag: para
#: decorators.xml:85
#, fuzzy, no-c-format
-msgid ""
-"A delegate injection point may specify any number of qualifier annotations. "
-"The decorator will only be bound to beans with the same qualifiers."
-msgstr ""
-"Un attributo delegato può specificare un'annotazione di binding. E quindi il
"
-"decoratore verrà associato a Web Beans con lo stesso binding."
+msgid "A delegate injection point may specify any number of qualifier annotations.
The decorator will only be bound to beans with the same qualifiers."
+msgstr "Un attributo delegato può specificare un'annotazione di binding. E
quindi il decoratore verrà associato a Web Beans con lo stesso binding."
#. Tag: programlisting
#: decorators.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Delegate @Foreign Account account;]]>"
-msgstr "<![CDATA[@Decorates @Foreign Account account;]]>"
+msgstr "<![CDATA[@Inject @Delegate @Foreign Account account;]]>"
#. Tag: para
#: decorators.xml:92
#, fuzzy, no-c-format
-msgid ""
-"The decorator may invoke the delegate object, which has much the same effect
"
-"as calling <literal>InvocationContext.proceed()</literal> from an
"
-"interceptor. The main difference is that the decorator can invoke "
-"<emphasis>any</emphasis> business method on the delegate object."
-msgstr ""
-"Il decoratore può invocare l'attributo delegate, il ché ha lo stesso effetto
"
-"come chiamare <literal>InvocationContext.proceed()</literal> da un
"
-"interceptor."
+msgid "The decorator may invoke the delegate object, which has much the same effect
as calling <literal>InvocationContext.proceed()</literal> from an interceptor.
The main difference is that the decorator can invoke <emphasis>any</emphasis>
business method on the delegate object."
+msgstr "Il decoratore può invocare l'attributo delegate, il ché ha lo stesso
effetto come chiamare <literal>InvocationContext.proceed()</literal> da un
interceptor."
#. Tag: programlisting
#: decorators.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Decorator\n"
"public abstract class LargeTransactionDecorator\n"
@@ -322,27 +245,25 @@
"}]]>"
msgstr ""
"<![CDATA[@Decorator\n"
-"public abstract class LargeTransactionDecorator \n"
-" implements Account {\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" @Inject @Delegate @Any Account account;\n"
+"\n"
+" @PersistenceContext EntityManager em;\n"
" \n"
-" @Decorates Account account;\n"
+" public void withdraw(BigDecimal amount) {\n"
+" account.withdraw(amount);\n"
+" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
+" em.persist( new LoggedWithdrawl(amount) );\n"
+" }\n"
+" }\n"
" \n"
-" @PersistenceContext EntityManager em;\n"
-" \n"
-" public void withdraw(BigDecimal amount) {\n"
-" account.withdraw(amount);\n"
-" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
-" em.persist( new LoggedWithdrawl(amount) );\n"
-" }\n"
-" }\n"
-" \n"
-" public void deposit(BigDecimal amount);\n"
-" account.deposit(amount);\n"
-" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
-" em.persist( new LoggedDeposit(amount) );\n"
-" }\n"
-" }\n"
-" \n"
+" public void deposit(BigDecimal amount);\n"
+" account.deposit(amount);\n"
+" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
+" em.persist( new LoggedDeposit(amount) );\n"
+" }\n"
+" }\n"
"}]]>"
#. Tag: title
@@ -354,10 +275,7 @@
#. Tag: para
#: decorators.xml:105
#, no-c-format
-msgid ""
-"By default, all decorators are disabled. We need to
<emphasis>enable</"
-"emphasis> our decorator in the <literal>beans.xml</literal>
descriptor of a "
-"bean archive. This activation only applies to the beans in that archive."
+msgid "By default, all decorators are disabled. We need to
<emphasis>enable</emphasis> our decorator in the
<literal>beans.xml</literal> descriptor of a bean archive. This activation
only applies to the beans in that archive."
msgstr ""
#. Tag: programlisting
@@ -375,36 +293,35 @@
" </decorators>\n"
"</beans>]]>"
msgstr ""
+"<![CDATA[<beans\n"
+"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+"
http://java.sun.com/xml/ns/javaee\n"
+"
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n"
+" <decorators>\n"
+"
<class>org.mycompany.myapp.LargeTransactionDecorator</class>\n"
+" </decorators>\n"
+"</beans>]]>"
# Rivedere la frase?
#. Tag: para
#: decorators.xml:113
#, fuzzy, no-c-format
-msgid ""
-"This declaration serves the same purpose for decorators that the "
-"<literal><interceptors></literal> declaration serves for
interceptors:"
-msgstr ""
-"Per i decoratori questa dichiarazione provvede alle stesse finalità di "
-"quanto la dichiarazione <literal><Interceptors></literal>
fa per gli "
-"interceptor."
+msgid "This declaration serves the same purpose for decorators that the
<literal><interceptors></literal> declaration serves for
interceptors:"
+msgstr "Per i decoratori questa dichiarazione provvede alle stesse finalità di
quanto la dichiarazione <literal><Interceptors></literal> fa per
gli interceptor."
#. Tag: para
#: decorators.xml:120
#, no-c-format
-msgid ""
-"it enables us to specify a total ordering for all decorators in our system, "
-"ensuring deterministic behavior, and"
-msgstr ""
-"Consente di specificare un ordinamento totale per tutti i decoratori del "
-"sistema, assicurando un comportamento deterministico, e"
+msgid "it enables us to specify a total ordering for all decorators in our system,
ensuring deterministic behavior, and"
+msgstr "Consente di specificare un ordinamento totale per tutti i decoratori del
sistema, assicurando un comportamento deterministico, e"
#. Tag: para
#: decorators.xml:126
#, no-c-format
msgid "it lets us enable or disable decorator classes at deployment time."
-msgstr ""
-"consente di abilitare o disabilitare le classi decorato durante la fase di "
-"deploy."
+msgstr "consente di abilitare o disabilitare le classi decorato durante la fase di
deploy."
#~ msgid ""
#~ "All decorators have a <emphasis>delegate attribute</emphasis>. The
type "
@@ -416,10 +333,10 @@
#~ "tipo ed i tipi di binding dell'attributo delegato determinano a quali Web
"
#~ "Beans è legato il decoratore. Il tipo di attributo delegato deve "
#~ "implementare o estendere tutte le interfacce implementate dal decoratore."
-
#~ msgid ""
#~ "We need to <emphasis>enable</emphasis> our decorator in
<literal>web-"
#~ "beans.xml</literal>."
#~ msgstr ""
#~ "Occorre <emphasis>abilitare</emphasis> il decoratore in
<literal>web-"
#~ "beans.xml</literal>."
+
Modified: doc/trunk/reference/it-IT/dependencies.po
===================================================================
--- doc/trunk/reference/it-IT/dependencies.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/dependencies.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,8 +6,8 @@
"Project-Id-Version: Weld_-_JSR-299_Reference_Implementation VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-11-11 15:00+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2009-11-23 21:15+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,118 +17,122 @@
#: dependencies.xml:5
#, no-c-format
msgid "Weld project dependencies"
-msgstr ""
+msgstr "Dipendenze del progetto Weld"
#. Tag: para
#: dependencies.xml:7
#, no-c-format
-msgid ""
-"This section lists compile-time and runtime dependencies for Weld. This list
"
-"is currently maintained in the <ulink
src=\"https://jira.jboss.org/jira/"
-"browse/WELD-222\">WELD-222</ulink> issue report as well as here in
this "
-"appendix."
-msgstr ""
+msgid "This section lists compile-time and runtime dependencies for Weld. This list
is currently maintained in the <ulink
src=\"https://jira.jboss.org/jira/browse/WELD-222\">WELD-222...
issue report as well as here in this appendix."
+msgstr "Questa sezione elenca le dipendenze a compile-time e a run-tim di Weld.
Questa lista è attualmente mantenuta nel report <ulink
src=\"https://jira.jboss.org/jira/browse/WELD-222\">WELD-222...
così comein quest'appendice."
#. Tag: title
#: dependencies.xml:13
#, no-c-format
msgid "Artifacts coming from Sun"
-msgstr ""
+msgstr "Artifact provenienti da Sun"
#. Tag: para
-#: dependencies.xml:21 dependencies.xml:110
+#: dependencies.xml:21
+#: dependencies.xml:110
#, no-c-format
msgid "Artifact"
-msgstr ""
+msgstr "Artifact"
#. Tag: para
-#: dependencies.xml:24 dependencies.xml:113
+#: dependencies.xml:24
+#: dependencies.xml:113
#, no-c-format
msgid "Scope"
-msgstr ""
+msgstr "Scope"
#. Tag: literal
#: dependencies.xml:33
#, no-c-format
msgid "javax.ejb:ejb-api:3.1"
-msgstr ""
+msgstr "javax.ejb:ejb-api:3.1"
#. Tag: para
-#: dependencies.xml:36 dependencies.xml:44 dependencies.xml:52
-#: dependencies.xml:60 dependencies.xml:68 dependencies.xml:76
+#: dependencies.xml:36
+#: dependencies.xml:44
+#: dependencies.xml:52
+#: dependencies.xml:60
+#: dependencies.xml:68
+#: dependencies.xml:76
#: dependencies.xml:128
#, no-c-format
msgid "compile"
-msgstr ""
+msgstr "compile"
#. Tag: literal
#: dependencies.xml:41
#, no-c-format
msgid "javax.faces:jsf-api:2.0"
-msgstr ""
+msgstr "javax.faces:jsf-api:2.0"
#. Tag: literal
#: dependencies.xml:49
#, no-c-format
msgid "javax.el:el-api:2.1"
-msgstr ""
+msgstr "javax.el:el-api:2.1"
#. Tag: literal
#: dependencies.xml:57
#, no-c-format
msgid "javax.persistence:persistence-api:2.0"
-msgstr ""
+msgstr "javax.persistence:persistence-api:2.0"
#. Tag: literal
#: dependencies.xml:65
#, no-c-format
msgid "javax.servlet:servlet-api:3.0"
-msgstr ""
+msgstr "javax.servlet:servlet-api:3.0"
#. Tag: literal
#: dependencies.xml:73
#, no-c-format
msgid "javax.interceptor:interceptor-api:1.1"
-msgstr ""
+msgstr "javax.interceptor:interceptor-api:1.1"
#. Tag: literal
#: dependencies.xml:81
#, no-c-format
msgid "org.glasfish.web:el-impl:2.1.2"
-msgstr ""
+msgstr "org.glasfish.web:el-impl:2.1.2"
#. Tag: para
-#: dependencies.xml:84 dependencies.xml:92
+#: dependencies.xml:84
+#: dependencies.xml:92
#, no-c-format
msgid "runtime"
-msgstr ""
+msgstr "runtime"
#. Tag: literal
#: dependencies.xml:89
#, no-c-format
msgid "javax.faces:jsf-impl:2.0.x"
-msgstr ""
+msgstr "javax.faces:jsf-impl:2.0.x"
#. Tag: title
#: dependencies.xml:101
#, no-c-format
msgid "Artifacts coming from Hibernate"
-msgstr ""
+msgstr "Artifact provenienti da Hibernate"
#. Tag: para
#: dependencies.xml:116
#, no-c-format
msgid "Notes"
-msgstr ""
+msgstr "Note"
#. Tag: literal
#: dependencies.xml:125
#, no-c-format
msgid "javax.validation:validation-api"
-msgstr ""
+msgstr "javax.validation:validation-api"
#. Tag: ulink
#: dependencies.xml:131
#, no-c-format
msgid "BVAL-193"
-msgstr ""
+msgstr "BVAL-193"
+
Modified: doc/trunk/reference/it-IT/ee.po
===================================================================
--- doc/trunk/reference/it-IT/ee.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/ee.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-01-10 15:21+0100\n"
+"PO-Revision-Date: 2009-11-23 21:16+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,18 +22,8 @@
#. Tag: para
#: ee.xml:6
#, fuzzy, no-c-format
-msgid ""
-"CDI is fully integrated into the Java EE environment. Beans have access to "
-"Java EE resources and JPA persistence contexts. They may be used in Unified "
-"EL expressions in JSF and JSP pages. They may even be injected into other "
-"platform components, such as servlets and message-driven Beans, which are "
-"not beans themselves."
-msgstr ""
-"Web Beans è pienamente integrata nell'ambiente Java EE. Web Beans ha accesso
"
-"alle risorse Java EE ed ai contesti di persistenza JPA. I Web Beans possono "
-"essere usati in espressioni Unified EL dentro pagine JSF e JSP. Possono "
-"anche essere iniettati negli oggetti, come Servlet e Message-Driven Beans, "
-"che non sono Web Beans."
+msgid "CDI is fully integrated into the Java EE environment. Beans have access to
Java EE resources and JPA persistence contexts. They may be used in Unified EL expressions
in JSF and JSP pages. They may even be injected into other platform components, such as
servlets and message-driven Beans, which are not beans themselves."
+msgstr "Web Beans è pienamente integrata nell'ambiente Java EE. Web Beans ha
accesso alle risorse Java EE ed ai contesti di persistenza JPA. I Web Beans possono essere
usati in espressioni Unified EL dentro pagine JSF e JSP. Possono anche essere iniettati
negli oggetti, come Servlet e Message-Driven Beans, che non sono Web Beans."
#. Tag: title
#: ee.xml:13
@@ -44,9 +34,7 @@
#. Tag: para
#: ee.xml:15
#, no-c-format
-msgid ""
-"In the Java EE environment, the container provides the following built-in "
-"beans, all with the qualifier <literal>@Default</literal>:"
+msgid "In the Java EE environment, the container provides the following built-in
beans, all with the qualifier <literal>@Default</literal>:"
msgstr ""
#. Tag: para
@@ -58,24 +46,19 @@
#. Tag: para
#: ee.xml:27
#, no-c-format
-msgid ""
-"a <literal>Principal</literal> representing the current caller
identity,"
+msgid "a <literal>Principal</literal> representing the current caller
identity,"
msgstr ""
#. Tag: para
#: ee.xml:32
#, no-c-format
-msgid ""
-"the default <ulink
src=\"http://jcp.org/en/jsr/detail?id=303\">Bean
"
-"Validation</ulink> <literal>ValidationFactory</literal>,
and"
+msgid "the default <ulink
src=\"http://jcp.org/en/jsr/detail?id=303\">Bean Validation</ulink>
<literal>ValidationFactory</literal>, and"
msgstr ""
#. Tag: para
#: ee.xml:38
#, no-c-format
-msgid ""
-"a <literal>Validator</literal> for the default
<literal>ValidationFactory</"
-"literal>."
+msgid "a <literal>Validator</literal> for the default
<literal>ValidationFactory</literal>."
msgstr ""
#. Tag: title
@@ -87,44 +70,30 @@
#. Tag: para
#: ee.xml:49
#, fuzzy, no-c-format
-msgid ""
-"All managed beans may take advantage of Java EE component environment "
-"injection using <literal>@Resource</literal>,
<literal>@EJB</literal>, "
-"<literal>@PersistenceContext</literal>,
<literal>@PeristenceUnit</literal> "
-"and <literal>@WebServiceRef</literal>. We've already seen a couple
of "
-"examples of this, though we didn't pay much attention at the time:"
-msgstr ""
-"Tutti i Web Beans sia semplici che enterprise si avvantaggiano della "
-"dependency injection di Java EE usando <literal>@Resource</literal>,
"
-"<literal>@EJB</literal> e
<literal>@PersistenceContext</literal>. Abbiamo "
-"già visto un paio di esempi a riguardo, sebbene non ci siamo soffermati "
-"molto a suo tempo."
+msgid "All managed beans may take advantage of Java EE component environment
injection using <literal>@Resource</literal>,
<literal>@EJB</literal>, <literal>@PersistenceContext</literal>,
<literal>@PeristenceUnit</literal> and
<literal>@WebServiceRef</literal>. We've already seen a couple of examples
of this, though we didn't pay much attention at the time:"
+msgstr "Tutti i Web Beans sia semplici che enterprise si avvantaggiano della
dependency injection di Java EE usando <literal>@Resource</literal>,
<literal>@EJB</literal> e <literal>@PersistenceContext</literal>.
Abbiamo già visto un paio di esempi a riguardo, sebbene non ci siamo soffermati molto a
suo tempo."
#. Tag: programlisting
#: ee.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
" @Resource UserTransaction transaction;\n"
"\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"throws Exception { ... }\n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) throws
Exception { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
+" @Resource UserTransaction transaction;\n"
"\n"
-" @Resource Transaction transaction;\n"
-"\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
-" \n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) throws
Exception { ... }\n"
"}]]>"
#. Tag: programlisting
#: ee.xml:58
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@SessionScoped\n"
"public class Login implements Serializable {\n"
@@ -134,36 +103,22 @@
"}]]>"
msgstr ""
"<![CDATA[@SessionScoped\n"
-"public class Login {\n"
-"\n"
-" @Current Credentials credentials;\n"
-" @PersistenceContext EntityManager userDatabase;\n"
-" \n"
+"public class Login implements Serializable {\n"
+" @Inject Credentials credentials;\n"
+" @PersistenceContext EntityManager userDatabase;\n"
" ...\n"
-"\n"
"}]]>"
#. Tag: para
#: ee.xml:60
#, fuzzy, no-c-format
-msgid ""
-"The Java EE <literal>@PostConstruct</literal> and
<literal>@PreDestroy</"
-"literal> callbacks are also supported for all managed beans. The "
-"<literal>@PostConstruct</literal> method is called after
<emphasis>all</"
-"emphasis> injection has been performed."
-msgstr ""
-"Le chiamate Java EE <literal>@PostConstruct</literal> e "
-"<literal>@PreDestroy</literal> vengono anche supportate per tutti i Web
"
-"Beans (semplici e enterprise). Il metodo
<literal>@PostConstruct</literal> "
-"viene chiamato dopo che <emphasis>tutta</emphasis> l'injection è
stata "
-"eseguita."
+msgid "The Java EE <literal>@PostConstruct</literal> and
<literal>@PreDestroy</literal> callbacks are also supported for all managed
beans. The <literal>@PostConstruct</literal> method is called after
<emphasis>all</emphasis> injection has been performed."
+msgstr "Le chiamate Java EE <literal>@PostConstruct</literal> e
<literal>@PreDestroy</literal> vengono anche supportate per tutti i Web Beans
(semplici e enterprise). Il metodo <literal>@PostConstruct</literal> viene
chiamato dopo che <emphasis>tutta</emphasis> l'injection è stata
eseguita."
#. Tag: para
#: ee.xml:66
#, no-c-format
-msgid ""
-"Of course, we advise that component environment injection be used to define "
-"CDI resources, and that typesafe injection be used in application code."
+msgid "Of course, we advise that component environment injection be used to define
CDI resources, and that typesafe injection be used in application code."
msgstr ""
#. Tag: title
@@ -175,25 +130,19 @@
#. Tag: para
#: ee.xml:76
#, fuzzy, no-c-format
-msgid ""
-"It's easy to use a bean from a servlet in Java EE 6. Simply inject the bean
"
-"using field or initializer method injection."
-msgstr ""
-"E' facile utilizzare i Web Beans da un Servlet in Java EE 6. Semplicemente
"
-"si inietti il Web Bean utilizzando l'injection del campo Web Bean o del "
-"metodo inizializzatore."
+msgid "It's easy to use a bean from a servlet in Java EE 6. Simply inject the
bean using field or initializer method injection."
+msgstr "E' facile utilizzare i Web Beans da un Servlet in Java EE 6.
Semplicemente si inietti il Web Bean utilizzando l'injection del campo Web Bean o del
metodo inizializzatore."
#. Tag: programlisting
#: ee.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class Login extends HttpServlet {\n"
" @Inject Credentials credentials;\n"
" @Inject Login login;\n"
"\n"
" @Override\n"
-" public void service(HttpServletRequest request, HttpServletResponse "
-"response)\n"
+" public void service(HttpServletRequest request, HttpServletResponse
response)\n"
" throws ServletException, IOException {\n"
"
credentials.setUsername(request.getParameter(\"username\")):\n"
"
credentials.setPassword(request.getParameter(\"password\")):\n"
@@ -208,40 +157,31 @@
" \n"
"}]]>"
msgstr ""
-"public class Login extends HttpServlet {\n"
+"<![CDATA[public class Login extends HttpServlet {\n"
+" @Inject Credentials credentials;\n"
+" @Inject Login login;\n"
"\n"
-" @Current Credentials credentials;\n"
-" @Current Login login;\n"
-"\n"
-" @Override\n"
-" public void service(HttpServletRequest request, HttpServletResponse "
-"response)\n"
-" throws ServletException, IOException {\n"
-" credentials.setUsername( request.getAttribute(\"username\")
):\n"
-" credentials.setPassword( request.getAttribute(\"password\")
):\n"
-" login.login();\n"
-" if ( login.isLoggedIn() ) {\n"
-" response.sendRedirect(\"/home.jsp\");\n"
-" }\n"
-" else {\n"
-" response.sendRedirect(\"/loginError.jsp\");\n"
-" }\n"
-" }\n"
+" @Override\n"
+" public void service(HttpServletRequest request, HttpServletResponse
response)\n"
+" throws ServletException, IOException {\n"
+"
credentials.setUsername(request.getParameter(\"username\")):\n"
+"
credentials.setPassword(request.getParameter(\"password\")):\n"
+" login.login();\n"
+" if ( login.isLoggedIn() ) {\n"
+" response.sendRedirect(\"/home.jsp\");\n"
+" }\n"
+" else {\n"
+" response.sendRedirect(\"/loginError.jsp\");\n"
+" }\n"
+" }\n"
" \n"
-"}"
+"}]]>"
#. Tag: para
#: ee.xml:83
#, fuzzy, no-c-format
-msgid ""
-"Since instances of servlets are shared across all incoming threads, the bean
"
-"client proxy takes care of routing method invocations from the servlet to "
-"the correct instances of <literal>Credentials</literal> and
<literal>Login</"
-"literal> for the current request and HTTP session."
-msgstr ""
-"Il client proxy Web Beans si occupa di instradare le invocazioni dei metodi "
-"da un Servlet alle corrette istanze di <literal>Credentials</literal> e
"
-"<literal>Login</literal> per la richiesta corrente e la sessione
HTTP."
+msgid "Since instances of servlets are shared across all incoming threads, the bean
client proxy takes care of routing method invocations from the servlet to the correct
instances of <literal>Credentials</literal> and
<literal>Login</literal> for the current request and HTTP session."
+msgstr "Il client proxy Web Beans si occupa di instradare le invocazioni dei metodi
da un Servlet alle corrette istanze di <literal>Credentials</literal> e
<literal>Login</literal> per la richiesta corrente e la sessione HTTP."
#. Tag: title
#: ee.xml:92
@@ -252,10 +192,7 @@
#. Tag: para
#: ee.xml:94
#, no-c-format
-msgid ""
-"CDI injection applies to all EJBs, even when they aren't managed beans. In
"
-"particular, you can use CDI injection in message-driven beans, which are by "
-"nature not contextual objects."
+msgid "CDI injection applies to all EJBs, even when they aren't managed beans.
In particular, you can use CDI injection in message-driven beans, which are by nature not
contextual objects."
msgstr ""
# Web Beans interceptor bindings =?
@@ -263,13 +200,11 @@
#: ee.xml:99
#, fuzzy, no-c-format
msgid "You can even use CDI interceptor bindings for message-driven Beans."
-msgstr ""
-"Si possono perfino associare degli interceptor Web Beans ai Message-Driven "
-"Beans."
+msgstr "Si possono perfino associare degli interceptor Web Beans ai Message-Driven
Beans."
#. Tag: programlisting
#: ee.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @MessageDriven\n"
"public class ProcessOrder implements MessageListener {\n"
@@ -281,32 +216,21 @@
" }\n"
"}]]>"
msgstr ""
-"@Transactional @MessageDriven\n"
+"<![CDATA[@Transactional @MessageDriven\n"
"public class ProcessOrder implements MessageListener {\n"
+" @Inject Inventory inventory;\n"
+" @PersistenceContext EntityManager em;\n"
"\n"
-" @Current Inventory inventory;\n"
-" @PersistenceContext EntityManager em;\n"
-"\n"
-" public void onMessage(Message message) {\n"
-" ...\n"
-" }\n"
-" \n"
-"}"
+" public void onMessage(Message message) {\n"
+" ...\n"
+" }\n"
+"}]]>"
#. Tag: para
#: ee.xml:103
#, fuzzy, no-c-format
-msgid ""
-"Please note that there is no session or conversation context available when "
-"a message is delivered to a message-driven bean. Only "
-"<literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</literal> "
-"beans are available."
-msgstr ""
-"Quindi ricevere i messaggi è veramente facile in ambiente Web Beans. Ma "
-"attenzione che non è disponibile alcun contesto di sessione o conversazione "
-"quando il messaggio viene consegnato al Message-Driven Bean. Solamente i Web
"
-"Beans <literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</"
-"literal> sono disponibili."
+msgid "Please note that there is no session or conversation context available when a
message is delivered to a message-driven bean. Only
<literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</literal> beans are available."
+msgstr "Quindi ricevere i messaggi è veramente facile in ambiente Web Beans. Ma
attenzione che non è disponibile alcun contesto di sessione o conversazione quando il
messaggio viene consegnato al Message-Driven Bean. Solamente i Web Beans
<literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</literal> sono disponibili."
#. Tag: para
#: ee.xml:109
@@ -323,33 +247,13 @@
#. Tag: para
#: ee.xml:118
#, no-c-format
-msgid ""
-"Sending messages using JMS can be quite complex, because of the number of "
-"different objects you need to deal with. For queues we have
<literal>Queue</"
-"literal>, <literal>QueueConnectionFactory</literal>, "
-"<literal>QueueConnection</literal>,
<literal>QueueSession</literal> and "
-"<literal>QueueSender</literal>. For topics we have
<literal>Topic</literal>, "
-"<literal>TopicConnectionFactory</literal>,
<literal>TopicConnection</"
-"literal>, <literal>TopicSession</literal> and
<literal>TopicPublisher</"
-"literal>. Each of these objects has its own lifecycle and threading model
"
-"that we need to worry about."
-msgstr ""
-"La spedizione dei messaggi usando JMS può essere abbastanza complessa, a "
-"causa del numero di oggetti differenti da trattare. Per le code si hanno "
-"<literal>Queue</literal>,
<literal>QueueConnectionFactory</literal>, "
-"<literal>QueueConnection</literal>,
<literal>QueueSession</literal> e "
-"<literal>QueueSender</literal>. Per i topic si hanno
<literal>Topic</"
-"literal>, <literal>TopicConnectionFactory</literal>, "
-"<literal>TopicConnection</literal>,
<literal>TopicSession</literal> e "
-"<literal>TopicPublisher</literal>. Ciascuno di questi oggetti ha il
proprio "
-"ciclo di vita e modello di thread di cui bisogna (pre)occuparsi."
+msgid "Sending messages using JMS can be quite complex, because of the number of
different objects you need to deal with. For queues we have
<literal>Queue</literal>,
<literal>QueueConnectionFactory</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> and
<literal>QueueSender</literal>. For topics we have
<literal>Topic</literal>,
<literal>TopicConnectionFactory</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> and
<literal>TopicPublisher</literal>. Each of these objects has its own lifecycle
and threading model that we need to worry about."
+msgstr "La spedizione dei messaggi usando JMS può essere abbastanza complessa, a
causa del numero di oggetti differenti da trattare. Per le code si hanno
<literal>Queue</literal>,
<literal>QueueConnectionFactory</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> e <literal>QueueSender</literal>.
Per i topic si hanno <literal>Topic</literal>,
<literal>TopicConnectionFactory</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> e
<literal>TopicPublisher</literal>. Ciascuno di questi oggetti ha il proprio
ciclo di vita e modello di thread di cui bisogna (pre)occuparsi."
#. Tag: para
#: ee.xml:127
#, no-c-format
-msgid ""
-"You can use producer fields and methods to prepare all of these resources "
-"for injection into a bean:"
+msgid "You can use producer fields and methods to prepare all of these resources for
injection into a bean:"
msgstr ""
#. Tag: programlisting
@@ -368,15 +272,13 @@
" return connectionFactory.createConnection();\n"
" }\n"
" \n"
-" public void closeOrderConnection(@Disposes @OrderConnection Connection "
-"connection)\n"
+" public void closeOrderConnection(@Disposes @OrderConnection Connection
connection)\n"
" throws JMSException {\n"
" connection.close();\n"
" }\n"
" \n"
" @Produces @OrderSession\n"
-" public Session createOrderSession(@OrderConnection Connection "
-"connection)\n"
+" public Session createOrderSession(@OrderConnection Connection
connection)\n"
" throws JMSException {\n"
" return connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n"
" }\n"
@@ -387,31 +289,66 @@
" }\n"
" \n"
" @Produces @OrderMessageProducer\n"
-" public MessageProducer createOrderMessageProducer(@OrderSession Session "
-"session)\n"
+" public MessageProducer createOrderMessageProducer(@OrderSession Session
session)\n"
" throws JMSException {\n"
" return session.createProducer(orderQueue);\n"
" }\n"
" \n"
-" public void closeOrderMessageProducer(@Disposes @OrderMessageProducer "
-"MessageProducer producer)\n"
+" public void closeOrderMessageProducer(@Disposes @OrderMessageProducer
MessageProducer producer)\n"
" throws JMSException {\n"
" producer.close();\n"
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[public class OrderResources {\n"
+" @Resource(name=\"jms/ConnectionFactory\")\n"
+" private ConnectionFactory connectionFactory;\n"
+" \n"
+" @Resource(name=\"jms/OrderQueue\")\n"
+" private Queue orderQueue;\n"
+" \n"
+" @Produces @OrderConnection\n"
+" public Connection createOrderConnection() throws JMSException {\n"
+" return connectionFactory.createConnection();\n"
+" }\n"
+" \n"
+" public void closeOrderConnection(@Disposes @OrderConnection Connection
connection)\n"
+" throws JMSException {\n"
+" connection.close();\n"
+" }\n"
+" \n"
+" @Produces @OrderSession\n"
+" public Session createOrderSession(@OrderConnection Connection
connection)\n"
+" throws JMSException {\n"
+" return connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n"
+" }\n"
+" \n"
+" public void closeOrderSession(@Disposes @OrderSession Session session)\n"
+" throws JMSException {\n"
+" session.close();\n"
+" }\n"
+" \n"
+" @Produces @OrderMessageProducer\n"
+" public MessageProducer createOrderMessageProducer(@OrderSession Session
session)\n"
+" throws JMSException {\n"
+" return session.createProducer(orderQueue);\n"
+" }\n"
+" \n"
+" public void closeOrderMessageProducer(@Disposes @OrderMessageProducer
MessageProducer producer)\n"
+" throws JMSException {\n"
+" producer.close();\n"
+" }\n"
+"}]]>"
#. Tag: para
#: ee.xml:133
#, no-c-format
-msgid ""
-"In this example, we can just inject the prepared
<literal>MessageProducer</"
-"literal>, <literal>Connection</literal> or
<literal>QueueSession</literal>:"
+msgid "In this example, we can just inject the prepared
<literal>MessageProducer</literal>, <literal>Connection</literal>
or <literal>QueueSession</literal>:"
msgstr ""
#. Tag: programlisting
#: ee.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject Order order;\n"
"@Inject @OrderMessageProducer MessageProducer producer;\n"
@@ -424,24 +361,22 @@
" producer.send(msg);\n"
"}]]>"
msgstr ""
-"@OrderProcessor QueueSender orderSender;\n"
-"@OrderProcessor QueueSession orderSession;\n"
+"<![CDATA[@Inject Order order;\n"
+"@Inject @OrderMessageProducer MessageProducer producer;\n"
+"@Inject @OrderSession QueueSession orderSession;\n"
"\n"
"public void sendMessage() {\n"
-" MapMessage msg = orderSession.createMapMessage();\n"
-" ...\n"
-" orderSender.send(msg);\n"
-"}"
+" MapMessage msg = orderSession.createMapMessage();\n"
+" msg.setLong(\"orderId\", order.getId());\n"
+" ...\n"
+" producer.send(msg);\n"
+"}]]>"
#. Tag: para
#: ee.xml:144
#, fuzzy, no-c-format
-msgid ""
-"The lifecycle of the injected JMS objects is completely controlled by the "
-"container."
-msgstr ""
-"Il ciclo di vita degli oggetti JMS iniettati è interamente controllato dal "
-"manager Web Bean."
+msgid "The lifecycle of the injected JMS objects is completely controlled by the
container."
+msgstr "Il ciclo di vita degli oggetti JMS iniettati è interamente controllato dal
manager Web Bean."
#. Tag: title
#: ee.xml:151
@@ -452,38 +387,14 @@
#. Tag: para
#: ee.xml:153
#, fuzzy, no-c-format
-msgid ""
-"CDI doesn't define any special deployment archive. You can package beans in
"
-"JARs, EJB-JARs or WARs—any deployment location in the application "
-"classpath. However, the archive must be a \"bean archive\". That means
each "
-"archive that contains beans <emphasis>must</emphasis> include a file
named "
-"<literal>beans.xml</literal> in the
<literal>META-INF</literal> directory of "
-"the classpath or <literal>WEB-INF</literal> directory of the web root
(for "
-"WAR archives). The file may be empty. Beans deployed in archives that do not
"
-"have a <literal>beans.xml</literal> file will not be available for use
in "
-"the application."
-msgstr ""
-"Web Beans non definisce nessuno archivio speciale per il deploy. Si può "
-"impacchettare i Web Beans in JAR, EJB-JAR o WAR — qualsiasi locazione
"
-"di deploy nel classpath dell'applicazione. Comunque ciascun archivio che
"
-"contiene Web Beans devi includere un file chiamato
<literal>web-beans.xml</"
-"literal> nella directory <literal>META-INF</literal> o
<literal>WEB-INF</"
-"literal>. Il file può essere vuoto. I Web Beans collocati negli archivi che
"
-"non hanno un file <literal>web-beans.xml</literal> non saranno
disponibili "
-"per l'uso nell'applicazione."
+msgid "CDI doesn't define any special deployment archive. You can package beans
in JARs, EJB-JARs or WARs—any deployment location in the application classpath.
However, the archive must be a \"bean archive\". That means each archive that
contains beans <emphasis>must</emphasis> include a file named
<literal>beans.xml</literal> in the <literal>META-INF</literal>
directory of the classpath or <literal>WEB-INF</literal> directory of the web
root (for WAR archives). The file may be empty. Beans deployed in archives that do not
have a <literal>beans.xml</literal> file will not be available for use in the
application."
+msgstr "Web Beans non definisce nessuno archivio speciale per il deploy. Si può
impacchettare i Web Beans in JAR, EJB-JAR o WAR — qualsiasi locazione di deploy
nel classpath dell'applicazione. Comunque ciascun archivio che contiene Web Beans devi
includere un file chiamato <literal>web-beans.xml</literal> nella directory
<literal>META-INF</literal> o <literal>WEB-INF</literal>. Il file
può essere vuoto. I Web Beans collocati negli archivi che non hanno un file
<literal>web-beans.xml</literal> non saranno disponibili per l'uso
nell'applicazione."
#. Tag: para
#: ee.xml:162
#, fuzzy, no-c-format
-msgid ""
-"In an embeddable EJB container, beans may be deployed in any location in "
-"which EJBs may be deployed. Again, each location must contain a "
-"<literal>beans.xml</literal> file."
-msgstr ""
-"Per l'esecuzione in Java SE, Web Beans può essere deployato in un qualsiasi
"
-"posto nel quale gli EJB siano stati messi per essere eseguito da un "
-"embeddable EJB Lite container. Di nuovo ogni locazioni deve contenere un "
-"file <literal>web-beans.xml</literal>."
+msgid "In an embeddable EJB container, beans may be deployed in any location in
which EJBs may be deployed. Again, each location must contain a
<literal>beans.xml</literal> file."
+msgstr "Per l'esecuzione in Java SE, Web Beans può essere deployato in un
qualsiasi posto nel quale gli EJB siano stati messi per essere eseguito da un embeddable
EJB Lite container. Di nuovo ogni locazioni deve contenere un file
<literal>web-beans.xml</literal>."
#~ msgid ""
#~ "There is one restriction to be aware of here:
<literal>@PersistenceContext"
@@ -491,7 +402,6 @@
#~ msgstr ""
#~ "C'è una restrizione di cui essere informati:
<literal>@PersistenceContext"
#~ "(type=EXTENDED)</literal> non è supportato per i Web Beans
semplici."
-
#~ msgid ""
#~ "Web Beans injection applies to all EJBs, even when they aren't under the
"
#~ "control of the Web Bean manager (if they were obtained by direct JNDI "
@@ -505,10 +415,8 @@
#~ "literal>) In particolaresi può usare l'injection di Web Beans nei
Message-"
#~ "Driven Beans, che non sono considerati Web Beans poiché non possono "
#~ "essere iniettati."
-
#~ msgid "It's also easy to send messages using Web Beans."
#~ msgstr "E' anche molto facile spedire messaggi usando Web Beans."
-
#~ msgid ""
#~ "Web Beans takes care of all this for us. All we need to do is declare the
"
#~ "queue or topic in <literal>web-beans.xml</literal>, specifying an
"
@@ -517,7 +425,6 @@
#~ "I Web Beans si prendono cura di tutto questo per noi. Tutto ciò che "
#~ "occorre fare è dichiarare la coda od il topic in
<literal>web-beans.xml</"
#~ "literal>, specificando un "
-
#~ msgid ""
#~ "<![CDATA[<Queue>\n"
#~ " <destination>java:comp/env/jms/OrderQueue</destination>\n"
@@ -532,7 +439,6 @@
#~ "connectionFactory>\n"
#~ " <myapp:OrderProcessor/> \n"
#~ "</Queue>]]>"
-
#~ msgid ""
#~ "<![CDATA[<Topic>\n"
#~ "
<destination>java:comp/env/jms/StockPrices</destination>\n"
@@ -547,7 +453,6 @@
#~ "connectionFactory>\n"
#~ " <myapp:StockPrices/> \n"
#~ "</Topic>]]>"
-
#~ msgid ""
#~ "Now we can just inject the <literal>Queue</literal>, "
#~ "<literal>QueueConnection</literal>,
<literal>QueueSession</literal> or "
@@ -560,7 +465,6 @@
#~ "<literal>QueueSender</literal> per una coda, oppure
<literal>Topic</"
#~ "literal>, <literal>TopicConnection</literal>,
<literal>TopicSession</"
#~ "literal> o <literal>TopicPublisher</literal> per un topic."
-
#~ msgid ""
#~ "@StockPrices TopicPublisher pricePublisher;\n"
#~ "@StockPrices TopicSession priceSession;\n"
@@ -575,3 +479,4 @@
#~ "public void sendMessage(String price) {\n"
#~ " pricePublisher.send( priceSession.createTextMessage(price) );\n"
#~ "}"
+
Modified: doc/trunk/reference/it-IT/environments.po
===================================================================
--- doc/trunk/reference/it-IT/environments.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/environments.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -3,11 +3,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
-"VERSION\n"
+"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection
VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-05-05 22:49+0100\n"
+"PO-Revision-Date: 2009-11-23 21:17+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -29,73 +28,48 @@
#. Tag: para
#: environments.xml:9
#, no-c-format
-msgid ""
-"If you are using JBoss AS 5.2, no additional configuration is required to "
-"use Weld (or CDI for that matter). All you need to do is make your "
-"application a bean bean archive by adding
<literal>META-INF/beans.xml</"
-"literal> to the classpath or <literal>WEB-INF/beans.xml</literal> to
the web "
-"root!"
+msgid "If you are using JBoss AS 5.2, no additional configuration is required to use
Weld (or CDI for that matter). All you need to do is make your application a bean bean
archive by adding <literal>META-INF/beans.xml</literal> to the classpath or
<literal>WEB-INF/beans.xml</literal> to the web root!"
msgstr ""
#. Tag: para
#: environments.xml:15
#, no-c-format
-msgid ""
-"Unfortunately, you can't use Weld with earlier versions of JBoss AS since
"
-"they are missing key libraries. If you want to learn how to upgrade the "
-"built-in support on JBoss AS 5.2, then read on."
+msgid "Unfortunately, you can't use Weld with earlier versions of JBoss AS since
they are missing key libraries. If you want to learn how to upgrade the built-in support
on JBoss AS 5.2, then read on."
msgstr ""
#. Tag: para
#: environments.xml:20
#, no-c-format
-msgid ""
-"Upgrading the Weld add-on is easy. The Weld distribution has a build that "
-"can take care of this task for you in a single command. First, we need to "
-"tell Weld where JBoss AS is located. Create a new file named
<literal>local."
-"build.properties</literal> in the examples directory of the Weld "
-"distribution and assign the path of your JBoss AS installation to the "
-"property key <literal>jboss.home</literal>, as follows:"
+msgid "Upgrading the Weld add-on is easy. The Weld distribution has a build that can
take care of this task for you in a single command. First, we need to tell Weld where
JBoss AS is located. Create a new file named
<literal>local.build.properties</literal> in the examples directory of the
Weld distribution and assign the path of your JBoss AS installation to the property key
<literal>jboss.home</literal>, as follows:"
msgstr ""
#. Tag: programlisting
#: environments.xml:27
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[jboss.home=/path/to/jboss-as-5.x]]>"
-msgstr "jboss.home=/Applications/jboss-5.0.1.GA"
+msgstr "<![CDATA[jboss.home=/path/to/jboss-as-5.x]]>"
#. Tag: para
#: environments.xml:29
#, no-c-format
-msgid ""
-"Now we can install the Weld deployer from the
<literal>jboss-as</literal> "
-"directory of the Weld distribution:"
+msgid "Now we can install the Weld deployer from the
<literal>jboss-as</literal> directory of the Weld distribution:"
msgstr ""
#. Tag: programlisting
#: environments.xml:33
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"$> cd jboss-as\n"
"$> ant update"
msgstr ""
-"$ cd webbeans-$VERSION/jboss-as\n"
-"$ ant update"
+"$> cd jboss-as\n"
+"$> ant update"
#. Tag: para
#: environments.xml:36
#, fuzzy, no-c-format
-msgid ""
-"A new deployer, <literal>weld.deployer</literal> is added to JBoss AS.
This "
-"adds supports for JSR-299 deployments to JBoss AS, and allows Weld to query "
-"the EJB 3 container and discover which EJBs are installed in your "
-"application. It also performs an upgrade of the Javassist library, if "
-"necessary."
-msgstr ""
-"Un nuovo deploer - <literal>webbeans.deployer</literal> - viene
aggiunto a "
-"JBoss AS. Questo aggiunge a JBoss AS il supporto ai deploy JSR-299, e "
-"consente a Web Beans di interrogare il container EJB3 per scoprire quali EJB
"
-"sono installati nell'applicazione."
+msgid "A new deployer, <literal>weld.deployer</literal> is added to
JBoss AS. This adds supports for JSR-299 deployments to JBoss AS, and allows Weld to query
the EJB 3 container and discover which EJBs are installed in your application. It also
performs an upgrade of the Javassist library, if necessary."
+msgstr "Un nuovo deploer - <literal>webbeans.deployer</literal> - viene
aggiunto a JBoss AS. Questo aggiunge a JBoss AS il supporto ai deploy JSR-299, e consente
a Web Beans di interrogare il container EJB3 per scoprire quali EJB sono installati
nell'applicazione."
#. Tag: title
#: environments.xml:46
@@ -106,12 +80,7 @@
#. Tag: para
#: environments.xml:48
#, no-c-format
-msgid ""
-"Weld is also built into GlassFish from V3 onwards. Since GlassFish V3 is the
"
-"Java EE 6 reference implementation, it must support all features of CDI. "
-"What better way for GlassFish to support these features than to use Weld, "
-"the JSR-299 reference implementation? Just package up your CDI application "
-"and deploy."
+msgid "Weld is also built into GlassFish from V3 onwards. Since GlassFish V3 is the
Java EE 6 reference implementation, it must support all features of CDI. What better way
for GlassFish to support these features than to use Weld, the JSR-299 reference
implementation? Just package up your CDI application and deploy."
msgstr ""
#. Tag: title
@@ -123,43 +92,20 @@
#. Tag: para
#: environments.xml:58
#, fuzzy, no-c-format
-msgid ""
-"While JSR-299 does not require support for servlet environments, Weld can be
"
-"used in any servlet container, such as Tomcat 6.0 or Jetty 6.1."
-msgstr ""
-"Web Beans può essere usato in ogni Servlet container come Tomcat 6.0 o Jetty
"
-"6.1."
+msgid "While JSR-299 does not require support for servlet environments, Weld can be
used in any servlet container, such as Tomcat 6.0 or Jetty 6.1."
+msgstr "Web Beans può essere usato in ogni Servlet container come Tomcat 6.0 o Jetty
6.1."
#. Tag: para
#: environments.xml:64
#, fuzzy, no-c-format
-msgid ""
-"There is a major limitation to using a servlet container. Weld doesn't "
-"support deploying session beans, injection using
<literal>@EJB</literal> or "
-"<literal>@PersistenceContext</literal>, or using transactional events
in "
-"servlet containers. For enterprise features such as these, you should really
"
-"be looking at a Java EE application server."
-msgstr ""
-"Web Beans non supporta il deploy di session bean, l'injection usando "
-"<literal>@EJB</literal>, o
<literal>@PersistenceContext</literal> o l'uso di "
-"eventi transazionali nei Servlet container."
+msgid "There is a major limitation to using a servlet container. Weld doesn't
support deploying session beans, injection using <literal>@EJB</literal> or
<literal>@PersistenceContext</literal>, or using transactional events in
servlet containers. For enterprise features such as these, you should really be looking at
a Java EE application server."
+msgstr "Web Beans non supporta il deploy di session bean, l'injection usando
<literal>@EJB</literal>, o <literal>@PersistenceContext</literal>
o l'uso di eventi transazionali nei Servlet container."
#. Tag: para
#: environments.xml:72
#, fuzzy, no-c-format
-msgid ""
-"Weld should be used as a web application library in a servlet container. You
"
-"should place <literal>weld-servlet.jar</literal> in
<literal>WEB-INF/lib</"
-"literal> in the web root. <literal>weld-servlet.jar</literal> is an
\"uber-"
-"jar\", meaning it bundles all the bits of Weld and CDI required for running
"
-"in a servlet container, provided for your convenience. Alternatively, you "
-"could use its component jars:"
-msgstr ""
-"Web Beans dovrebbe essere usata come libreria per web application in un "
-"servlet container. Si dovrebbe mettere
<literal>webbeans-servlet.jar</"
-"literal> in <literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</"
-"literal> è un \"sovra-jar\" fornito per comodità. Invece, è possibile
usare "
-"i suoi jar componenti:"
+msgid "Weld should be used as a web application library in a servlet container. You
should place <literal>weld-servlet.jar</literal> in
<literal>WEB-INF/lib</literal> in the web root.
<literal>weld-servlet.jar</literal> is an \"uber-jar\", meaning it
bundles all the bits of Weld and CDI required for running in a servlet container, provided
for your convenience. Alternatively, you could use its component jars:"
+msgstr "Web Beans dovrebbe essere usata come libreria per web application in un
servlet container. Si dovrebbe mettere <literal>webbeans-servlet.jar</literal>
in <literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> è un \"sovra-jar\" fornito
per comodità. Invece, è possibile usare i suoi jar componenti:"
#. Tag: literal
#: environments.xml:84
@@ -169,33 +115,33 @@
#. Tag: literal
#: environments.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid "weld-api.jar"
-msgstr "webbeans-api.jar"
+msgstr "weld-api.jar"
#. Tag: literal
#: environments.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid "weld-spi.jar"
-msgstr "webbeans-spi.jar"
+msgstr "weld-spi.jar"
#. Tag: literal
#: environments.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid "weld-core.jar"
-msgstr "webbeans-core.jar"
+msgstr "weld-core.jar"
#. Tag: literal
#: environments.xml:104
-#, fuzzy, no-c-format
+#, no-c-format
msgid "weld-logging.jar"
-msgstr "webbeans-logging.jar"
+msgstr "weld-logging.jar"
#. Tag: literal
#: environments.xml:109
-#, fuzzy, no-c-format
+#, no-c-format
msgid "weld-servlet-int.jar"
-msgstr "webbeans-servlet-int.jar"
+msgstr "weld-servlet-int.jar"
#. Tag: literal
#: environments.xml:114
@@ -213,32 +159,24 @@
#: environments.xml:124
#, no-c-format
msgid "google-collections.jar"
-msgstr ""
+msgstr "google-collections.jar"
#. Tag: para
#: environments.xml:129
#, fuzzy, no-c-format
-msgid ""
-"You also need to explicitly specify the servlet listener (used to boot Weld,
"
-"and control its interaction with requests) in
<literal>WEB-INF/web.xml</"
-"literal> in the web root:"
-msgstr ""
-"Occorre esplicitamente specificare il servlet listener (usato per avviare "
-"Web Beans, e controllare la sua interazione con le richieste) in "
-"<literal>web.xml</literal>:"
+msgid "You also need to explicitly specify the servlet listener (used to boot Weld,
and control its interaction with requests) in
<literal>WEB-INF/web.xml</literal> in the web root:"
+msgstr "Occorre esplicitamente specificare il servlet listener (usato per avviare
Web Beans, e controllare la sua interazione con le richieste) in
<literal>web.xml</literal>:"
#. Tag: programlisting
#: environments.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
-"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-"
-"class>\n"
+"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
"</listener>]]>"
msgstr ""
"<![CDATA[<listener>\n"
-"
<listener-class>org.jboss.webbeans.environment.servlet.Listener</listener-"
-"class>\n"
+"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
"</listener>]]>"
#. Tag: title
@@ -250,19 +188,12 @@
#. Tag: para
#: environments.xml:139
#, fuzzy, no-c-format
-msgid ""
-"Tomcat has a read-only JNDI, so Weld can't automatically bind the "
-"BeanManager extension SPI. To bind the BeanManager into JNDI, you should "
-"populate <literal>META-INF/context.xml</literal> in the web root with
the "
-"following contents:"
-msgstr ""
-"Tomcat ha un JNDI read-only, e quindi Web Beans non può automaticamente "
-"associare il Manager. Per associare il Manager a JNDI occorre popolare "
-"<literal>META-INF/context.xml</literal> con i seguenti contesti:"
+msgid "Tomcat has a read-only JNDI, so Weld can't automatically bind the
BeanManager extension SPI. To bind the BeanManager into JNDI, you should populate
<literal>META-INF/context.xml</literal> in the web root with the following
contents:"
+msgstr "Tomcat ha un JNDI read-only, e quindi Web Beans non può automaticamente
associare il Manager. Per associare il Manager a JNDI occorre popolare
<literal>META-INF/context.xml</literal> con i seguenti contesti:"
#. Tag: programlisting
#: environments.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<Context>\n"
" <Resource name=\"BeanManager\" \n"
@@ -272,25 +203,21 @@
"</Context>]]>"
msgstr ""
"<![CDATA[<Context>\n"
-" <Resource name=\"app/Manager\" \n"
+" <Resource name=\"BeanManager\" \n"
" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+" type=\"javax.enterprise.inject.spi.BeanManager\"\n"
+"
factory=\"org.jboss.weld.resources.ManagerObjectFactory\"/>\n"
"</Context>]]>"
#. Tag: para
#: environments.xml:147
#, no-c-format
-msgid ""
-"and make it available to your deployment by adding this to the bottom of "
-"<literal>web.xml</literal>:"
-msgstr ""
-"e renderlo disponibile nel proprio deploy aggiungendo questo in fondo a "
-"<literal>web.xml</literal>:"
+msgid "and make it available to your deployment by adding this to the bottom of
<literal>web.xml</literal>:"
+msgstr "e renderlo disponibile nel proprio deploy aggiungendo questo in fondo a
<literal>web.xml</literal>:"
#. Tag: programlisting
#: environments.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
" <resource-env-ref-name>BeanManager</resource-env-ref-name>\n"
@@ -300,48 +227,29 @@
"</resource-env-ref>]]>"
msgstr ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
+" <resource-env-ref-name>BeanManager</resource-env-ref-name>\n"
" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
+" javax.enterprise.inject.spi.BeanManager\n"
" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
#. Tag: para
#: environments.xml:153
#, fuzzy, no-c-format
-msgid ""
-"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
-"so the BeanManager will be available at
<literal>java:comp/env/BeanManager</"
-"literal>"
-msgstr ""
-"Tomcat consente solo di associare le entry a
<literal>java:comp/env</"
-"literal>, e quindi il Manager sarà disponibile in
<literal>java:comp/env/app/"
-"Manager</literal>"
+msgid "Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, so the BeanManager will be available at
<literal>java:comp/env/BeanManager</literal>"
+msgstr "Tomcat consente solo di associare le entry a
<literal>java:comp/env</literal>, e quindi il Manager sarà disponibile in
<literal>java:comp/env/app/Manager</literal>"
#. Tag: para
#: environments.xml:158
#, fuzzy, no-c-format
-msgid ""
-"Weld also supports Servlet injection in Tomcat. To enable this, place the "
-"<literal>weld-tomcat-support.jar</literal> in
<literal>$TOMCAT_HOME/lib</"
-"literal>, and add the following to
<literal>META-INF/context.xml</literal>:"
-msgstr ""
-"Web Beans supporta anche l'iniezione dei servlet in Tomcat. Per abilitarla,
"
-"collocare <literal>webbeans-tomcat-support.jar</literal> in
<literal>"
-"$TOMCAT_HOME/lib</literal>, ed aggiungere il seguente codice a
<literal>META-"
-"INF/context.xml</literal>:"
+msgid "Weld also supports Servlet injection in Tomcat. To enable this, place the
<literal>weld-tomcat-support.jar</literal> in
<literal>$TOMCAT_HOME/lib</literal>, and add the following to
<literal>META-INF/context.xml</literal>:"
+msgstr "Web Beans supporta anche l'iniezione dei servlet in Tomcat. Per
abilitarla, collocare <literal>webbeans-tomcat-support.jar</literal> in
<literal>$TOMCAT_HOME/lib</literal>, ed aggiungere il seguente codice a
<literal>META-INF/context.xml</literal>:"
#. Tag: programlisting
#: environments.xml:164
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<Listener className=\"org.jboss.weld.environment.tomcat."
-"WeldLifecycleListener\"/>]]>"
-msgstr ""
-"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\"/>]]>"
+#, no-c-format
+msgid "<![CDATA[<Listener
className=\"org.jboss.weld.environment.tomcat.WeldLifecycleListener\"/>]]>"
+msgstr "<![CDATA[<Listener
className=\"org.jboss.weld.environment.tomcat.WeldLifecycleListener\"/>]]>"
#. Tag: title
#: environments.xml:169
@@ -352,27 +260,17 @@
#. Tag: para
#: environments.xml:171
#, fuzzy, no-c-format
-msgid ""
-"Like Tomcat, Jetty has a read-only JNDI, so Weld can't automatically bind
"
-"the Manager. To bind the Manager to JNDI, you should populate
<literal>WEB-"
-"INF/jetty-env.xml</literal> with the following contents:"
-msgstr ""
-"Come Tomcat, Jetty ha un JNDI read-only, e quindi Web Beans non può "
-"automaticamente associare il Manager. Per associare il Manager a JNDI "
-"occorre popolare <literal>META-INF/jetty-env.xml</literal> con i
seguenti "
-"contesti:"
+msgid "Like Tomcat, Jetty has a read-only JNDI, so Weld can't automatically bind
the Manager. To bind the Manager to JNDI, you should populate
<literal>WEB-INF/jetty-env.xml</literal> with the following contents:"
+msgstr "Come Tomcat, Jetty ha un JNDI read-only, e quindi Web Beans non può
automaticamente associare il Manager. Per associare il Manager a JNDI occorre popolare
<literal>META-INF/jetty-env.xml</literal> con i seguenti contesti:"
#. Tag: programlisting
#: environments.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
-"EN\"\n"
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//EN\"\n"
" \"http://jetty.mortbay.org/configure.dtd\">\n"
-"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
-"\">\n"
-" <New id=\"BeanManager\"
class=\"org.mortbay.jetty.plus.naming.Resource"
-"\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext\">\n"
+" <New id=\"BeanManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
" <Arg>BeanManager</Arg>\n"
" <Arg>\n"
@@ -385,18 +283,16 @@
" </New>\n"
"</Configure>]]>"
msgstr ""
-"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
-"EN\"\n"
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//EN\"\n"
" \"http://jetty.mortbay.org/configure.dtd\">\n"
-"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
-"\">\n"
-" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext\">\n"
+" <New id=\"BeanManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
-" <Arg>app/Manager</Arg>\n"
+" <Arg>BeanManager</Arg>\n"
" <Arg>\n"
" <New class=\"javax.naming.Reference\">\n"
-" <Arg>javax.inject.manager.Manager</Arg> \n"
-"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg>javax.enterprise.inject.spi.BeanManager</Arg>
\n"
+"
<Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>\n"
" <Arg/>\n"
" </New>\n"
" </Arg>\n"
@@ -406,28 +302,14 @@
#. Tag: para
#: environments.xml:178
#, no-c-format
-msgid ""
-"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
-"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
-"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
-"it."
-msgstr ""
-"Si noti che Jetty non ha un supporto predefinito per
<literal>javax.naming."
-"spi.ObjectFactory</literal> come Tomcat, quindi è necessario creare "
-"manualmente il <literal>javax.naming.Reference</literal> con cui fare
il "
-"wrap."
+msgid "Notice that Jetty doesn't not have built-in support for an
<literal>javax.naming.spi.ObjectFactory</literal> like Tomcat, so it's
necessary to manually create the <literal>javax.naming.Reference</literal> to
wrap around it."
+msgstr "Si noti che Jetty non ha un supporto predefinito per
<literal>javax.naming.spi.ObjectFactory</literal> come Tomcat, quindi è
necessario creare manualmente il <literal>javax.naming.Reference</literal> con
cui fare il wrap."
#. Tag: para
#: environments.xml:184
#, fuzzy, no-c-format
-msgid ""
-"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
-"so the BeanManager will be available at
<literal>java:comp/env/BeanManager</"
-"literal>"
-msgstr ""
-"Jetty consente solo di associare le entry a
<literal>java:comp/env</"
-"literal>, e quindi il Manager sarà disponibile in
<literal>java:comp/env/app/"
-"Manager</literal>"
+msgid "Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, so the BeanManager will be available at
<literal>java:comp/env/BeanManager</literal>"
+msgstr "Jetty consente solo di associare le entry a
<literal>java:comp/env</literal>, e quindi il Manager sarà disponibile in
<literal>java:comp/env/app/Manager</literal>"
#. Tag: para
#: environments.xml:189
@@ -444,31 +326,14 @@
#. Tag: para
#: environments.xml:200
#, fuzzy, no-c-format
-msgid ""
-"In addition to improved integration of the Enterprise Java stack, the "
-"\"Contexts and Dependency Injection for the Java EE platform\"
specification "
-"also defines a state of the art typesafe, stateful dependency injection "
-"framework, which can prove useful in a wide range of application types. To "
-"help developers take advantage of this, Weld provides a simple means for "
-"being executed in the Java Standard Edition (SE) environment independently "
-"of any Java EE APIs."
-msgstr ""
-"Oltre alla migliorata integrazione dello stack Java Enterprise, Web Beans "
-"fornisce anche uno stato dell'arte typesafe, con dependency injection "
-"stateful . Questo è utile in un ampio raggio di applicazioni tipo, "
-"enterprise o altre. Per facilitare ciò, Web Beans fornisce semplici mezzi "
-"per eseguire in ambiente Java Standard Edition indipendentemente da "
-"qualsiasi caratteristica Enterprise Edition."
+msgid "In addition to improved integration of the Enterprise Java stack, the
\"Contexts and Dependency Injection for the Java EE platform\" specification
also defines a state of the art typesafe, stateful dependency injection framework, which
can prove useful in a wide range of application types. To help developers take advantage
of this, Weld provides a simple means for being executed in the Java Standard Edition (SE)
environment independently of any Java EE APIs."
+msgstr "Oltre alla migliorata integrazione dello stack Java Enterprise, Web Beans
fornisce anche uno stato dell'arte typesafe, con dependency injection stateful .
Questo è utile in un ampio raggio di applicazioni tipo, enterprise o altre. Per facilitare
ciò, Web Beans fornisce semplici mezzi per eseguire in ambiente Java Standard Edition
indipendentemente da qualsiasi caratteristica Enterprise Edition."
#. Tag: para
#: environments.xml:208
#, fuzzy, no-c-format
-msgid ""
-"When executing in the SE environment the following features of Weld are "
-"available:"
-msgstr ""
-"Eseguendo in ambiente SE sono disponibili le seguenti caratteristiche di Web
"
-"Beans:"
+msgid "When executing in the SE environment the following features of Weld are
available:"
+msgstr "Eseguendo in ambiente SE sono disponibili le seguenti caratteristiche di Web
Beans:"
#. Tag: literal
#: environments.xml:215
@@ -492,7 +357,7 @@
#: environments.xml:230
#, no-c-format
msgid "Qualifiers"
-msgstr ""
+msgstr "Qualificatori"
#. Tag: literal
#: environments.xml:235
@@ -515,34 +380,18 @@
#. Tag: para
#: environments.xml:248
#, fuzzy, no-c-format
-msgid ""
-"Weld provides an extension which will boot a CDI bean manager in Java SE, "
-"automatically registering all simple beans found on the classpath. "
-"Application developers need not write any bootstrapping code. The entry "
-"point for application code is a simple bean which observes the special "
-"<literal>ContainerInitialized</literal> event provided by this
extension. "
-"The command line parameters can be injected using either of the following:"
-msgstr ""
-"Per semplificare la vita agli sviluppatori Web Beans fornisce un modulo "
-"speciale con un metodo main che avvia il manager Web Beans, registrando "
-"automaticamente tutti i Web BEans semplici trovati nel classpath. Questo "
-"elimina il bisogno da parte degli sviluppatori di scrivere codice per il "
-"bootstrap. L'entry point per le applicazioni Web Beans SE è un semplice Web
"
-"Bean che osserva l'evento standard <literal>@Deployed
Manager</literal>. I "
-"parametri da linea di comando possono essere iniettati usando una delle "
-"seguenti:"
+msgid "Weld provides an extension which will boot a CDI bean manager in Java SE,
automatically registering all simple beans found on the classpath. Application developers
need not write any bootstrapping code. The entry point for application code is a simple
bean which observes the special <literal>ContainerInitialized</literal> event
provided by this extension. The command line parameters can be injected using either of
the following:"
+msgstr "Per semplificare la vita agli sviluppatori Web Beans fornisce un modulo
speciale con un metodo main che avvia il manager Web Beans, registrando automaticamente
tutti i Web BEans semplici trovati nel classpath. Questo elimina il bisogno da parte degli
sviluppatori di scrivere codice per il bootstrap. L'entry point per le applicazioni
Web Beans SE è un semplice Web Bean che osserva l'evento standard
<literal>@Deployed Manager</literal>. I parametri da linea di comando possono
essere iniettati usando una delle seguenti:"
#. Tag: programlisting
#: environments.xml:255
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject @Parameters List<String> params;\n"
-"@Inject @Parameters String[] paramsArray; // useful for compatability with "
-"existing classes]]>"
+"@Inject @Parameters String[] paramsArray; // useful for compatability with existing
classes]]>"
msgstr ""
-"<![CDATA[@Parameters List<String> params;\n"
-"@Parameters String[] paramsArray; // useful for compatability with existing "
-"classes]]>"
+"<![CDATA[@Inject @Parameters List<String> params;\n"
+"@Inject @Parameters String[] paramsArray; // useful for compatability with existing
classes]]>"
#. Tag: para
#: environments.xml:257
@@ -552,7 +401,7 @@
#. Tag: programlisting
#: environments.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
"public class HelloWorld\n"
@@ -567,49 +416,34 @@
"<![CDATA[@ApplicationScoped\n"
"public class HelloWorld\n"
"{\n"
-" @Parameters List<String> parameters;\n"
+" @Inject @Parameters List<String> parameters;\n"
"\n"
-" public void printHello( @Observes @Deployed Manager manager )\n"
-" {\n"
-" System.out.println( \"Hello \" + parameters.get(0) );\n"
-" }\n"
+" public void printHello(@Observes ContainerInitialized event) {\n"
+" System.out.println(\"Hello \" + parameters.get(0));\n"
+" }\n"
"}]]>"
#. Tag: para
#: environments.xml:263
#, fuzzy, no-c-format
-msgid ""
-"CDI SE applications can be bootstrapped by running the StartMain class like "
-"so:"
-msgstr ""
-"Le applicazioni Web Beans SE vengono avviate eseguendo il seguente metodo "
-"main."
+msgid "CDI SE applications can be bootstrapped by running the StartMain class like
so:"
+msgstr "Le applicazioni Web Beans SE vengono avviate eseguendo il seguente metodo
main."
#. Tag: programlisting
#: environments.xml:267
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[java org.jboss.weld.environments.se.StartMain
<args>]]>"
-msgstr "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
+msgstr "<![CDATA[java org.jboss.weld.environments.se.StartMain
<args>]]>"
#. Tag: para
#: environments.xml:269
#, fuzzy, no-c-format
-msgid ""
-"If you need to do any custom initialization of the CDI bean manager, for "
-"example registering custom contexts or initializing resources for your beans
"
-"you can do so in response to the <literal>AfterBeanDiscovery</literal>
or "
-"<literal>AfterDeploymentValidation</literal> events. The following
example "
-"registers a custom context:"
-msgstr ""
-"Se occorre fare una qualsiasi inizializzazione personalizzata del manager "
-"Web Beans, per esempio registrando i contesti personalizzati o "
-"inizializzando le risorse dei bean, si può fare questo in risposta "
-"all'evento <literal>@Initialized Manager</literal>. Il seguente
esempio "
-"registra un contesto personalizzato:"
+msgid "If you need to do any custom initialization of the CDI bean manager, for
example registering custom contexts or initializing resources for your beans you can do so
in response to the <literal>AfterBeanDiscovery</literal> or
<literal>AfterDeploymentValidation</literal> events. The following example
registers a custom context:"
+msgstr "Se occorre fare una qualsiasi inizializzazione personalizzata del manager
Web Beans, per esempio registrando i contesti personalizzati o inizializzando le risorse
dei bean, si può fare questo in risposta all'evento <literal>@Initialized
Manager</literal>. Il seguente esempio registra un contesto personalizzato:"
#. Tag: programlisting
#: environments.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup {\n"
" public void setup(@Observes AfterBeanDiscovery event) {\n"
@@ -617,30 +451,17 @@
" }\n"
"}]]>"
msgstr ""
-"<![CDATA[public class PerformSetup\n"
-"{\n"
-"\n"
-" public void setup( @Observes @Initialized Manager manager )\n"
-" {\n"
-" manager.addContext( ThreadContext.INSTANCE );\n"
-" }\n"
+"<![CDATA[public class PerformSetup {\n"
+" public void setup(@Observes AfterBeanDiscovery event) {\n"
+" event.addContext( ThreadContext.INSTANCE );\n"
+" }\n"
"}]]>"
#. Tag: para
#: environments.xml:279
#, fuzzy, no-c-format
-msgid ""
-"The command line parameters do not become available for injection until the "
-"<literal>ContainerInitialized</literal> event is fired. If you need
access "
-"to the parameters during initialization you can do so via the "
-"<literal>public static String[] getParameters()</literal> method in
"
-"<literal>StartMain</literal>."
-msgstr ""
-"I parametri da linea di comando non sono disponibili per l'injection fino a
"
-"che non viene lanciato l'evento <literal>@Deployed
Manager</literal>. Se "
-"serve l'accesso ai parametri durante l'inizializzazione si può averlo
"
-"tramite il metodo <literal>public static String
getParameters()</literal> in "
-"<literal>StartMain</literal>."
+msgid "The command line parameters do not become available for injection until the
<literal>ContainerInitialized</literal> event is fired. If you need access to
the parameters during initialization you can do so via the <literal>public static
String[] getParameters()</literal> method in
<literal>StartMain</literal>."
+msgstr "I parametri da linea di comando non sono disponibili per l'injection
fino a che non viene lanciato l'evento <literal>@Deployed
Manager</literal>. Se serve l'accesso ai parametri durante
l'inizializzazione si può averlo tramite il metodo <literal>public static String
getParameters()</literal> in <literal>StartMain</literal>."
#~ msgid ""
#~ "No special configuration of your application, beyond adding either "
@@ -650,7 +471,6 @@
#~ "Non occorre alcuna configurazione speciale dell'applicazione oltre "
#~ "all'aggiunta di <literal>META-INF/beans.xml</literal> o
<literal>WEB-INF/"
#~ "beans.xml</literal>."
-
#~ msgid ""
#~ "If you are using JBoss AS 5.0.1.GA then you'll need to install Web Beans
"
#~ "as an extra. First we need to tell Web Beans where JBoss is located. Edit
"
@@ -661,31 +481,23 @@
#~ "extra. Innanzitutto occorre dire a Web Beans dove si trova JBoss. "
#~ "Modificare <literal>jboss-as/build.properties</literal> ed impostare
la "
#~ "proprietà <literal>jboss.home</literal>. Per esempio:"
-
#~ msgid "Now we can install Web Beans:"
#~ msgstr "Ora installiamo Web Beans:"
-
#~ msgid "Web Beans is built into all releases of JBoss AS from 5.1 onwards."
#~ msgstr ""
#~ "Web Beans è incluso in tutte le release di JBoss AS da 5.1 in avanti."
-
#~ msgid "TODO"
#~ msgstr "DA FARE"
-
#~ msgid "Simple Web Beans (POJOs)"
#~ msgstr "Semplice Web Beans (POJOs)"
-
#~ msgid "Binding Types"
#~ msgstr "Tipi di binding"
-
#~ msgid "Deployment Types"
#~ msgstr "Tipi di deploy"
-
#~ msgid "Tomcat (or any plain Servlet container)"
#~ msgstr "Tomcat (o qualsiasi Servlet container)"
-
#~ msgid "Decorators"
#~ msgstr "Decoratori"
-
#~ msgid "(TODO: Interceptors ?)"
#~ msgstr "(DA FARE: Interceptors ?)"
+
Modified: doc/trunk/reference/it-IT/events.po
===================================================================
--- doc/trunk/reference/it-IT/events.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/events.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2008-12-25 13:41+0100\n"
+"PO-Revision-Date: 2009-11-23 21:18+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,59 +22,37 @@
#. Tag: para
#: events.xml:6
#, no-c-format
-msgid ""
-"Dependency injection enables loose-coupling by allowing the implementation "
-"of the injected bean type to vary, either a deployment time or runtime. "
-"Events go one step further, allowing beans to interact with no compile time "
-"dependency at all. Event <emphasis>producers</emphasis> raise events
that "
-"are delivered to event <emphasis>observers</emphasis> by the
container."
+msgid "Dependency injection enables loose-coupling by allowing the implementation of
the injected bean type to vary, either a deployment time or runtime. Events go one step
further, allowing beans to interact with no compile time dependency at all. Event
<emphasis>producers</emphasis> raise events that are delivered to event
<emphasis>observers</emphasis> by the container."
msgstr ""
#. Tag: para
#: events.xml:13
#, no-c-format
-msgid ""
-"This basic schema might sound like the familiar observer/observable pattern,
"
-"but there are a couple of twists:"
+msgid "This basic schema might sound like the familiar observer/observable pattern,
but there are a couple of twists:"
msgstr ""
#. Tag: para
#: events.xml:18
#, no-c-format
-msgid ""
-"not only are event producers decoupled from observers; observers are "
-"completely decoupled from producers,"
-msgstr ""
-"non solo i produttori di eventi sono disaccoppiati dagli osservatori; gli "
-"osservatori sono completamente disaccoppiati dai produttori,"
+msgid "not only are event producers decoupled from observers; observers are
completely decoupled from producers,"
+msgstr "non solo i produttori di eventi sono disaccoppiati dagli osservatori; gli
osservatori sono completamente disaccoppiati dai produttori,"
#. Tag: para
#: events.xml:22
#, no-c-format
-msgid ""
-"observers can specify a combination of \"selectors\" to narrow the set of
"
-"event notifications they will receive, and"
-msgstr ""
-"gli osservatori possono specificare una combinazione di \"selettori\" per
"
-"restringere il set di notifiche di eventi da ricevere, e"
+msgid "observers can specify a combination of \"selectors\" to narrow the
set of event notifications they will receive, and"
+msgstr "gli osservatori possono specificare una combinazione di
\"selettori\" per restringere il set di notifiche di eventi da ricevere,
e"
#. Tag: para
#: events.xml:28
#, fuzzy, no-c-format
-msgid ""
-"observers can be notified immediately, or can specify that delivery of the "
-"event should be delayed until the end of the current transaction."
-msgstr ""
-"gli osservatori possono essere notificati immediatamente, o possono "
-"specificare che la consegna degli eventi venga ritardata fino alla fine "
-"della transazione conrrente"
+msgid "observers can be notified immediately, or can specify that delivery of the
event should be delayed until the end of the current transaction."
+msgstr "gli osservatori possono essere notificati immediatamente, o possono
specificare che la consegna degli eventi venga ritardata fino alla fine della transazione
conrrente"
#. Tag: para
#: events.xml:35
#, no-c-format
-msgid ""
-"The CDI event notification facility uses more or less the same typesafe "
-"approach that we've already seen with the dependency injection service."
+msgid "The CDI event notification facility uses more or less the same typesafe
approach that we've already seen with the dependency injection service."
msgstr ""
#. Tag: title
@@ -86,36 +64,28 @@
#. Tag: para
#: events.xml:41
#, no-c-format
-msgid ""
-"The event object carries state from producer to consumer. The event object "
-"is nothing more than an instance of a concrete Java class. (The only "
-"restriction is that an event type may not contain type variables). An event "
-"may be assigned qualifiers, which allows observers to distinguish it from "
-"other events of the same type. The qualifiers function like topic selectors,
"
-"allowing an observer to narrow the set of events it observes."
+msgid "The event object carries state from producer to consumer. The event object is
nothing more than an instance of a concrete Java class. (The only restriction is that an
event type may not contain type variables). An event may be assigned qualifiers, which
allows observers to distinguish it from other events of the same type. The qualifiers
function like topic selectors, allowing an observer to narrow the set of events it
observes."
msgstr ""
#. Tag: para
#: events.xml:48
#, no-c-format
-msgid ""
-"An event qualifier is just a normal qualifier, defined using "
-"<literal>@Qualifier</literal>. Here's an example:"
+msgid "An event qualifier is just a normal qualifier, defined using
<literal>@Qualifier</literal>. Here's an example:"
msgstr ""
#. Tag: programlisting
#: events.xml:52
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Target({FIELD, PARAMETER})\n"
"@Retention(RUNTIME)\n"
"public @interface Updated {}]]>"
msgstr ""
-"<![CDATA[@BindingType\n"
-"@Target({PARAMETER, FIELD})\n"
+"<![CDATA[@Qualifier\n"
+"@Target({FIELD, PARAMETER})\n"
"@Retention(RUNTIME)\n"
-"public @interface Updated { ... }]]>"
+"public @interface Updated {}]]>"
#. Tag: title
#: events.xml:57
@@ -126,82 +96,45 @@
#. Tag: para
#: events.xml:59
#, fuzzy, no-c-format
-msgid ""
-"An <emphasis>observer method</emphasis> is a method of a bean with a
"
-"parameter annotated <literal>(a)Observes</literal>."
-msgstr ""
-"Un <emphasis>metodo osservatore</emphasis> è un metodo di un Web Bean
con un "
-"parametro annotato <literal>(a)Observes</literal>."
+msgid "An <emphasis>observer method</emphasis> is a method of a bean
with a parameter annotated <literal>(a)Observes</literal>."
+msgstr "Un <emphasis>metodo osservatore</emphasis> è un metodo di un Web
Bean con un parametro annotato <literal>(a)Observes</literal>."
#. Tag: programlisting
#: events.xml:64
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }]]>"
-msgstr ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }]]>"
+msgid "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ...
}]]>"
+msgstr "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) {
... }]]>"
#. Tag: para
#: events.xml:66
#, fuzzy, no-c-format
-msgid ""
-"The annotated parameter is called the <emphasis>event
parameter</emphasis>. "
-"The type of the event parameter is the observed <emphasis>event
type</"
-"emphasis>, in this case <literal>Document</literal>. The event
parameter may "
-"also specify qualifiers."
-msgstr ""
-"Il parametro annotato viene chiamato <emphasis>parametro
evento</emphasis>. "
-"Il tipo di parametro evento è il <emphasis>tipo evento</emphasis>
osservato. "
-"I metodi osservatori possono anche specificare dei \"selettori\", che
sono "
-"solo istanze di tipi di binding di Web Beans. Quando un tipo di binding "
-"viene usato come selettore di eventi viene chiamato <emphasis>tipo binding
"
-"di evento</emphasis>. "
+msgid "The annotated parameter is called the <emphasis>event
parameter</emphasis>. The type of the event parameter is the observed
<emphasis>event type</emphasis>, in this case
<literal>Document</literal>. The event parameter may also specify
qualifiers."
+msgstr "Il parametro annotato viene chiamato <emphasis>parametro
evento</emphasis>. Il tipo di parametro evento è il <emphasis>tipo
evento</emphasis> osservato. I metodi osservatori possono anche specificare dei
\"selettori\", che sono solo istanze di tipi di binding di Web Beans. Quando un
tipo di binding viene usato come selettore di eventi viene chiamato <emphasis>tipo
binding di evento</emphasis>. "
#. Tag: programlisting
-#: events.xml:72 events.xml:240
+#: events.xml:72
+#: events.xml:240
#, no-c-format
-msgid ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
+msgid "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document
document) { ... }]]>"
+msgstr "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document
document) { ... }]]>"
#. Tag: para
#: events.xml:74
#, fuzzy, no-c-format
-msgid ""
-"An observer method need not specify any event qualifiers—in this case
"
-"it is interested in <emphasis>all</emphasis> events of a particular
type. If "
-"it does specify qualifiers, it's only interested in events which have those
"
-"qualifiers."
-msgstr ""
-"Un metodo osservatore non ha bisogno di specificare alcun binding di evento "
-"— in questo caso è interessato a <emphasis>tutti</emphasis>
gli eventi "
-"di un particolare tipo. Se specifica dei binding di evento, è solamente "
-"interessato agli eventi che hanno anche gli stessi binding di evento."
+msgid "An observer method need not specify any event qualifiers—in this
case it is interested in <emphasis>all</emphasis> events of a particular type.
If it does specify qualifiers, it's only interested in events which have those
qualifiers."
+msgstr "Un metodo osservatore non ha bisogno di specificare alcun binding di evento
— in questo caso è interessato a <emphasis>tutti</emphasis> gli
eventi di un particolare tipo. Se specifica dei binding di evento, è solamente interessato
agli eventi che hanno anche gli stessi binding di evento."
#. Tag: para
#: events.xml:80
#, fuzzy, no-c-format
-msgid ""
-"The observer method may have additional parameters, which are injection "
-"points:"
-msgstr ""
-"Il metodo osservatore può avere parametri addizionali che vengono iniettati "
-"secondo la solita semantica di iniezione del parametro del metodo Web Beans."
+msgid "The observer method may have additional parameters, which are injection
points:"
+msgstr "Il metodo osservatore può avere parametri addizionali che vengono iniettati
secondo la solita semantica di iniezione del parametro del metodo Web Beans."
#. Tag: programlisting
#: events.xml:84
#, no-c-format
-msgid ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document, User user) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document, User user) { ... }]]>"
+msgid "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document
document, User user) { ... }]]>"
+msgstr "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document
document, User user) { ... }]]>"
#. Tag: title
#: events.xml:89
@@ -212,28 +145,20 @@
#. Tag: para
#: events.xml:91
#, no-c-format
-msgid ""
-"Event producers fire events using an instance of the parameterized "
-"<literal>Event</literal> interface. An instance of this interface is
"
-"obtained by injection:"
+msgid "Event producers fire events using an instance of the parameterized
<literal>Event</literal> interface. An instance of this interface is obtained
by injection:"
msgstr ""
#. Tag: programlisting
#: events.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Any Event<Document> documentEvent;]]>"
-msgstr "<![CDATA[@Observable Event<Document> documentEvent]]>"
+msgstr "<![CDATA[@Inject @Any Event<Document> documentEvent;]]>"
#. Tag: para
#: events.xml:98
#, fuzzy, no-c-format
-msgid ""
-"A producer raises events by calling the <literal>fire()</literal>
method of "
-"the <literal>Event</literal> interface, passing the event
object:"
-msgstr ""
-"Un produttore solleva eventi chiamando il metodo
<literal>fire()</literal> "
-"dell'intefaccia <literal>Event</literal>, passando un
<emphasis>oggetto "
-"evento</emphasis>:"
+msgid "A producer raises events by calling the <literal>fire()</literal>
method of the <literal>Event</literal> interface, passing the event
object:"
+msgstr "Un produttore solleva eventi chiamando il metodo
<literal>fire()</literal> dell'intefaccia
<literal>Event</literal>, passando un <emphasis>oggetto
evento</emphasis>:"
#. Tag: programlisting
#: events.xml:103
@@ -250,9 +175,7 @@
#. Tag: para
#: events.xml:111
#, fuzzy, no-c-format
-msgid ""
-"has an event parameter to which the event object (the
<literal>Document</"
-"literal>) is assignable, and"
+msgid "has an event parameter to which the event object (the
<literal>Document</literal>) is assignable, and"
msgstr "ha un parametro evento a cui l'oggetto evento è assegnabile, e"
#. Tag: para
@@ -264,17 +187,8 @@
#. Tag: para
#: events.xml:119
#, fuzzy, no-c-format
-msgid ""
-"The container simply calls all the observer methods, passing the event "
-"object as the value of the event parameter. If any observer method throws an
"
-"exception, the container stops calling observer methods, and the exception "
-"is rethrown by the <literal>fire()</literal> method."
-msgstr ""
-"Il manager Web Bean chiama semplicemente tutti i metodi osservatori, "
-"passando l'oggento evento come valore del parametro evento. Se il metodo
"
-"osservatore lancia un'eccezione, il manager Web Bean smette di chiamare i
"
-"metodi osservatori, e l'eccezione viene rilanciata dal metodo
<literal>fire()"
-"</literal>."
+msgid "The container simply calls all the observer methods, passing the event object
as the value of the event parameter. If any observer method throws an exception, the
container stops calling observer methods, and the exception is rethrown by the
<literal>fire()</literal> method."
+msgstr "Il manager Web Bean chiama semplicemente tutti i metodi osservatori,
passando l'oggento evento come valore del parametro evento. Se il metodo osservatore
lancia un'eccezione, il manager Web Bean smette di chiamare i metodi osservatori, e
l'eccezione viene rilanciata dal metodo <literal>fire()</literal>."
#. Tag: para
#: events.xml:125
@@ -291,9 +205,7 @@
#. Tag: para
#: events.xml:134
#, no-c-format
-msgid ""
-"by passing qualifiers to the <literal>select()</literal> of
<literal>Event</"
-"literal>."
+msgid "by passing qualifiers to the <literal>select()</literal> of
<literal>Event</literal>."
msgstr ""
#. Tag: para
@@ -304,21 +216,15 @@
#. Tag: programlisting
#: events.xml:142
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Updated Event<Document>
documentUpdatedEvent;]]>"
-msgstr "<![CDATA[@Observable @Updated Event<Document>
documentUpdatedEvent]]>"
+msgstr "<![CDATA[@Inject @Updated Event<Document>
documentUpdatedEvent;]]>"
#. Tag: para
#: events.xml:144
#, fuzzy, no-c-format
-msgid ""
-"Then, every event fired via this instance of <literal>Event</literal>
has "
-"the event qualifier <literal>@Updated</literal>. The event is delivered
to "
-"every observer method that:"
-msgstr ""
-"Quindi ciascun evento sollevato tramite quest'istanza di
<literal>Event</"
-"literal> ha annotato l'event binding. L'evento verrà consegnato ad ogni
"
-"metodo osservatore che:"
+msgid "Then, every event fired via this instance of
<literal>Event</literal> has the event qualifier
<literal>@Updated</literal>. The event is delivered to every observer method
that:"
+msgstr "Quindi ciascun evento sollevato tramite quest'istanza di
<literal>Event</literal> ha annotato l'event binding. L'evento verrà
consegnato ad ogni metodo osservatore che:"
#. Tag: para
#: events.xml:151
@@ -329,42 +235,25 @@
#. Tag: para
#: events.xml:154
#, fuzzy, no-c-format
-msgid ""
-"does not have any event qualifier <emphasis>except</emphasis> for the
event "
-"qualifiers that match those specified at the <literal>Event</literal>
"
-"injection point."
-msgstr ""
-"non specifica alcun event binding <emphasis>tranne</emphasis> per gli
event "
-"binding passati a <literal>fire()</literal>."
+msgid "does not have any event qualifier <emphasis>except</emphasis> for
the event qualifiers that match those specified at the
<literal>Event</literal> injection point."
+msgstr "non specifica alcun event binding <emphasis>tranne</emphasis>
per gli event binding passati a <literal>fire()</literal>."
#. Tag: para
#: events.xml:161
#, no-c-format
-msgid ""
-"The downside of annotating the injection point is that we can't specify the
"
-"qualifier dynamically. CDI lets us obtain a qualifier instance by "
-"subclassing the helper class <literal>AnnotationLiteral</literal>. That
way, "
-"we can pass the qualifier to the <literal>select()</literal> method of
"
-"<literal>Event</literal>."
+msgid "The downside of annotating the injection point is that we can't specify
the qualifier dynamically. CDI lets us obtain a qualifier instance by subclassing the
helper class <literal>AnnotationLiteral</literal>. That way, we can pass the
qualifier to the <literal>select()</literal> method of
<literal>Event</literal>."
msgstr ""
#. Tag: programlisting
#: events.xml:167
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[documentEvent.select(new
AnnotationLiteral<Updated>(){}).fire"
-"(document);]]>"
-msgstr ""
-"<![CDATA[documentEvent.fire( document, new
AnnotationLiteral<Updated>()"
-"{} );]]>"
+#, no-c-format
+msgid "<![CDATA[documentEvent.select(new
AnnotationLiteral<Updated>(){}).fire(document);]]>"
+msgstr "<![CDATA[documentEvent.select(new
AnnotationLiteral<Updated>(){}).fire(document);]]>"
#. Tag: para
#: events.xml:169
#, no-c-format
-msgid ""
-"Events can have multiple event qualifiers, assembled using any combination "
-"of annotations at the <literal>Event</literal> injection point and
qualifier "
-"instances passed to the <literal>select()</literal> method."
+msgid "Events can have multiple event qualifiers, assembled using any combination of
annotations at the <literal>Event</literal> injection point and qualifier
instances passed to the <literal>select()</literal> method."
msgstr ""
#. Tag: title
@@ -376,37 +265,25 @@
#. Tag: para
#: events.xml:180
#, no-c-format
-msgid ""
-"By default, if there is no instance of an observer in the current context, "
-"the container will instantiate the observer in order to deliver an event to "
-"it. This behavior isn't always desirable. We may want to deliver events only
"
-"to instances of the observer that already exist in the current contexts."
+msgid "By default, if there is no instance of an observer in the current context,
the container will instantiate the observer in order to deliver an event to it. This
behavior isn't always desirable. We may want to deliver events only to instances of
the observer that already exist in the current contexts."
msgstr ""
#. Tag: para
#: events.xml:186
#, no-c-format
-msgid ""
-"A conditional observer is specified by adding <literal>receive =
IF_EXISTS</"
-"literal> to the <literal>@Observes</literal> annotation."
+msgid "A conditional observer is specified by adding <literal>receive =
IF_EXISTS</literal> to the <literal>@Observes</literal>
annotation."
msgstr ""
#. Tag: programlisting
#: events.xml:191
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[public void refreshOnDocumentUpdate(@Observes(receive = IF_EXISTS)
"
-"@Updated Document d) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
+#, no-c-format
+msgid "<![CDATA[public void refreshOnDocumentUpdate(@Observes(receive =
IF_EXISTS) @Updated Document d) { ... }]]>"
+msgstr "<![CDATA[public void refreshOnDocumentUpdate(@Observes(receive =
IF_EXISTS) @Updated Document d) { ... }]]>"
#. Tag: para
#: events.xml:193
#, no-c-format
-msgid ""
-"A bean with scope <literal>@Dependent</literal> cannot be a conditional
"
-"observer, since it would never be called!"
+msgid "A bean with scope <literal>@Dependent</literal> cannot be a
conditional observer, since it would never be called!"
msgstr ""
#. Tag: title
@@ -423,7 +300,7 @@
#. Tag: programlisting
#: events.xml:204
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Target({PARAMETER, FIELD})\n"
@@ -432,93 +309,72 @@
" RoleType value();\n"
"}]]>"
msgstr ""
-"<![CDATA[@BindingType\n"
+"<![CDATA[@Qualifier\n"
"@Target({PARAMETER, FIELD})\n"
"@Retention(RUNTIME)\n"
"public @interface Role {\n"
-" RoleType value();\n"
+" RoleType value();\n"
"}]]>"
#. Tag: para
#: events.xml:206
#, no-c-format
-msgid ""
-"The member value is used to narrow the messages delivered to the observer:"
-msgstr ""
-"Il valore del membro è usato per restringere i messaggi consegnati "
-"all'osservatore:"
+msgid "The member value is used to narrow the messages delivered to the
observer:"
+msgstr "Il valore del membro è usato per restringere i messaggi consegnati
all'osservatore:"
#. Tag: programlisting
#: events.xml:208
#, no-c-format
-msgid ""
-"<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
"
-"{ ... }]]>"
-msgstr ""
-"<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
"
-"{ ... }]]>"
+msgid "<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
{ ... }]]>"
+msgstr "<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
{ ... }]]>"
#. Tag: para
#: events.xml:210
#, fuzzy, no-c-format
-msgid ""
-"Event qualifier type members may be specified statically by the event "
-"producer, via annotations at the event notifier injection point:"
-msgstr ""
-"I membri del tipo di eventbinding possono essere specificati staticamente "
-"dal produttore di eventi tramite annotazioni nel punto di iniezione del "
-"notificatore d'evento:"
+msgid "Event qualifier type members may be specified statically by the event
producer, via annotations at the event notifier injection point:"
+msgstr "I membri del tipo di eventbinding possono essere specificati staticamente
dal produttore di eventi tramite annotazioni nel punto di iniezione del notificatore
d'evento:"
#. Tag: programlisting
#: events.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Role(ADMIN) Event<LoggedIn>
loggedInEvent;]]>"
-msgstr "<![CDATA[@Observable @Role(ADMIN) Event<LoggedIn>
LoggedInEvent;}}]]>"
+msgstr "<![CDATA[@Inject @Role(ADMIN) Event<LoggedIn>
loggedInEvent;]]>"
#. Tag: para
#: events.xml:217
#, fuzzy, no-c-format
-msgid ""
-"Alternatively, the value of the event qualifier type member may be "
-"determined dynamically by the event producer. We start by writing an "
-"abstract subclass of <literal>AnnotationLiteral</literal>:"
-msgstr ""
-"Alternativamente il valore del membro del tipo di event binding può esserre "
-"dinamicamente determinato dal produttore di eventi. Iniziamo scrivendo una "
-"sottoclasse astratta di <literal>AnnotationLiteral</literal>:"
+msgid "Alternatively, the value of the event qualifier type member may be determined
dynamically by the event producer. We start by writing an abstract subclass of
<literal>AnnotationLiteral</literal>:"
+msgstr "Alternativamente il valore del membro del tipo di event binding può esserre
dinamicamente determinato dal produttore di eventi. Iniziamo scrivendo una sottoclasse
astratta di <literal>AnnotationLiteral</literal>:"
#. Tag: programlisting
#: events.xml:222
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[abstract class RoleBinding \n"
" extends AnnotationLiteral<Role> \n"
" implements Role {}]]>"
msgstr ""
"<![CDATA[abstract class RoleBinding \n"
-" extends AnnotationLiteral<Role> \n"
-" implements Role {}]]>"
+" extends AnnotationLiteral<Role> \n"
+" implements Role {}]]>"
#. Tag: para
#: events.xml:224
#, fuzzy, no-c-format
-msgid ""
-"The event producer passes an instance of this class to
<literal>select()</"
-"literal>:"
-msgstr ""
-"Il produttore di eventi passa un'istanza di questa classe a
<literal>fire()</"
-"literal>:"
+msgid "The event producer passes an instance of this class to
<literal>select()</literal>:"
+msgstr "Il produttore di eventi passa un'istanza di questa classe a
<literal>fire()</literal>:"
#. Tag: programlisting
#: events.xml:226
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[documentEvent.select(new RoleBinding() {\n"
" public void value() { return user.getRole(); }\n"
"}).fire(document);]]>"
msgstr ""
-"<![CDATA[documentEvent.fire( document, new RoleBinding() { public void
value"
-"() { return user.getRole(); } } );]]>"
+"<![CDATA[documentEvent.select(new RoleBinding() {\n"
+" public void value() { return user.getRole(); }\n"
+"}).fire(document);]]>"
#. Tag: title
#: events.xml:231
@@ -534,57 +390,39 @@
#. Tag: programlisting
#: events.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject @Blog Event<Document> blogEvent;\n"
"...\n"
-"if (document.isBlog()) blogEvent.select(new
AnnotationLiteral<Updated>(){})."
-"fire(document);]]>"
+"if (document.isBlog()) blogEvent.select(new
AnnotationLiteral<Updated>(){}).fire(document);]]>"
msgstr ""
-"<![CDATA[@Observable @Blog Event<Document> blogEvent;\n"
+"<![CDATA[@Inject @Blog Event<Document> blogEvent;\n"
"...\n"
-"if (document.isBlog()) blogEvent.fire(document, new "
-"AnnotationLiteral<Updated>(){});]]>"
+"if (document.isBlog()) blogEvent.select(new
AnnotationLiteral<Updated>(){}).fire(document);]]>"
#. Tag: para
#: events.xml:237
#, no-c-format
-msgid ""
-"When this event occurs, all of the following observer methods will be "
-"notified:"
-msgstr ""
-"Quando si genera un evento, tutti i seguenti metodi osservatori verranno "
-"notificati:"
+msgid "When this event occurs, all of the following observer methods will be
notified:"
+msgstr "Quando si genera un evento, tutti i seguenti metodi osservatori verranno
notificati:"
#. Tag: programlisting
#: events.xml:239
#, no-c-format
-msgid ""
-"<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document "
-"document) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document "
-"document) { ... }]]>"
+msgid "<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document
document) { ... }]]>"
+msgstr "<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document
document) { ... }]]>"
#. Tag: programlisting
#: events.xml:241
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) "
-"{ ... }]]>"
-msgstr ""
-"<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) "
-"{ ... }]]>"
+msgid "<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) {
... }]]>"
+msgstr "<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) {
... }]]>"
#. Tag: programlisting
#: events.xml:242
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }}}]]>"
-msgstr ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }}}]]>"
+msgid "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ...
}}}]]>"
+msgstr "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) {
... }}}]]>"
#. Tag: title
#: events.xml:247
@@ -595,29 +433,14 @@
#. Tag: para
#: events.xml:249
#, no-c-format
-msgid ""
-"Transactional observers receive their event notifications during the before "
-"or after completion phase of the transaction in which the event was raised. "
-"For example, the following observer method needs to refresh a query result "
-"set that is cached in the application context, but only when transactions "
-"that update the <literal>Category</literal> tree succeed:"
-msgstr ""
-"Gli osservatori transazionali ricevono notifiche d'evento prima o dopo la
"
-"fase di completamento della transazione, nella quale l'evento viene "
-"sollevato. Per esempio, il seguente metodo osservatore ha bisogno di "
-"aggiornare il set di risultati della query memorizzato nel contesto "
-"dell'applicazione, ma solo quando hanno successo le transazioni che "
-"aggiornano l'albero <literal>Category</literal>."
+msgid "Transactional observers receive their event notifications during the before
or after completion phase of the transaction in which the event was raised. For example,
the following observer method needs to refresh a query result set that is cached in the
application context, but only when transactions that update the
<literal>Category</literal> tree succeed:"
+msgstr "Gli osservatori transazionali ricevono notifiche d'evento prima o dopo
la fase di completamento della transazione, nella quale l'evento viene sollevato. Per
esempio, il seguente metodo osservatore ha bisogno di aggiornare il set di risultati della
query memorizzato nel contesto dell'applicazione, ma solo quando hanno successo le
transazioni che aggiornano l'albero <literal>Category</literal>."
#. Tag: programlisting
#: events.xml:256
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[public void refreshCategoryTree(@Observes(during = AFTER_SUCCESS)
"
-"CategoryUpdateEvent event) { ... }]]>"
-msgstr ""
-"<![CDATA[public void refreshCategoryTree(@AfterTransactionSuccess @Observes
"
-"CategoryUpdateEvent event) { ... }]]>"
+#, no-c-format
+msgid "<![CDATA[public void refreshCategoryTree(@Observes(during = AFTER_SUCCESS)
CategoryUpdateEvent event) { ... }]]>"
+msgstr "<![CDATA[public void refreshCategoryTree(@Observes(during =
AFTER_SUCCESS) CategoryUpdateEvent event) { ... }]]>"
#. Tag: para
#: events.xml:258
@@ -628,77 +451,48 @@
#. Tag: para
#: events.xml:262
#, no-c-format
-msgid ""
-"<literal>IN_PROGESS</literal> observers are called immediately
(default)"
+msgid "<literal>IN_PROGESS</literal> observers are called immediately
(default)"
msgstr ""
#. Tag: para
#: events.xml:265
#, fuzzy, no-c-format
-msgid ""
-"<literal>AFTER_SUCCESS</literal> observers are called during the after
"
-"completion phase of the transaction, but only if the transaction completes "
-"successfully"
-msgstr ""
-"gli osservatori <literal>@AfterTransactionSuccess</literal> vengono
chiamati "
-"dopo la fase di completamento della transazione, ma solo se questa si "
-"completa con successo"
+msgid "<literal>AFTER_SUCCESS</literal> observers are called during the
after completion phase of the transaction, but only if the transaction completes
successfully"
+msgstr "gli osservatori <literal>@AfterTransactionSuccess</literal>
vengono chiamati dopo la fase di completamento della transazione, ma solo se questa si
completa con successo"
#. Tag: para
#: events.xml:271
#, fuzzy, no-c-format
-msgid ""
-"<literal>AFTER_FAILURE</literal> observers are called during the after
"
-"completion phase of the transaction, but only if the transaction fails to "
-"complete successfully"
-msgstr ""
-"gli osservatori <literal>@AfterTransactionFailure</literal> vengono
chiamati "
-"dopo la fase di completamento della transazione, ma solo se questa fallisce "
-"e quindi non completa con successo"
+msgid "<literal>AFTER_FAILURE</literal> observers are called during the
after completion phase of the transaction, but only if the transaction fails to complete
successfully"
+msgstr "gli osservatori <literal>@AfterTransactionFailure</literal>
vengono chiamati dopo la fase di completamento della transazione, ma solo se questa
fallisce e quindi non completa con successo"
#. Tag: para
#: events.xml:277
#, fuzzy, no-c-format
-msgid ""
-"<literal>AFTER_COMPLETION</literal> observers are called during the
after "
-"completion phase of the transaction"
-msgstr ""
-"gli osservatori <literal>@AfterTransactionCompletion</literal> vengono
"
-"chiamati dopo la fase di completamento della transazione"
+msgid "<literal>AFTER_COMPLETION</literal> observers are called during
the after completion phase of the transaction"
+msgstr "gli osservatori <literal>@AfterTransactionCompletion</literal>
vengono chiamati dopo la fase di completamento della transazione"
#. Tag: para
#: events.xml:283
#, fuzzy, no-c-format
-msgid ""
-"<literal>BEFORE_COMPLETION</literal> observers are called during the
before "
-"completion phase of the transaction"
-msgstr ""
-"gli osservatori <literal>@BeforeTransactionCompletion</literal> vengono
"
-"chiamati prima della fase di completamento della transazione"
+msgid "<literal>BEFORE_COMPLETION</literal> observers are called during
the before completion phase of the transaction"
+msgstr "gli osservatori <literal>@BeforeTransactionCompletion</literal>
vengono chiamati prima della fase di completamento della transazione"
#. Tag: para
#: events.xml:290
#, fuzzy, no-c-format
-msgid ""
-"Transactional observers are very important in a stateful object model "
-"because state is often held for longer than a single atomic transaction."
-msgstr ""
-"Gli osservatori transazionali sono molto importanti in un modello ad oggetto
"
-"stateful come Web Beans, poiché lo stato è spesso mantenuto per un tempo più
"
-"lungo di una singola transazione atomica."
+msgid "Transactional observers are very important in a stateful object model because
state is often held for longer than a single atomic transaction."
+msgstr "Gli osservatori transazionali sono molto importanti in un modello ad oggetto
stateful come Web Beans, poiché lo stato è spesso mantenuto per un tempo più lungo di una
singola transazione atomica."
#. Tag: para
#: events.xml:295
#, no-c-format
-msgid ""
-"Imagine that we have cached a JPA query result set in the application scope:"
-msgstr ""
-"Si immagini di avere cachato un risultato di query JPA nello scope di "
-"applicazione:"
+msgid "Imagine that we have cached a JPA query result set in the application
scope:"
+msgstr "Si immagini di avere cachato un risultato di query JPA nello scope di
applicazione:"
#. Tag: programlisting
#: events.xml:297
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
@@ -710,8 +504,7 @@
" @Produces @Catalog \n"
" List<Product> getCatalog() {\n"
" if (products==null) {\n"
-" products = em.createQuery(\"select p from Product p where p.deleted
"
-"= false\")\n"
+" products = em.createQuery(\"select p from Product p where p.deleted =
false\")\n"
" .getResultList();\n"
" }\n"
" return products;\n"
@@ -722,49 +515,36 @@
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
"\n"
-" @PersistenceContext EntityManager em;\n"
+" @PersistenceContext EntityManager em;\n"
" \n"
-" List<Product> products;\n"
+" List<Product> products;\n"
"\n"
-" @Produces @Catalog \n"
-" List<Product> getCatalog() {\n"
-" if (products==null) {\n"
-" products = em.createQuery(\"select p from Product p where
p."
-"deleted = false\")\n"
-" .getResultList();\n"
-" }\n"
-" return products;\n"
-" }\n"
+" @Produces @Catalog \n"
+" List<Product> getCatalog() {\n"
+" if (products==null) {\n"
+" products = em.createQuery(\"select p from Product p where p.deleted =
false\")\n"
+" .getResultList();\n"
+" }\n"
+" return products;\n"
+" }\n"
" \n"
"}]]>"
#. Tag: para
#: events.xml:299
#, no-c-format
-msgid ""
-"From time to time, a <literal>Product</literal> is created or deleted.
When "
-"this occurs, we need to refresh the <literal>Product</literal> catalog.
But "
-"we should wait until <emphasis>after</emphasis> the transaction
completes "
-"successfully before performing this refresh!"
-msgstr ""
-"Di tanto in tanto un <literal>Product</literal> viene creato o
cancellato. "
-"Quando questo avviene occorre aggiornare il catalogo del
<literal>Product</"
-"literal>. Ma si dovrebbe aspettare che la transazione <emphasis>abbia
"
-"completato</emphasis> con successo prima di eseguire
l'aggiornamento!"
+msgid "From time to time, a <literal>Product</literal> is created or
deleted. When this occurs, we need to refresh the <literal>Product</literal>
catalog. But we should wait until <emphasis>after</emphasis> the transaction
completes successfully before performing this refresh!"
+msgstr "Di tanto in tanto un <literal>Product</literal> viene creato o
cancellato. Quando questo avviene occorre aggiornare il catalogo del
<literal>Product</literal>. Ma si dovrebbe aspettare che la transazione
<emphasis>abbia completato</emphasis> con successo prima di eseguire
l'aggiornamento!"
#. Tag: para
#: events.xml:305
#, fuzzy, no-c-format
-msgid ""
-"The bean that creates and deletes <literal>Product</literal>s could
raise "
-"events, for example:"
-msgstr ""
-"Il Web Bean che crea o cancella <literal>Product</literal> può
sollevare "
-"eventi, per esempio:"
+msgid "The bean that creates and deletes <literal>Product</literal>s
could raise events, for example:"
+msgstr "Il Web Bean che crea o cancella <literal>Product</literal> può
sollevare eventi, per esempio:"
#. Tag: programlisting
#: events.xml:309
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Stateless\n"
"public class ProductManager {\n"
@@ -773,81 +553,65 @@
"\n"
" public void delete(Product product) {\n"
" em.delete(product);\n"
-" productEvent.select(new AnnotationLiteral<Deleted>(){}).fire"
-"(product);\n"
+" productEvent.select(new
AnnotationLiteral<Deleted>(){}).fire(product);\n"
" }\n"
" \n"
" public void persist(Product product) {\n"
" em.persist(product);\n"
-" productEvent.select(new AnnotationLiteral<Created>(){}).fire"
-"(product);\n"
+" productEvent.select(new
AnnotationLiteral<Created>(){}).fire(product);\n"
" }\n"
" ...\n"
"}]]>"
msgstr ""
"<![CDATA[@Stateless\n"
"public class ProductManager {\n"
+" @PersistenceContext EntityManager em;\n"
+" @Inject @Any Event<Product> productEvent;\n"
"\n"
-" @PersistenceContext EntityManager em;\n"
-" @Observable Event<Product> productEvent;\n"
-"\n"
-" public void delete(Product product) {\n"
-" em.delete(product);\n"
-" productEvent.fire(product, new
AnnotationLiteral<Deleted>(){});\n"
-" }\n"
+" public void delete(Product product) {\n"
+" em.delete(product);\n"
+" productEvent.select(new
AnnotationLiteral<Deleted>(){}).fire(product);\n"
+" }\n"
" \n"
-" public void persist(Product product) {\n"
-" em.persist(product);\n"
-" productEvent.fire(product, new
AnnotationLiteral<Created>(){});\n"
-" }\n"
-" \n"
-" ...\n"
-" \n"
+" public void persist(Product product) {\n"
+" em.persist(product);\n"
+" productEvent.select(new
AnnotationLiteral<Created>(){}).fire(product);\n"
+" }\n"
+" ...\n"
"}]]>"
#. Tag: para
#: events.xml:311
#, no-c-format
-msgid ""
-"And now <literal>Catalog</literal> can observe the events after
successful "
-"completion of the transaction:"
-msgstr ""
-"E ora <literal>Catalog</literal> può osservare gli eventi dopo il
"
-"completamento (con successo) della transazione:"
+msgid "And now <literal>Catalog</literal> can observe the events after
successful completion of the transaction:"
+msgstr "E ora <literal>Catalog</literal> può osservare gli eventi dopo
il completamento (con successo) della transazione:"
#. Tag: programlisting
#: events.xml:315
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
" ...\n"
-" void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product "
-"product) {\n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product product)
{\n"
" products.add(product);\n"
" }\n"
" \n"
-" void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product "
-"product) {\n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product product)
{\n"
" products.remove(product);\n"
" }\n"
"}]]>"
msgstr ""
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
-"\n"
-" ...\n"
+" ...\n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product product)
{\n"
+" products.add(product);\n"
+" }\n"
" \n"
-" void addProduct(@AfterTransactionSuccess @Observes @Created Product "
-"product) {\n"
-" products.add(product);\n"
-" }\n"
-" \n"
-" void addProduct(@AfterTransactionSuccess @Observes @Deleted Product "
-"product) {\n"
-" products.remove(product);\n"
-" }\n"
-" \n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product product)
{\n"
+" products.remove(product);\n"
+" }\n"
"}]]>"
#~ msgid ""
@@ -863,21 +627,18 @@
#~ "<emphasis>osservatori</emphasis> di eventi tramite il manager Web
Bean. "
#~ "Lo schema base può suonare simile al familiare pattern observer/"
#~ "observable, ma ci sono un paio di differenze:"
-
#~ msgid ""
#~ "We specify the event bindings of the observer method by annotating the "
#~ "event parameter:"
#~ msgstr ""
#~ "Specifichiamo i binding di evento del metodo osservatore annotando il "
#~ "parametro evento:"
-
#~ msgid ""
#~ "The event producer may obtain an <emphasis>event notifier</emphasis>
"
#~ "object by injection:"
#~ msgstr ""
#~ "Il produttore dell'evento può ottenere tramite iniezione un oggetto "
#~ "<emphasis>notificatore d'evento</emphasis>:"
-
#~ msgid ""
#~ "The <literal>@Observable</literal> annotation implicitly defines a
Web "
#~ "Bean with scope <literal>@Dependent</literal> and deployment type
"
@@ -888,7 +649,6 @@
#~ "Web Bean con scope <literal>@Dependent</literal> e tipo di deploy
"
#~ "<literal>@Standard</literal>, con un'implementazione fornita dal
manager "
#~ "Web Bean."
-
#~ msgid ""
#~ "An event object may be an instance of any Java class that has no type "
#~ "variables or wildcard type parameters. The event will be delivered to "
@@ -897,7 +657,6 @@
#~ "Un oggetto evento può essere un'istanza di una classe Java che non ha
"
#~ "variabili tipo o parametri tipo wildcard. L'evento verrà consegnato ad
"
#~ "ogni metodo osservatore che:"
-
#~ msgid ""
#~ "To specify a \"selector\", the event producer may pass an instance of
the "
#~ "event binding type to the <literal>fire()</literal> method:"
@@ -905,7 +664,6 @@
#~ "Per specificare un \"selettore\" il produttore d'evento può
passare "
#~ "un'istanza del tipo di binding d'evento al metodo
<literal>fire()</"
#~ "literal>:"
-
#~ msgid ""
#~ "The helper class <literal>AnnotationLiteral</literal> makes it
possible "
#~ "to instantiate binding types inline, since this is otherwise difficult to
"
@@ -914,7 +672,6 @@
#~ "La classe helper <literal>AnnotationLiteral</literal> rende
possibile "
#~ "istanziare inline i tipi di binding, dato che questo risulta difficile da
"
#~ "fare in Java."
-
#~ msgid ""
#~ "Alternatively, event bindings may be specified by annotating the event "
#~ "notifier injection point:"
@@ -922,53 +679,3 @@
#~ "In alternativa gli event binding possono essere specificati annotando il "
#~ "punto di iniezione del notificato d'evento:"
-# la frase è ambigua...."or the annotated..." si lega a "to" o a
"except" ??
-#~ msgid ""
-#~ "does not specify any event binding <emphasis>except</emphasis> for
the "
-#~ "event bindings passed to <literal>fire()</literal> or the annotated
event "
-#~ "bindings of the event notifier injection point."
-#~ msgstr ""
-#~ "non specifica alcun event binding <emphasis>tranne</emphasis> per
gli "
-#~ "event binding passati a <literal>fire()</literal> o per gli event
binding "
-#~ "annotati del punto di iniezione del notificatore eventi."
-
-#~ msgid "Registering observers dynamically"
-#~ msgstr "Registrare dinamicamente gli osservatori"
-
-#~ msgid ""
-#~ "It's often useful to register an event observer dynamically. The "
-#~ "application may implement the <literal>Observer</literal> interface
and "
-#~ "register an instance with an event notifier by calling the "
-#~ "<literal>observe()</literal> method."
-#~ msgstr ""
-#~ "E' spesso utile registrare un osservatore d'evento in modo dinamico.
"
-#~ "L'applicazione può implementare l'interfaccia
<literal>Observer</literal> "
-#~ "e registrare un'istanza con un notificatore d'evento chiamando il metodo
"
-#~ "<literal>observe()</literal>."
-
-#~ msgid ""
-#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void
"
-#~ "notify(Document doc) { ... } } );]]>"
-#~ msgstr ""
-#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void
"
-#~ "notify(Document doc) { ... } } );]]>"
-
-#~ msgid ""
-#~ "Event binding types may be specified by the event notifier injection "
-#~ "point or by passing event binding type instances to the
<literal>observe()"
-#~ "</literal> method:"
-#~ msgstr ""
-#~ "I tipi di event binding possono essere specificati dal punto di iniezione
"
-#~ "del notificatore d'eventi o passando istance del tipo di event binding al
"
-#~ "metodo <literal>observe()</literal>:"
-
-#~ msgid ""
-#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void
"
-#~ "notify(Document doc) { ... } }, \n"
-#~ " new "
-#~ "AnnotationLiteral<Updated>(){} );]]>"
-#~ msgstr ""
-#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void
"
-#~ "notify(Document doc) { ... } }, \n"
-#~ " new "
-#~ "AnnotationLiteral<Updated>(){} );]]>"
Modified: doc/trunk/reference/it-IT/example.po
===================================================================
--- doc/trunk/reference/it-IT/example.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/example.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-01-05 00:25+0100\n"
+"PO-Revision-Date: 2009-11-23 21:19+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,19 +22,12 @@
#. Tag: para
#: example.xml:6
#, fuzzy, no-c-format
-msgid ""
-"Let's illustrate these ideas with a full example. We're going to implement
"
-"user login/logout for an application that uses JSF. First, we'll define a
"
-"request-scoped bean to hold the username and password entered during login:"
-msgstr ""
-"Illustriamo queste idee con un esempio completo. Implementiamo il login/"
-"logout dell'utente per un'applicazione che utilizza JSF. Innanzitutto
"
-"definiamo un Web Bean che mantenga username e password digitati durante il "
-"login:"
+msgid "Let's illustrate these ideas with a full example. We're going to
implement user login/logout for an application that uses JSF. First, we'll define a
request-scoped bean to hold the username and password entered during login:"
+msgstr "Illustriamo queste idee con un esempio completo. Implementiamo il
login/logout dell'utente per un'applicazione che utilizza JSF. Innanzitutto
definiamo un Web Bean che mantenga username e password digitati durante il login:"
#. Tag: programlisting
#: example.xml:11
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Named @RequestScoped\n"
"public class Credentials {\n"
@@ -50,7 +43,6 @@
msgstr ""
"<![CDATA[@Named @RequestScoped\n"
"public class Credentials {\n"
-" \n"
" private String username;\n"
" private String password;\n"
" \n"
@@ -59,19 +51,17 @@
" \n"
" public String getPassword() { return password; }\n"
" public void setPassword(String password) { this.password = password; }\n"
-" \n"
"}]]>"
#. Tag: para
#: example.xml:13
#, fuzzy, no-c-format
msgid "This bean is bound to the login prompt in the following JSF form:"
-msgstr ""
-"Questo Web Bean è associato al login all'interno della seguente form
JSF:"
+msgstr "Questo Web Bean è associato al login all'interno della seguente form
JSF:"
#. Tag: programlisting
#: example.xml:15
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<h:form>\n"
" <h:panelGrid columns=\"2\"
rendered=\"#{!login.loggedIn}\">\n"
@@ -80,40 +70,30 @@
" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\"
action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\"
action=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Login\"
action=\"#{login.login}\"
rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\"
action=\"#{login.logout}\"
rendered=\"#{login.loggedIn}\"/>\n"
"</h:form>]]>"
msgstr ""
"<![CDATA[<h:form>\n"
-" <h:panelGrid columns=\"2\"
rendered=\"#{!login.loggedIn}\">\n"
-" <h:outputLabel
for=\"username\">Username:</h:outputLabel>\n"
-" <h:inputText id=\"username\"
value=\"#{credentials.username}\"/>\n"
-" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
-" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
-" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\"
action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:panelGrid columns=\"2\"
rendered=\"#{!login.loggedIn}\">\n"
+" <h:outputLabel
for=\"username\">Username:</h:outputLabel>\n"
+" <h:inputText id=\"username\"
value=\"#{credentials.username}\"/>\n"
+" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
+" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
+" </h:panelGrid>\n"
+" <h:commandButton value=\"Login\"
action=\"#{login.login}\"
rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\"
action=\"#{login.logout}\"
rendered=\"#{login.loggedIn}\"/>\n"
"</h:form>]]>"
#. Tag: para
#: example.xml:17
#, fuzzy, no-c-format
-msgid ""
-"The actual work is done by a session-scoped bean that maintains information "
-"about the currently logged-in user and exposes the
<literal>User</literal> "
-"entity to other beans:"
-msgstr ""
-"Il vero lavoro è fatto da un Web Bean con scope di sessione che mantiene le "
-"informazioni sull'utente correntemente loggato ed espone l'entity "
-"<literal>User</literal> agli altri Web Beans:"
+msgid "The actual work is done by a session-scoped bean that maintains information
about the currently logged-in user and exposes the <literal>User</literal>
entity to other beans:"
+msgstr "Il vero lavoro è fatto da un Web Bean con scope di sessione che mantiene le
informazioni sull'utente correntemente loggato ed espone l'entity
<literal>User</literal> agli altri Web Beans:"
#. Tag: programlisting
#: example.xml:22
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@SessionScoped @Named\n"
"public class Login implements Serializable {\n"
@@ -125,8 +105,7 @@
" \n"
" public void login() {\n"
" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username = :username and u.password
"
-"= :password\")\n"
+" \"select u from User u where u.username = :username and u.password =
:password\")\n"
" .setParameter(\"username\", credentials.getUsername())\n"
" .setParameter(\"password\", credentials.getPassword())\n"
" .getResultList();\n"
@@ -154,84 +133,80 @@
"}]]>"
msgstr ""
"<![CDATA[@SessionScoped @Named\n"
-"public class Login {\n"
+"public class Login implements Serializable {\n"
"\n"
-" @Current Credentials credentials;\n"
-" @PersistenceContext EntityManager userDatabase;\n"
+" @Inject Credentials credentials;\n"
+" @Inject @UserDatabase EntityManager userDatabase;\n"
"\n"
-" private User user;\n"
+" private User user;\n"
" \n"
-" public void login() {\n"
-" \n"
-" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username=:username and
u.password=:"
-"password\")\n"
-" .setParameter(\"username\",
credentials.getUsername())\n"
-" .setParameter(\"password\",
credentials.getPassword())\n"
-" .getResultList();\n"
+" public void login() {\n"
+" List<User> results = userDatabase.createQuery(\n"
+" \"select u from User u where u.username = :username and u.password =
:password\")\n"
+" .setParameter(\"username\", credentials.getUsername())\n"
+" .setParameter(\"password\", credentials.getPassword())\n"
+" .getResultList();\n"
" \n"
-" if ( !results.isEmpty() ) {\n"
-" user = results.get(0);\n"
-" }\n"
-" \n"
-" }\n"
+" if (!results.isEmpty()) {\n"
+" user = results.get(0);\n"
+" }\n"
+" else {\n"
+" // perhaps add code here to report a failed login\n"
+" }\n"
+" }\n"
" \n"
-" public void logout() {\n"
-" user = null;\n"
-" }\n"
+" public void logout() {\n"
+" user = null;\n"
+" }\n"
" \n"
-" public boolean isLoggedIn() {\n"
-" return user!=null;\n"
-" }\n"
+" public boolean isLoggedIn() {\n"
+" return user != null;\n"
+" }\n"
" \n"
-" @Produces @LoggedIn User getCurrentUser() {\n"
-" return user;\n"
-" }\n"
+" @Produces @LoggedIn User getCurrentUser() {\n"
+" return user;\n"
+" }\n"
"\n"
"}]]>"
#. Tag: para
#: example.xml:24
#, no-c-format
-msgid ""
-"<literal>@LoggedIn</literal> and
<literal>@UserDatabase</literal> are custom "
-"qualifier annotations:"
+msgid "<literal>@LoggedIn</literal> and
<literal>@UserDatabase</literal> are custom qualifier annotations:"
msgstr ""
#. Tag: programlisting
#: example.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD, PARAMETER, FIELD})\n"
"public @interface LoggedIn {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target({TYPE, METHOD, FIELD})\n"
-"@BindingType\n"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
+"@Target({TYPE, METHOD, PARAMETER, FIELD})\n"
"public @interface LoggedIn {}]]>"
#. Tag: programlisting
#: example.xml:28
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
"@Target({METHOD, PARAMETER, FIELD})\n"
"public @interface UserDatabase {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target({TYPE, METHOD, FIELD})\n"
-"@BindingType\n"
-"public @interface LoggedIn {}]]>"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
+"@Target({METHOD, PARAMETER, FIELD})\n"
+"public @interface UserDatabase {}]]>"
#. Tag: para
#: example.xml:30
#, no-c-format
-msgid ""
-"We need an adaptor bean to expose our typesafe
<literal>EntityManager</"
-"literal>:"
+msgid "We need an adaptor bean to expose our typesafe
<literal>EntityManager</literal>:"
msgstr ""
#. Tag: programlisting
@@ -242,19 +217,19 @@
" @Produces @UserDatabase @PersistenceContext EntityManager userDatabase;\n"
"}]]>"
msgstr ""
+"<![CDATA[public class UserDatabaseProducer {\n"
+" @Produces @UserDatabase @PersistenceContext EntityManager userDatabase;\n"
+"}]]>"
#. Tag: para
#: example.xml:36
#, fuzzy, no-c-format
-msgid ""
-"Now <literal>DocumentEditor</literal>, or any other bean, can easily
inject "
-"the current user:"
-msgstr ""
-"Ora qualsiasi altro Web Bean può facilmente iniettare l'utente corrente:"
+msgid "Now <literal>DocumentEditor</literal>, or any other bean, can
easily inject the current user:"
+msgstr "Ora qualsiasi altro Web Bean può facilmente iniettare l'utente
corrente:"
#. Tag: programlisting
#: example.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class DocumentEditor {\n"
" @Inject Document document;\n"
@@ -268,16 +243,14 @@
"}]]>"
msgstr ""
"<![CDATA[public class DocumentEditor {\n"
-"\n"
-" @Current Document document;\n"
-" @LoggedIn User currentUser;\n"
-" @PersistenceContext EntityManager docDatabase;\n"
+" @Inject Document document;\n"
+" @Inject @LoggedIn User currentUser;\n"
+" @Inject @DocumentDatabase EntityManager docDatabase;\n"
" \n"
-" public void save() {\n"
-" document.setCreatedBy(currentUser);\n"
-" docDatabase.persist(document);\n"
-" }\n"
-" \n"
+" public void save() {\n"
+" document.setCreatedBy(currentUser);\n"
+" docDatabase.persist(document);\n"
+" }\n"
"}]]>"
#. Tag: para
@@ -294,17 +267,16 @@
" signed in as #{currentUser.username}\n"
"</h:panelGroup>]]>"
msgstr ""
+"<![CDATA[<h:panelGroup rendered=\"#{login.loggedIn}\">\n"
+" signed in as #{currentUser.username}\n"
+"</h:panelGroup>]]>"
#. Tag: para
#: example.xml:44
#, fuzzy, no-c-format
-msgid ""
-"Hopefully, this example gave you a taste of the CDI programming model. In "
-"the next chapter, we'll explore dependency injection in greater depth."
-msgstr ""
-"Quest'esempio è un assaggio del modello di programmazione con Web Bean. Nel
"
-"prossimo capitolo esploreremo la dependency injection dei Web Bean con "
-"maggior profondità."
+msgid "Hopefully, this example gave you a taste of the CDI programming model. In the
next chapter, we'll explore dependency injection in greater depth."
+msgstr "Quest'esempio è un assaggio del modello di programmazione con Web Bean.
Nel prossimo capitolo esploreremo la dependency injection dei Web Bean con maggior
profondità."
#~ msgid "Of course, <literal>@LoggedIn</literal> is a binding
annotation:"
#~ msgstr "<literal>@LoggedIn</literal> è un'annotazione di
binding:"
+
Modified: doc/trunk/reference/it-IT/extensions.po
===================================================================
--- doc/trunk/reference/it-IT/extensions.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/extensions.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -3,11 +3,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
-"VERSION\n"
+"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection
VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-21 20:36+0100\n"
+"PO-Revision-Date: 2009-11-23 21:21+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -16,43 +15,31 @@
#. Tag: title
#: extensions.xml:8
-#, fuzzy, no-c-format
+#, no-c-format
msgid "CDI extensions available as part of Weld"
-msgstr "Estensioni JSR-299 disponibili come parte di Web Beans"
+msgstr "Estensioni CDI disponibili come parte di Weld"
#. Tag: para
#: extensions.xml:11
-#, fuzzy, no-c-format
+#, no-c-format
msgid "These modules are usable on any JSR-299 implementation, not just Weld!"
-msgstr ""
-"Questi moduli sono utilizzabili su qualsiasi implementazione JSR-299, non "
-"solo Web Beans!"
+msgstr "Questi moduli sono utilizzabili su qualsiasi implementazione JSR-299, non
solo Weld!"
#. Tag: title
#: extensions.xml:17
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Weld Logger"
-msgstr "Web Beans Logger"
+msgstr "Weld Logger"
#. Tag: para
#: extensions.xml:19
#, fuzzy, no-c-format
-msgid ""
-"Adding logging to your application is now even easier with simple injection "
-"of a logger object into any CDI bean. Simply annotate a
<literal>org.jboss."
-"weld.log.Log</literal> type member with the
<emphasis>@Logger</emphasis> "
-"qualifier annotation and an appropriate logger object will be injected into "
-"any instance of the bean."
-msgstr ""
-"Aggiungere la parte di logging alla propria applicazione adesso è "
-"facilissimo con la semplice injection di un oggetto logger in un qualsiasi "
-"bean JSR-299. Semplicemente si annoti un membro di tipo org.jboss.webbeans."
-"log.Log con <emphasis>@Logger</emphasis> ed un oggetto logger
appropriato "
-"verrà iniettato in una qualsiasi istanza del bean."
+msgid "Adding logging to your application is now even easier with simple injection
of a logger object into any CDI bean. Simply annotate a
<literal>org.jboss.weld.log.Log</literal> type member with the
<emphasis>@Logger</emphasis> qualifier annotation and an appropriate logger
object will be injected into any instance of the bean."
+msgstr "Aggiungere la parte di logging alla propria applicazione adesso è
facilissimo con la semplice injection di un oggetto logger in un qualsiasi bean JSR-299.
Semplicemente si annoti un membro di tipo org.jboss.webbeans.log.Log con
<emphasis>@Logger</emphasis> ed un oggetto logger appropriato verrà iniettato
in una qualsiasi istanza del bean."
#. Tag: programlisting
#: extensions.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[import org.jboss.weld.annotation.Logger;\n"
"import org.jboss.weld.log.Log;\n"
@@ -67,80 +54,39 @@
" }\n"
"}]]>"
msgstr ""
-"<![CDATA[public class Checkout {\n"
-" import org.jboss.webbeans.annotation.Logger;\n"
-" import org.jboss.webbeans.log.Log;\n"
-" \n"
-" @Logger\n"
-" private Log log;\n"
+"<![CDATA[import org.jboss.weld.annotation.Logger;\n"
+"import org.jboss.weld.log.Log;\n"
"\n"
-" void invoiceItems() {\n"
-" ShoppingCart cart;\n"
-" . . .\n"
-" log.debug(\"Items invoiced for {0}\", cart);\n"
-" }\n"
-" \n"
+"public class Checkout {\n"
+" private @Inject @Logger Log log;\n"
+"\n"
+" public void invoiceItems() {\n"
+" ShoppingCart cart;\n"
+" ...\n"
+" log.debug(\"Items invoiced for {0}\", cart);\n"
+" }\n"
"}]]>"
#. Tag: para
#: extensions.xml:28
#, fuzzy, no-c-format
-msgid ""
-"The example shows how objects can be interpolated into a message. This "
-"interpolation is done using
<emphasis>java.text.MessageFormat</emphasis>, so "
-"see the JavaDoc for that class for more details. In this case, the "
-"<literal>ShoppingCart</literal> should have implemented the "
-"<emphasis>toString()</emphasis> method to produce a human readable
value "
-"that is meaningful in messages. Normally, this call would have involved "
-"evaluating cart.toString() with String concatenation to produce a single "
-"String argument. Thus it was necessary to surround the call with an if-"
-"statement using the condition <emphasis>log.isDebugEnabled()</emphasis>
to "
-"avoid the expensive String concatenation if the message was not actually "
-"going to be used. However, when using
<literal>@Logger</literal>-injected "
-"logging, the conditional test can be left out since the object arguments are
"
-"not evaluated unless the message is going to be logged."
-msgstr ""
-"L'esempio mostra come un oggetto può essere interpolato in un messaggio.
"
-"Quest'interpolazione è fatta usando
<emphasis>java.text.MessageFormat</"
-"emphasis>, quindi si veda JavaDoc di questa class per ulteriori dettagli. In
"
-"questo caso ShoppingCart dovrebbe aver implementato il metodo "
-"<emphasis>toString()</emphasis> per produrre un valore leggibile che
sia "
-"significativo nei messaggi.Normalmente questa chiamata comporterebbe la "
-"valutazione di cart.toString() con una concatenazione di stringa per "
-"produrre un singolo argomento stringa. Questo è necessario per racchiudere "
-"la chiamata con uno statement if usando la condizione <emphasis>log."
-"isDebugEnabled()</emphasis>per evitare la costosa concatenazione stringa se
"
-"il messaggio in realtà non viene usato. Comunque quando si usa il logging "
-"iniettato con @Logger, il test condizionale può essere tralasciato poiché "
-"gli argomenti dell'oggetto non vengono valutati amenoché il messaggio non
"
-"venga loggato."
+msgid "The example shows how objects can be interpolated into a message. This
interpolation is done using <emphasis>java.text.MessageFormat</emphasis>, so
see the JavaDoc for that class for more details. In this case, the
<literal>ShoppingCart</literal> should have implemented the
<emphasis>toString()</emphasis> method to produce a human readable value that
is meaningful in messages. Normally, this call would have involved evaluating
cart.toString() with String concatenation to produce a single String argument. Thus it was
necessary to surround the call with an if-statement using the condition
<emphasis>log.isDebugEnabled()</emphasis> to avoid the expensive String
concatenation if the message was not actually going to be used. However, when using
<literal>@Logger</literal>-injected logging, the conditional test can be left
out since the object arguments are not evaluated unless the message is going to be
logged."
+msgstr "L'esempio mostra come un oggetto può essere interpolato in un messaggio.
Quest'interpolazione è fatta usando
<emphasis>java.text.MessageFormat</emphasis>, quindi si veda JavaDoc di questa
class per ulteriori dettagli. In questo caso ShoppingCart dovrebbe aver implementato il
metodo <emphasis>toString()</emphasis> per produrre un valore leggibile che
sia significativo nei messaggi.Normalmente questa chiamata comporterebbe la valutazione di
cart.toString() con una concatenazione di stringa per produrre un singolo argomento
stringa. Questo è necessario per racchiudere la chiamata con uno statement if usando la
condizione <emphasis>log.isDebugEnabled()</emphasis>per evitare la costosa
concatenazione stringa se il messaggio in realtà non viene usato. Comunque quando si usa
il logging iniettato con @Logger, il test condizionale può essere tralasciato poiché gli
argomenti dell'oggetto non vengono valutati amenoché il messaggio non venga
loggato."
#. Tag: para
#: extensions.xml:41
#, fuzzy, no-c-format
-msgid ""
-"You can add the Weld Logger to your project by including weld-logger.jar, "
-"sl4j-api.jar and sl4j-jdk14.jar to your project. Alternatively, express a "
-"dependency on the <literal>org.jboss.weld:weld-logger</literal> Maven
"
-"artifact."
-msgstr ""
-"Si può aggiungere il Logger Web Bean al proprio progetto includendo nel "
-"progetto webbeans-logger.jar e webbeans-logging.jar. In alternativa, si può "
-"esprimere un dipendenza nell'artifact Maven
<literal>org.jboss.webbeans:"
-"webbeans-logger</literal>."
+msgid "You can add the Weld Logger to your project by including weld-logger.jar,
sl4j-api.jar and sl4j-jdk14.jar to your project. Alternatively, express a dependency on
the <literal>org.jboss.weld:weld-logger</literal> Maven artifact."
+msgstr "Si può aggiungere il Logger Web Bean al proprio progetto includendo nel
progetto webbeans-logger.jar e webbeans-logging.jar. In alternativa, si può esprimere un
dipendenza nell'artifact Maven
<literal>org.jboss.webbeans:webbeans-logger</literal>."
#. Tag: para
#: extensions.xml:46
#, fuzzy, no-c-format
-msgid ""
-"If you are using Weld as your JSR-299 implementation, there's no need to
"
-"include sl4j as it's already included (and used internally)."
-msgstr ""
-"Se si usa Web Beans come implementazione JSR-299, non c'è alcun bisogno di
"
-"includere <literal>webbeans-logging.jar</literal> poiché lo è
già."
+msgid "If you are using Weld as your JSR-299 implementation, there's no need to
include sl4j as it's already included (and used internally)."
+msgstr "Se si usa Web Beans come implementazione JSR-299, non c'è alcun bisogno
di includere <literal>webbeans-logging.jar</literal> poiché lo è già."
#~ msgid "TODO"
#~ msgstr "DA FARE"
-
#~ msgid "XSD Generator for JSR-299 XML deployment descriptors"
#~ msgstr "Generatore XSD per descrittori di deploy XML JSR-299"
+
Modified: doc/trunk/reference/it-IT/weldexamples.po
===================================================================
--- doc/trunk/reference/it-IT/weldexamples.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/weldexamples.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,8 +6,8 @@
"Project-Id-Version: Weld_-_JSR-299_Reference_Implementation VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-11-11 15:00+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2009-11-23 21:23+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,10 +22,7 @@
#. Tag: para
#: weldexamples.xml:7
#, no-c-format
-msgid ""
-"It's time to pull the covers back and dive into the internals of Weld "
-"example applications. Let's start with the simpler of the two examples, "
-"<literal>weld-numberguess</literal>."
+msgid "It's time to pull the covers back and dive into the internals of Weld
example applications. Let's start with the simpler of the two examples,
<literal>weld-numberguess</literal>."
msgstr ""
#. Tag: title
@@ -37,31 +34,19 @@
#. Tag: para
#: weldexamples.xml:15
#, no-c-format
-msgid ""
-"In the numberguess application you get 10 attempts to guess a number between
"
-"1 and 100. After each attempt, you're told whether your guess was too high
"
-"or too low."
+msgid "In the numberguess application you get 10 attempts to guess a number between
1 and 100. After each attempt, you're told whether your guess was too high or too
low."
msgstr ""
#. Tag: para
#: weldexamples.xml:20
#, no-c-format
-msgid ""
-"The numberguess example is comprised of a number of beans, configuration "
-"files and Facelets (JSF) views, packaged as a WAR module. Let's start by
"
-"examining the configuration files."
+msgid "The numberguess example is comprised of a number of beans, configuration
files and Facelets (JSF) views, packaged as a WAR module. Let's start by examining the
configuration files."
msgstr ""
#. Tag: para
#: weldexamples.xml:25
#, no-c-format
-msgid ""
-"All the configuration files for this example are located in
<literal>WEB-INF/"
-"</literal>, which can be found in the
<literal>src/main/webapp</literal> "
-"directory of the example. First, we have the JSF 2.0 version of "
-"<literal>faces-config.xml</literal>. A standardized version of Facelets
is "
-"the default view handler in JSF 2.0, so there's really nothing that we have
"
-"to configure. Thus, the configuration consists of only the root element."
+msgid "All the configuration files for this example are located in
<literal>WEB-INF/</literal>, which can be found in the
<literal>src/main/webapp</literal> directory of the example. First, we have
the JSF 2.0 version of <literal>faces-config.xml</literal>. A standardized
version of Facelets is the default view handler in JSF 2.0, so there's really nothing
that we have to configure. Thus, the configuration consists of only the root
element."
msgstr ""
#. Tag: programlisting
@@ -76,14 +61,18 @@
"
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd\">\n"
"</faces-config>]]>"
msgstr ""
+"<![CDATA[<faces-config version=\"2.0\"\n"
+"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+"
http://java.sun.com/xml/ns/javaee\n"
+"
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd\">\n"
+"</faces-config>]]>"
#. Tag: para
#: weldexamples.xml:35
#, no-c-format
-msgid ""
-"There's also an empty <literal>beans.xml</literal> file, which
tells the "
-"container to look for beans in this application and to activate the CDI "
-"services."
+msgid "There's also an empty <literal>beans.xml</literal> file,
which tells the container to look for beans in this application and to activate the CDI
services."
msgstr ""
#. Tag: para
@@ -96,10 +85,7 @@
#: weldexamples.xml:42
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"10\"/> "
-"<area id=\"faces.servlet.mapping\" coords=\"16\"/>
<area id=\"faces.default."
-"suffix\" coords=\"21\"/> <area
id=\"session.timeout\" coords=\"26\"/> </"
-"areaspec> <programlisting role=\"XML\"><![CDATA[<web-app
version=\"2.5\"\n"
+"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"10\"/> <area id=\"faces.servlet.mapping\"
coords=\"16\"/> <area id=\"faces.default.suffix\"
coords=\"21\"/> <area id=\"session.timeout\"
coords=\"26\"/> </areaspec> <programlisting
role=\"XML\"><![CDATA[<web-app version=\"2.5\"\n"
"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"\n"
@@ -129,24 +115,7 @@
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
"\n"
-"</web-app>]]></programlisting> <calloutlist> <callout
arearefs=\"faces."
-"servlet\"> <para> Enable and initialize the JSF servlet </para>
</callout> "
-"<callout arearefs=\"faces.servlet.mapping\"> <para> Configure
requests for "
-"URLs ending in <literal>.jsf</literal> to be handled by JSF
</para> </"
-"callout> <callout arearefs=\"faces.default.suffix\">
<para> Tell JSF that we "
-"will be giving our JSF views (Facelets templates) an extension of
<literal>."
-"xhtml</literal> </para> </callout> <callout
arearefs=\"session.timeout\"> "
-"<para> Configure a session timeout of 10 minutes </para>
</callout> </"
-"calloutlist> </programlistingco> <note> <para> This demo uses
JSF 2 as the "
-"view framework, but you can use Weld with any servlet-based web framework, "
-"such as JSF 1.2 or Wicket. </para> </note> <para> Let's take
a look at the "
-"main JSF view, <literal>src/main/webapp/home.xhtml</literal>.
</para> "
-"<programlistingco> <areaspec> <area id=\"template\"
coords=\"8\"/> <area id="
-"\"statusMessages\" coords=\"12\"/> <area
id=\"instructions\" coords=\"20\"/> "
-"<area id=\"guess\" coords=\"27\"/> <area
id=\"validator\" coords=\"29\"/> "
-"<area id=\"submit\" coords=\"30\"/> </areaspec>
<programlisting role=\"HTML"
-"\"><![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN"
-"\"\n"
+"</web-app>]]></programlisting> <calloutlist> <callout
arearefs=\"faces.servlet\"> <para> Enable and initialize the JSF
servlet </para> </callout> <callout
arearefs=\"faces.servlet.mapping\"> <para> Configure requests for URLs
ending in <literal>.jsf</literal> to be handled by JSF </para>
</callout> <callout arearefs=\"faces.default.suffix\"> <para>
Tell JSF that we will be giving our JSF views (Facelets templates) an extension of
<literal>.xhtml</literal> </para> </callout> <callout
arearefs=\"session.timeout\"> <para> Configure a session timeout of 10
minutes </para> </callout> </calloutlist> </programlistingco>
<note> <para> This demo uses JSF 2 as the view framework, but you can use Weld
with any servlet-based web framework, such as JSF 1.2 or Wicket. </para>
</note> <para> Let's take a look at the main JSF view,
<literal>src/main/webapp/home.xhtml</literal>. </para>
<programlistingco> <areaspec> <area id=\"template\"
coords=\"8\"/> <area id=\"statusMessages\" coords=\"!
12\"/> <area id=\"instructions\" coords=\"20\"/>
<area id=\"guess\" coords=\"27\"/> <area
id=\"validator\" coords=\"29\"/> <area id=\"submit\"
coords=\"30\"/> </areaspec> <programlisting
role=\"HTML\"><![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML
1.0 Transitional//EN\"\n"
"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
"<html
xmlns=\"http://www.w3.org/1999/xhtml\"\n"
"
xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
@@ -160,62 +129,37 @@
" <div style=\"color: red\">\n"
" <h:messages id=\"messages\"
globalOnly=\"false\"/>\n"
" <h:outputText id=\"Higher\"
value=\"Higher!\"\n"
-" rendered=\"#{game.number gt game.guess and game.guess ne
0}"
-"\"/>\n"
+" rendered=\"#{game.number gt game.guess and game.guess ne
0}\"/>\n"
" <h:outputText id=\"Lower\"
value=\"Lower!\"\n"
-" rendered=\"#{game.number lt game.guess and game.guess ne
0}"
-"\"/>\n"
+" rendered=\"#{game.number lt game.guess and game.guess ne
0}\"/>\n"
" </div>\n"
" \n"
" <div>\n"
-" I'm thinking of a number between #{game.smallest} and
#{game."
-"biggest}.\n"
+" I'm thinking of a number between #{game.smallest} and
#{game.biggest}.\n"
" You have #{game.remainingGuesses} guesses remaining.\n"
" </div>\n"
" \n"
" <div>\n"
" Your guess: \n"
" <h:inputText id=\"inputGuess\"
value=\"#{game.guess}\"\n"
-" size=\"3\" required=\"true\"
disabled=\"#{game.number eq "
-"game.guess}\"\n"
+" size=\"3\" required=\"true\"
disabled=\"#{game.number eq game.guess}\"\n"
" validator=\"#{game.validateNumberRange}\"/>\n"
" <h:commandButton id=\"guessButton\"
value=\"Guess\" \n"
-" action=\"#{game.check}\" disabled=\"#{game.number
eq game."
-"guess}\"/>\n"
+" action=\"#{game.check}\" disabled=\"#{game.number
eq game.guess}\"/>\n"
" </div>\n"
" <div>\n"
-" <h:commandButton id=\"restartButton\"
value=\"Reset\" action="
-"\"#{game.reset}\" immediate=\"true\"/>\n"
+" <h:commandButton id=\"restartButton\"
value=\"Reset\" action=\"#{game.reset}\"
immediate=\"true\"/>\n"
" </div>\n"
" </h:form>\n"
" </ui:define>\n"
" </ui:composition>\n"
-"</html>]]></programlisting> <calloutlist> <callout
arearefs=\"template\"> "
-"<para> Facelets is the built-in templating language for JSF. Here we are
"
-"wrapping our page in a template which defines the layout. </para>
</callout> "
-"<callout arearefs=\"statusMessages\"> <para> There are a
number of messages "
-"which can be sent to the user, \"Higher!\", \"Lower!\" and
\"Correct!\" </"
-"para> </callout> <callout arearefs=\"instructions\">
<para> As the user "
-"guesses, the range of numbers they can guess gets smaller - this sentence "
-"changes to make sure they know the number range of a valid guess. </para>
</"
-"callout> <callout arearefs=\"guess\"> <para> This input
field is bound to a "
-"bean property using a value expression. </para> </callout> <callout
arearefs="
-"\"validator\"> <para> A validator binding is used to make sure
the user "
-"doesn't accidentally input a number outside of the range in which they can
"
-"guess - if the validator wasn't here, the user might use up a guess on an
"
-"out of bounds number. </para> </callout> <callout
arearefs=\"submit\"> "
-"<para> And, of course, there must be a way for the user to send their guess
"
-"to the server. Here we bind to an action method on the bean. </para>
</"
-"callout> </calloutlist> </programlistingco>"
+"</html>]]></programlisting> <calloutlist> <callout
arearefs=\"template\"> <para> Facelets is the built-in templating
language for JSF. Here we are wrapping our page in a template which defines the layout.
</para> </callout> <callout arearefs=\"statusMessages\">
<para> There are a number of messages which can be sent to the user,
\"Higher!\", \"Lower!\" and \"Correct!\" </para>
</callout> <callout arearefs=\"instructions\"> <para> As the
user guesses, the range of numbers they can guess gets smaller - this sentence changes to
make sure they know the number range of a valid guess. </para> </callout>
<callout arearefs=\"guess\"> <para> This input field is bound to a
bean property using a value expression. </para> </callout> <callout
arearefs=\"validator\"> <para> A validator binding is used to make sure
the user doesn't accidentally input a number outside of the range in which they can
guess - if the validator wasn't here, the user might use up a guess on an out of
bounds num!
ber. </para> </callout> <callout arearefs=\"submit\">
<para> And, of course, there must be a way for the user to send their guess to the
server. Here we bind to an action method on the bean. </para> </callout>
</calloutlist> </programlistingco>"
msgstr ""
#. Tag: para
#: weldexamples.xml:142
#, no-c-format
-msgid ""
-"The example exists of 4 classes, the first two of which are qualifiers. "
-"First, there is the <literal>@Random</literal> qualifier, used for
injecting "
-"a random number:"
+msgid "The example exists of 4 classes, the first two of which are qualifiers.
First, there is the <literal>@Random</literal> qualifier, used for injecting a
random number:"
msgstr ""
#. Tag: programlisting
@@ -227,13 +171,15 @@
"@Retention(RUNTIME)\n"
"public @interface Random {}]]>"
msgstr ""
+"<![CDATA[@Qualifier\n"
+"@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
+"@Retention(RUNTIME)\n"
+"public @interface Random {}]]>"
#. Tag: para
#: weldexamples.xml:149
#, no-c-format
-msgid ""
-"There is also the <literal>@MaxNumber</literal> qualifier, used for
"
-"injecting the maximum number that can be injected:"
+msgid "There is also the <literal>@MaxNumber</literal> qualifier, used
for injecting the maximum number that can be injected:"
msgstr ""
#. Tag: programlisting
@@ -246,14 +192,15 @@
"public @interface MaxNumber {}\n"
"]]>"
msgstr ""
+"<![CDATA[@Qualifier\n"
+"@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
+"@Retention(RUNTIME)\n"
+"public @interface Random {}]]>"
#. Tag: para
#: weldexamples.xml:156
#, no-c-format
-msgid ""
-"The application-scoped <literal>Generator</literal> class is
responsible for "
-"creating the random number, via a producer method. It also exposes the "
-"maximum possible number via a producer method:"
+msgid "The application-scoped <literal>Generator</literal> class is
responsible for creating the random number, via a producer method. It also exposes the
maximum possible number via a producer method:"
msgstr ""
#. Tag: programlisting
@@ -263,8 +210,7 @@
"<![CDATA[@ApplicationScoped\n"
"public class Generator implements Serializable {\n"
"\n"
-" private java.util.Random random = new java.util.Random(System."
-"currentTimeMillis());\n"
+" private java.util.Random random = new
java.util.Random(System.currentTimeMillis());\n"
" \n"
" private int maxNumber = 100;\n"
" \n"
@@ -282,43 +228,49 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped\n"
+"public class Generator implements Serializable {\n"
+"\n"
+" private java.util.Random random = new
java.util.Random(System.currentTimeMillis());\n"
+" \n"
+" private int maxNumber = 100;\n"
+" \n"
+" java.util.Random getRandom() {\n"
+" return random;\n"
+" }\n"
+" \n"
+" @Produces @Random int next() { \n"
+" return getRandom().nextInt(maxNumber); \n"
+" }\n"
+" \n"
+" @Produces @MaxNumber int getMaxNumber() {\n"
+" return maxNumber;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:163
#, no-c-format
-msgid ""
-"The <literal>Generator</literal> is application scoped, so we don't
get a "
-"different random each time."
+msgid "The <literal>Generator</literal> is application scoped, so we
don't get a different random each time."
msgstr ""
#. Tag: para
#: weldexamples.xml:168
#, no-c-format
-msgid ""
-"The package declaration and imports have been excluded from these listings. "
-"The complete listing is available in the example source code."
+msgid "The package declaration and imports have been excluded from these listings.
The complete listing is available in the example source code."
msgstr ""
#. Tag: para
#: weldexamples.xml:174
#, no-c-format
-msgid ""
-"The final bean in the application is the session-scoped
<literal>Game</"
-"literal> class. This is the primary entry point of the application. It's
"
-"responsible for setting up or resetting the game, capturing and validating "
-"the user's guess and providing feedback to the user with a "
-"<literal>FacesMessage</literal>. We've used the post-construct
lifecycle "
-"method to initialize the game by retrieving a random number from the "
-"<literal>@Random Instance<Integer></literal> bean."
+msgid "The final bean in the application is the session-scoped
<literal>Game</literal> class. This is the primary entry point of the
application. It's responsible for setting up or resetting the game, capturing and
validating the user's guess and providing feedback to the user with a
<literal>FacesMessage</literal>. We've used the post-construct lifecycle
method to initialize the game by retrieving a random number from the
<literal>@Random Instance<Integer></literal> bean."
msgstr ""
#. Tag: para
#: weldexamples.xml:182
#, no-c-format
-msgid ""
-"You'll notice that we've also added the
<literal>@Named</literal> annotation "
-"to this class. This annotation is only required when you want to make the "
-"bean accessible to a JSF view via EL (i.e., #{game})."
+msgid "You'll notice that we've also added the
<literal>@Named</literal> annotation to this class. This annotation is only
required when you want to make the bean accessible to a JSF view via EL (i.e.,
#{game})."
msgstr ""
#. Tag: programlisting
@@ -348,8 +300,7 @@
" smallest = guess + 1;\n"
" }\n"
" else if (guess == number) {\n"
-" FacesContext.getCurrentInstance().addMessage(null, new FacesMessage"
-"(\"Correct!\"));\n"
+" FacesContext.getCurrentInstance().addMessage(null, new
FacesMessage(\"Correct!\"));\n"
" }\n"
" remainingGuesses--;\n"
" }\n"
@@ -363,8 +314,7 @@
" this.number = randomNumber.get();\n"
" }\n"
" \n"
-" public void validateNumberRange(FacesContext context, UIComponent "
-"toValidate, Object value) {\n"
+" public void validateNumberRange(FacesContext context, UIComponent toValidate,
Object value) {\n"
" if (remainingGuesses <= 0) {\n"
" FacesMessage message = new FacesMessage(\"No guesses
left!\");\n"
" context.addMessage(toValidate.getClientId(context), message);\n"
@@ -407,6 +357,85 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Named\n"
+"@SessionScoped\n"
+"public class Game implements Serializable {\n"
+"\n"
+" private int number;\n"
+" private int guess;\n"
+" private int smallest;\n"
+" private int biggest;\n"
+" private int remainingGuesses;\n"
+"\n"
+" @Inject @MaxNumber private int maxNumber;\n"
+" @Inject @Random Instance<Integer> randomNumber;\n"
+" \n"
+" public Game() {}\n"
+" \n"
+" public void check() {\n"
+" if (guess > number) {\n"
+" biggest = guess - 1;\n"
+" }\n"
+" else if (guess < number) {\n"
+" smallest = guess + 1;\n"
+" }\n"
+" else if (guess == number) {\n"
+" FacesContext.getCurrentInstance().addMessage(null, new
FacesMessage(\"Correct!\"));\n"
+" }\n"
+" remainingGuesses--;\n"
+" }\n"
+" \n"
+" @PostConstruct\n"
+" public void reset() {\n"
+" this.smallest = 0;\n"
+" this.guess = 0;\n"
+" this.remainingGuesses = 10;\n"
+" this.biggest = maxNumber;\n"
+" this.number = randomNumber.get();\n"
+" }\n"
+" \n"
+" public void validateNumberRange(FacesContext context, UIComponent toValidate,
Object value) {\n"
+" if (remainingGuesses <= 0) {\n"
+" FacesMessage message = new FacesMessage(\"No guesses
left!\");\n"
+" context.addMessage(toValidate.getClientId(context), message);\n"
+" ((UIInput) toValidate).setValid(false);\n"
+" return;\n"
+" }\n"
+" int input = (Integer) value;\n"
+"\n"
+" if (input < smallest || input > biggest) {\n"
+" ((UIInput) toValidate).setValid(false);\n"
+"\n"
+" FacesMessage message = new FacesMessage(\"Invalid
guess\");\n"
+" context.addMessage(toValidate.getClientId(context), message);\n"
+" }\n"
+" }\n"
+"\n"
+" public int getNumber() {\n"
+" return number;\n"
+" }\n"
+" \n"
+" public int getGuess() {\n"
+" return guess;\n"
+" }\n"
+" \n"
+" public void setGuess(int guess) {\n"
+" this.guess = guess;\n"
+" }\n"
+" \n"
+" public int getSmallest() {\n"
+" return smallest;\n"
+" }\n"
+" \n"
+" public int getBiggest() {\n"
+" return biggest;\n"
+" }\n"
+" \n"
+" public int getRemainingGuesses() {\n"
+" return remainingGuesses;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: title
#: weldexamples.xml:190
@@ -417,32 +446,19 @@
#. Tag: para
#: weldexamples.xml:192
#, no-c-format
-msgid ""
-"A couple of modifications must be made to the numberguess artifact in order "
-"to deploy it to Tomcat or Jetty. First, Weld must be deployed as a Web "
-"Application library under <literal>WEB-INF/lib</literal> since the
servlet "
-"container does not provide the CDI services. For your convenience we provide
"
-"a single JAR suitable for running Weld in any servlet container (including "
-"Jetty), <literal>weld-servlet.jar</literal>."
+msgid "A couple of modifications must be made to the numberguess artifact in order
to deploy it to Tomcat or Jetty. First, Weld must be deployed as a Web Application library
under <literal>WEB-INF/lib</literal> since the servlet container does not
provide the CDI services. For your convenience we provide a single JAR suitable for
running Weld in any servlet container (including Jetty),
<literal>weld-servlet.jar</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:200
#, no-c-format
-msgid ""
-"You must also include the JARs for JSF, EL, and the common annotations "
-"(<literal>jsr250-api.jar</literal>), all of which are provided by the
Java "
-"EE platform (a Java EE application server). Are you starting to appreciate "
-"why a Java EE platform is worth using?"
+msgid "You must also include the JARs for JSF, EL, and the common annotations
(<literal>jsr250-api.jar</literal>), all of which are provided by the Java EE
platform (a Java EE application server). Are you starting to appreciate why a Java EE
platform is worth using?"
msgstr ""
#. Tag: para
#: weldexamples.xml:207
#, no-c-format
-msgid ""
-"Second, we need to explicitly specify the servlet listener in
<literal>web."
-"xml</literal>, again because the container isn't doing this stuff for
you. "
-"The servlet listener boots Weld and controls it's interaction with
requests."
+msgid "Second, we need to explicitly specify the servlet listener in
<literal>web.xml</literal>, again because the container isn't doing this
stuff for you. The servlet listener boots Weld and controls it's interaction with
requests."
msgstr ""
#. Tag: programlisting
@@ -450,20 +466,17 @@
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
-"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-"
-"class>\n"
+"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
"</listener>]]>"
msgstr ""
+"<![CDATA[<listener>\n"
+"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
+"</listener>]]>"
#. Tag: para
#: weldexamples.xml:215
#, no-c-format
-msgid ""
-"When Weld boots, it places the <literal>javax.enterprise.inject.spi."
-"BeanManager</literal>, the portable SPI for obtaining bean instances, in the
"
-"ServletContext under a variable name equal to the fully-qualified interface "
-"name. You generally don't need to access this interface, but Weld makes use
"
-"of it."
+msgid "When Weld boots, it places the
<literal>javax.enterprise.inject.spi.BeanManager</literal>, the portable SPI
for obtaining bean instances, in the ServletContext under a variable name equal to the
fully-qualified interface name. You generally don't need to access this interface, but
Weld makes use of it."
msgstr ""
#. Tag: title
@@ -475,41 +488,25 @@
#. Tag: para
#: weldexamples.xml:227
#, no-c-format
-msgid ""
-"Weld includes a number of portable extensions for JSR-299, including an "
-"extension for Wicket, which allows you to inject beans into Wicket "
-"components and leverage the conversation context. In this section, we'll
"
-"walk you through the Wicket version of the numberguess example."
+msgid "Weld includes a number of portable extensions for JSR-299, including an
extension for Wicket, which allows you to inject beans into Wicket components and leverage
the conversation context. In this section, we'll walk you through the Wicket version
of the numberguess example."
msgstr ""
#. Tag: para
#: weldexamples.xml:234
#, no-c-format
-msgid ""
-"You may want to review the Wicket documentation at <ulink
url=\"http://"
-"wicket.apache.org/\">http://wicket.apache.org/</ulink> before reading
this "
-"section, if you aren't already familiar with the framework."
+msgid "You may want to review the Wicket documentation at <ulink
url=\"http://wicket.apache.org/\">http://wicket.apache.org/&...
before reading this section, if you aren't already familiar with the framework."
msgstr ""
#. Tag: para
#: weldexamples.xml:241
#, no-c-format
-msgid ""
-"Wicket is another environment that relies on the Weld servlet extension. The
"
-"use of <ulink url=\"http://jetty.mortbay.org\">Jetty</ulink>
is common in "
-"the Wicket community, and is thus chosen here as the runtime container. "
-"You've seen already that Jetty is perfectly capable of running CDI "
-"applications with Weld add-ons, and this environment is no different."
+msgid "Wicket is another environment that relies on the Weld servlet extension. The
use of <ulink url=\"http://jetty.mortbay.org\">Jetty</ulink> is
common in the Wicket community, and is thus chosen here as the runtime container.
You've seen already that Jetty is perfectly capable of running CDI applications with
Weld add-ons, and this environment is no different."
msgstr ""
#. Tag: para
#: weldexamples.xml:249
#, no-c-format
-msgid ""
-"We'll also be using the Eclipse IDE in these examples. Instructions are "
-"provided later for running the example from the command line, but since "
-"you'll likely need to do more than just deploy examples, we'll get setup in
"
-"this full development environment."
+msgid "We'll also be using the Eclipse IDE in these examples. Instructions are
provided later for running the example from the command line, but since you'll likely
need to do more than just deploy examples, we'll get setup in this full development
environment."
msgstr ""
#. Tag: title
@@ -521,63 +518,37 @@
#. Tag: para
#: weldexamples.xml:259
#, no-c-format
-msgid ""
-"To use the Wicket example in Eclipse, you have one of two choices. You can "
-"either use a Maven plugin to generate a regular Eclipse Web project, or you "
-"can open the example natively using the <ulink
src=\"http://m2eclipse."
-"sonatype.org/\">m2eclipse plugin</ulink>. Since the Weld source code
relies "
-"so heavily on Maven, we encourage you to bite the bullet and adopt the "
-"m2eclipse plugin. Both approaches are described here for your convenience.."
+msgid "To use the Wicket example in Eclipse, you have one of two choices. You can
either use a Maven plugin to generate a regular Eclipse Web project, or you can open the
example natively using the <ulink
src=\"http://m2eclipse.sonatype.org/\">m2eclipse plugin</ulink>. Since
the Weld source code relies so heavily on Maven, we encourage you to bite the bullet and
adopt the m2eclipse plugin. Both approaches are described here for your
convenience.."
msgstr ""
#. Tag: para
#: weldexamples.xml:267
#, no-c-format
-msgid ""
-"If you have m2eclipse installed, you can open any Maven project directly. "
-"From within Eclipse, select <emphasis>File -> Import... -> Maven
Projects</"
-"emphasis>. Then, browse to the location of the Wicket numberguess example.
"
-"You should see that Eclipse recognizes the existence of a Maven project."
+msgid "If you have m2eclipse installed, you can open any Maven project directly.
From within Eclipse, select <emphasis>File -> Import... -> Maven
Projects</emphasis>. Then, browse to the location of the Wicket numberguess example.
You should see that Eclipse recognizes the existence of a Maven project."
msgstr ""
#. Tag: para
#: weldexamples.xml:279
#, no-c-format
-msgid ""
-"This will create a project in your workspace called
<literal>weld-wicket-"
-"numberguess</literal>."
+msgid "This will create a project in your workspace called
<literal>weld-wicket-numberguess</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:283
#, no-c-format
-msgid ""
-"You'll notice after importing, the project has a build error. That's
because "
-"we need to enable a Maven profile. Right-click on the project and select "
-"<emphasis>Properties</emphasis>, then select the
<emphasis>Maven</emphasis> "
-"tab in the window that appears. In the form field labeled \"Active Maven
"
-"Profiles (comma separated):\", type <literal>jetty</literal>. That
will "
-"enable some extra dependencies that allow the project to compile. You're now
"
-"ready to develop!"
+msgid "You'll notice after importing, the project has a build error. That's
because we need to enable a Maven profile. Right-click on the project and select
<emphasis>Properties</emphasis>, then select the
<emphasis>Maven</emphasis> tab in the window that appears. In the form field
labeled \"Active Maven Profiles (comma separated):\", type
<literal>jetty</literal>. That will enable some extra dependencies that allow
the project to compile. You're now ready to develop!"
msgstr ""
#. Tag: para
#: weldexamples.xml:292
#, no-c-format
-msgid ""
-"You are also advised to uncheck the box \"Skip Maven compiler when "
-"processing resources\" in the Maven properties screen because of conflicts
"
-"with the Maven enforcer plugin."
+msgid "You are also advised to uncheck the box \"Skip Maven compiler when
processing resources\" in the Maven properties screen because of conflicts with the
Maven enforcer plugin."
msgstr ""
#. Tag: para
#: weldexamples.xml:298
#, no-c-format
-msgid ""
-"If you are not using the m2eclipse plugin, you have to follow different "
-"steps to import the project. First, switch into the Wicket numberguess "
-"example, then execute the Maven Eclipse plugin with the jetty profile "
-"activated, as follows:"
+msgid "If you are not using the m2eclipse plugin, you have to follow different steps
to import the project. First, switch into the Wicket numberguess example, then execute the
Maven Eclipse plugin with the jetty profile activated, as follows:"
msgstr ""
#. Tag: programlisting
@@ -587,15 +558,13 @@
"<![CDATA[$> cd examples/wicket/numberguess\n"
"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
+"<![CDATA[$> cd examples/wicket/numberguess\n"
+"mvn -Pjetty eclipse:eclipse]]>"
#. Tag: para
#: weldexamples.xml:306
#, no-c-format
-msgid ""
-"Then, from Eclipse, choose <emphasis>File -> Import... -> General ->
"
-"Existing Projects into Workspace</emphasis>, select the root directory of
"
-"the numberguess example, and click Finish. This will create a project in "
-"your workspace called
<literal>weld-wicket-numberguess</literal>."
+msgid "Then, from Eclipse, choose <emphasis>File -> Import... -> General
-> Existing Projects into Workspace</emphasis>, select the root directory of the
numberguess example, and click Finish. This will create a project in your workspace called
<literal>weld-wicket-numberguess</literal>."
msgstr ""
#. Tag: para
@@ -613,15 +582,7 @@
#. Tag: para
#: weldexamples.xml:327
#, no-c-format
-msgid ""
-"This project follows the <literal>wicket-quickstart</literal> approach
of "
-"creating an instance of Jetty in the <literal>Start</literal> class. So
"
-"running the example is as simple as right-clicking on that Start class in "
-"<literal>src/test/java</literal> in the <emphasis>Package
Explorer</"
-"emphasis> and choosing <emphasis>Run as Java Application</emphasis>.
You "
-"should see console output related to Jetty starting up; then visit able "
-"<literal>http://localhost:9090</literal> to view the app. To debug
choose "
-"<emphasis>Debug as Java Application</emphasis> instead."
+msgid "This project follows the <literal>wicket-quickstart</literal>
approach of creating an instance of Jetty in the <literal>Start</literal>
class. So running the example is as simple as right-clicking on that Start class in
<literal>src/test/java</literal> in the <emphasis>Package
Explorer</emphasis> and choosing <emphasis>Run as Java
Application</emphasis>. You should see console output related to Jetty starting up;
then visit able <literal>http://localhost:9090</literal> to view the app. To
debug choose <emphasis>Debug as Java Application</emphasis> instead."
msgstr ""
#. Tag: title
@@ -633,19 +594,14 @@
#. Tag: para
#: weldexamples.xml:340
#, no-c-format
-msgid ""
-"This example can also be deployed from the command line in a (similar to the
"
-"other examples). Assuming you have set up the <literal>local.build."
-"properties</literal> file in the <literal>examples</literal>
directory to "
-"specify the location of JBoss AS or Tomcat, as previously described, you can
"
-"run:"
+msgid "This example can also be deployed from the command line in a (similar to the
other examples). Assuming you have set up the
<literal>local.build.properties</literal> file in the
<literal>examples</literal> directory to specify the location of JBoss AS or
Tomcat, as previously described, you can run:"
msgstr ""
#. Tag: programlisting
#: weldexamples.xml:346
#, no-c-format
msgid "<![CDATA[$> ant deploy]]>"
-msgstr ""
+msgstr "<![CDATA[$> ant deploy]]>"
#. Tag: para
#: weldexamples.xml:348
@@ -657,29 +613,25 @@
#: weldexamples.xml:350
#, no-c-format
msgid "<![CDATA[$> ant tomcat.deploy]]>"
-msgstr ""
+msgstr "<![CDATA[$> ant tomcat.deploy]]>"
#. Tag: para
#: weldexamples.xml:352
#, no-c-format
-msgid ""
-"to deploy the example to Tomcat. You can then access application at "
-"<literal>http://localhost:9090/weld-numberguess-wicket</literal>."
+msgid "to deploy the example to Tomcat. You can then access application at
<literal>http://localhost:9090/weld-numberguess-wicket</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:357
#, no-c-format
-msgid ""
-"Alternatively, you can run the application in place on an embedded Jetty "
-"container using the following Maven command:"
+msgid "Alternatively, you can run the application in place on an embedded Jetty
container using the following Maven command:"
msgstr ""
#. Tag: programlisting
#: weldexamples.xml:362
#, no-c-format
msgid "<![CDATA[$> mvn jetty:run -Pjetty]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn jetty:run -Pjetty]]>"
#. Tag: para
#: weldexamples.xml:364
@@ -696,25 +648,13 @@
#. Tag: para
#: weldexamples.xml:373
#, no-c-format
-msgid ""
-"The code in the wicket numberguess example is very similar to the JSF-based "
-"numberguess example. The business layer is identical! Where things differ is
"
-"in view binding. JSF uses Unified EL expressions to bind XML-based view "
-"layer components in JSF views to beans. In contrast, Wicket defines its "
-"components in Java. These Java-based view components have a one-to-one "
-"mapping with HTML elements in an adjacent (pure) HTML file. All view logic, "
-"including binding of components to models and controlling the response of "
-"view actions, is handled in Java."
+msgid "The code in the wicket numberguess example is very similar to the JSF-based
numberguess example. The business layer is identical! Where things differ is in view
binding. JSF uses Unified EL expressions to bind XML-based view layer components in JSF
views to beans. In contrast, Wicket defines its components in Java. These Java-based view
components have a one-to-one mapping with HTML elements in an adjacent (pure) HTML file.
All view logic, including binding of components to models and controlling the response of
view actions, is handled in Java."
msgstr ""
#. Tag: para
#: weldexamples.xml:382
#, no-c-format
-msgid ""
-"The integration of Weld with Wicket takes advantage of the same qualifier "
-"annotations used in your business layer to provide injection into your "
-"<literal>WebPage</literal> subclass (or into other custom Wicket
component "
-"subclasses)."
+msgid "The integration of Weld with Wicket takes advantage of the same qualifier
annotations used in your business layer to provide injection into your
<literal>WebPage</literal> subclass (or into other custom Wicket component
subclasses)."
msgstr ""
#. Tag: para
@@ -726,10 +666,7 @@
#. Tag: para
#: weldexamples.xml:394
#, no-c-format
-msgid ""
-"Each wicket application must have a <literal>WeldApplication</literal>
"
-"subclass. In our case, our application class is "
-"<literal>NumberGuessApplication</literal>:"
+msgid "Each wicket application must have a
<literal>WeldApplication</literal> subclass. In our case, our application
class is <literal>NumberGuessApplication</literal>:"
msgstr ""
#. Tag: programlisting
@@ -742,36 +679,34 @@
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[public class NumberGuessApplication extends WeldApplication {\n"
+" @Override public Class getHomePage() {\n"
+" return HomePage.class;\n"
+" }\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:399
#, no-c-format
-msgid ""
-"This class specifies which page Wicket should treat as our home page, in our
"
-"case, <literal>HomePage.class</literal>"
+msgid "This class specifies which page Wicket should treat as our home page, in our
case, <literal>HomePage.class</literal>"
msgstr ""
#. Tag: para
#: weldexamples.xml:405
#, no-c-format
-msgid ""
-"In <literal>HomePage</literal>, we see typical Wicket code to set up
page "
-"elements. The bit that is interesting is the injection of the
<literal>Game</"
-"literal> bean:"
+msgid "In <literal>HomePage</literal>, we see typical Wicket code to set
up page elements. The bit that is interesting is the injection of the
<literal>Game</literal> bean:"
msgstr ""
#. Tag: programlisting
#: weldexamples.xml:410
#, no-c-format
msgid "<![CDATA[@Inject Game game;]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject Game game;]]>"
#. Tag: para
#: weldexamples.xml:412
#, no-c-format
-msgid ""
-"The <literal>Game</literal> bean is can then be used, for example, by
the "
-"code for submitting a guess:"
+msgid "The <literal>Game</literal> bean is can then be used, for
example, by the code for submitting a guess:"
msgstr ""
#. Tag: programlisting
@@ -803,42 +738,53 @@
" } \n"
"}; ]]>"
msgstr ""
+"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{\n"
+" protected void onSubmit(AjaxRequestTarget target, Form form) {\n"
+" if (game.check()) {\n"
+" info(\"Correct!\");\n"
+" setVisible(false);\n"
+" prompt.setVisible(false);\n"
+" guessLabel.setVisible(false);\n"
+" inputGuess.setVisible(false);\n"
+" }\n"
+" else if (game.getRemainingGuesses() == 0) {\n"
+" info(\"Sorry, the answer was \" + game.getNumber());\n"
+" setVisible(false);\n"
+" guessLabel.setVisible(false);\n"
+" inputGuess.setVisible(false);\n"
+" }\n"
+" else if (game.getNumber() > game.getGuess()) {\n"
+" info(\"Higher!\");\n"
+" }\n"
+" else if (game.getNumber() < game.getGuess()) {\n"
+" info(\"Lower\");\n"
+" }\n"
+" target.addComponent(form);\n"
+" } \n"
+"}; ]]>"
#. Tag: para
#: weldexamples.xml:420
#, no-c-format
-msgid ""
-"All injections may be serialized; actual storage of the bean is managed by "
-"JSR-299. Note that Wicket components, like the
<literal>HomePage</literal> "
-"and it subcomponents, are <emphasis>not</emphasis> JSR-299
beans."
+msgid "All injections may be serialized; actual storage of the bean is managed by
JSR-299. Note that Wicket components, like the <literal>HomePage</literal> and
it subcomponents, are <emphasis>not</emphasis> JSR-299 beans."
msgstr ""
#. Tag: para
#: weldexamples.xml:425
#, no-c-format
-msgid ""
-"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
-"interceptors, decorators or lifecycle callbacks such as "
-"<literal>@PostConstruct</literal> or methods. The components would need
to "
-"delegate to actual beans to leverage these features."
+msgid "Wicket components allow injection, but they
<emphasis>cannot</emphasis> use interceptors, decorators or lifecycle
callbacks such as <literal>@PostConstruct</literal> or methods. The components
would need to delegate to actual beans to leverage these features."
msgstr ""
#. Tag: para
#: weldexamples.xml:433
#, no-c-format
-msgid ""
-"The example uses AJAX for processing of button events, and dynamically hides
"
-"buttons that are no longer relevant, for example when the user has won the "
-"game."
+msgid "The example uses AJAX for processing of button events, and dynamically hides
buttons that are no longer relevant, for example when the user has won the game."
msgstr ""
#. Tag: para
#: weldexamples.xml:440
#, no-c-format
-msgid ""
-"In order to activate Wicket for this webapp, the Wicket filter is added to "
-"<literal>web.xml</literal>, and our application class is specified in
"
-"<literal>web.xml</literal>:"
+msgid "In order to activate Wicket for this webapp, the Wicket filter is added to
<literal>web.xml</literal>, and our application class is specified in
<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
@@ -847,12 +793,10 @@
msgid ""
"<![CDATA[<filter>\n"
" <filter-name>Wicket Filter</filter-name>\n"
-"
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-"
-"class>\n"
+"
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>\n"
" <init-param>\n"
" <param-name>applicationClassName</param-name>\n"
-"
<param-value>org.jboss.weld.examples.wicket.NumberGuessApplication</"
-"param-value>\n"
+"
<param-value>org.jboss.weld.examples.wicket.NumberGuessApplication</param-value>\n"
" </init-param>\n"
"</filter>\n"
"\n"
@@ -861,17 +805,24 @@
" <url-pattern>/*</url-pattern>\n"
"</filter-mapping>]]>"
msgstr ""
+"<![CDATA[<filter>\n"
+" <filter-name>Wicket Filter</filter-name>\n"
+"
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>\n"
+" <init-param>\n"
+" <param-name>applicationClassName</param-name>\n"
+"
<param-value>org.jboss.weld.examples.wicket.NumberGuessApplication</param-value>\n"
+" </init-param>\n"
+"</filter>\n"
+"\n"
+"<filter-mapping>\n"
+" <filter-name>Wicket Filter</filter-name>\n"
+" <url-pattern>/*</url-pattern>\n"
+"</filter-mapping>]]>"
#. Tag: para
#: weldexamples.xml:447
#, no-c-format
-msgid ""
-"The servlet listener is still required, as in the Tomcat example, to "
-"bootstrap CDI when Jetty starts and to hook CDI into the Jetty servlet "
-"request and session lifecycles. However, rather than putting it into the
web."
-"xml, it is placed into an override file,
<literal>src/main/webapp/WEB-INF/"
-"jetty-additions-to-web.xml</literal>, that is passed to Jetty as an extra
"
-"descriptor to be appended to the <literal>web.xml</literal>
configuration."
+msgid "The servlet listener is still required, as in the Tomcat example, to
bootstrap CDI when Jetty starts and to hook CDI into the Jetty servlet request and session
lifecycles. However, rather than putting it into the web.xml, it is placed into an
override file,
<literal>src/main/webapp/WEB-INF/jetty-additions-to-web.xml</literal>, that is
passed to Jetty as an extra descriptor to be appended to the
<literal>web.xml</literal> configuration."
msgstr ""
#. Tag: programlisting
@@ -880,11 +831,15 @@
msgid ""
"<![CDATA[<web-app version=\"2.4\" ...>\n"
" <listener>\n"
-"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-"
-"class>\n"
+"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
" </listener>\n"
"</web-app>]]>"
msgstr ""
+"<![CDATA[<web-app version=\"2.4\" ...>\n"
+" <listener>\n"
+"
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
+" </listener>\n"
+"</web-app>]]>"
#. Tag: title
#: weldexamples.xml:464
@@ -895,11 +850,7 @@
#. Tag: para
#: weldexamples.xml:466
#, no-c-format
-msgid ""
-"This example shows how to use the Weld SE extension to in a Java SE based "
-"Swing application with no EJB or servlet dependencies. This example can be "
-"found in the <literal>examples/se/numberguess</literal> folder of the
Weld "
-"distribution."
+msgid "This example shows how to use the Weld SE extension to in a Java SE based
Swing application with no EJB or servlet dependencies. This example can be found in the
<literal>examples/se/numberguess</literal> folder of the Weld
distribution."
msgstr ""
#. Tag: para
@@ -917,17 +868,13 @@
#. Tag: para
#: weldexamples.xml:484
#, no-c-format
-msgid ""
-"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
-"pointing to your JDK installation"
+msgid "Ensure that the <literal>JAVA_HOME</literal> environment variable
is pointing to your JDK installation"
msgstr ""
#. Tag: para
#: weldexamples.xml:490
#, no-c-format
-msgid ""
-"Open a command line or terminal window in the <literal>examples/se/"
-"numberguess</literal> directory"
+msgid "Open a command line or terminal window in the
<literal>examples/se/numberguess</literal> directory"
msgstr ""
#. Tag: para
@@ -940,42 +887,31 @@
#: weldexamples.xml:499
#, no-c-format
msgid "mvn -Drun"
-msgstr ""
+msgstr "mvn -Drun"
#. Tag: para
#: weldexamples.xml:503
#, no-c-format
-msgid ""
-"Let's have a look at the significant code and configuration files that make
"
-"up this example."
+msgid "Let's have a look at the significant code and configuration files that
make up this example."
msgstr ""
#. Tag: para
#: weldexamples.xml:508
#, no-c-format
-msgid ""
-"As usual, there is an empty <literal>beans.xml</literal> file in the
root "
-"package (<literal>src/main/resources/beans.xml</literal>), which marks
this "
-"application as a CDI application."
+msgid "As usual, there is an empty <literal>beans.xml</literal> file in
the root package (<literal>src/main/resources/beans.xml</literal>), which
marks this application as a CDI application."
msgstr ""
#. Tag: para
#: weldexamples.xml:514
#, no-c-format
-msgid ""
-"The game's main logic is located in <literal>Game.java</literal>.
Here is "
-"the code for that class, highlighting the ways in which this differs from "
-"the web application version:"
+msgid "The game's main logic is located in
<literal>Game.java</literal>. Here is the code for that class, highlighting
the ways in which this differs from the web application version:"
msgstr ""
#. Tag: section
#: weldexamples.xml:518
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
-"\"name\" coords=\"2\"/> <area id=\"messages1\"
coords=\"26\"/> <area id="
-"\"validation\" coords=\"41\"/> <area
id=\"reset\" coords=\"73\"/> </"
-"areaspec> <programlisting
role=\"JAVA\"><![CDATA[@ApplicationScoped\n"
+"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id=\"name\" coords=\"2\"/>
<area id=\"messages1\" coords=\"26\"/> <area
id=\"validation\" coords=\"41\"/> <area id=\"reset\"
coords=\"73\"/> </areaspec> <programlisting
role=\"JAVA\"><![CDATA[@ApplicationScoped\n"
"public class Game implements Serializable\n"
"{\n"
"\n"
@@ -1046,8 +982,7 @@
"\n"
" private boolean checkNewNumberRangeIsValid()\n"
" {\n"
-" return validNumberRange = ((guess >= smallest) && (guess <=
"
-"biggest));\n"
+" return validNumberRange = ((guess >= smallest) && (guess <=
biggest));\n"
" }\n"
"\n"
" @PostConstruct\n"
@@ -1059,46 +994,14 @@
" this.biggest = maxNumber;\n"
" this.number = rndGenerator.next();\n"
" }\n"
-"}]]></programlisting> <calloutlist> <callout
arearefs=\"scope\"> <para> The "
-"bean is application scoped rather than session scoped, since an instance of "
-"a Swing application typically represents a single 'session'. </para>
</"
-"callout> <callout arearefs=\"name\"> <para> Notice that
the bean is not "
-"named, since it doesn't need to be accessed via EL. </para>
</callout> "
-"<callout arearefs=\"messages1\"> <para> In Java SE there is
no JSF "
-"<literal>FacesContext</literal> to which messages can be added. Instead
the "
-"<literal>Game</literal> class provides additional information about the
"
-"state of the current game including: </para> <itemizedlist>
<listitem> "
-"<para> If the game has been won or lost </para> </listitem>
<listitem> "
-"<para> If the most recent guess was invalid </para> </listitem>
</"
-"itemizedlist> <para> This allows the Swing UI to query the state of the
"
-"game, which it does indirectly via a class called
<literal>MessageGenerator</"
-"literal>, in order to determine the appropriate messages to display to the
"
-"user during the game. </para> </callout> <callout
arearefs=\"validation\"> "
-"<para> Since there is no dedicated validation phase, validation of user
"
-"input is performed during the <literal>check()</literal> method.
</para> </"
-"callout> <callout arearefs=\"reset\"> <para> The
<literal>reset()</literal> "
-"method makes a call to the injected <literal>rndGenerator</literal> in
order "
-"to get the random number at the start of each game. Note that it cannot use "
-"<literal>manager.getInstanceByType(Integer.class, new
AnnotationLiteral<"
-"Random>(){})</literal> as the JSF example does because there will not
be "
-"any active contexts like there is during a JSF request. </para>
</callout> </"
-"calloutlist> </programlistingco> <para> The
<literal>MessageGenerator</"
-"literal> class depends on the current instance of
<literal>Game</literal> "
-"and queries its state in order to determine the appropriate messages to "
-"provide as the prompt for the user's next guess and the response to the "
-"previous guess. The code for <literal>MessageGenerator</literal> is as
"
-"follows: </para> <programlistingco> <areaspec> <area
id=\"game\" coords=\"3"
-"\"/> <area id=\"challenge\" coords=\"6\"/>
<area id=\"result\" coords=\"17\"/"
-"> </areaspec> <programlisting
role=\"JAVA\"><![CDATA[public class "
-"MessageGenerator\n"
+"}]]></programlisting> <calloutlist> <callout
arearefs=\"scope\"> <para> The bean is application scoped rather than
session scoped, since an instance of a Swing application typically represents a single
'session'. </para> </callout> <callout
arearefs=\"name\"> <para> Notice that the bean is not named, since it
doesn't need to be accessed via EL. </para> </callout> <callout
arearefs=\"messages1\"> <para> In Java SE there is no JSF
<literal>FacesContext</literal> to which messages can be added. Instead the
<literal>Game</literal> class provides additional information about the state
of the current game including: </para> <itemizedlist> <listitem>
<para> If the game has been won or lost </para> </listitem>
<listitem> <para> If the most recent guess was invalid </para>
</listitem> </itemizedlist> <para> This allows the Swing UI to query the
state of the game, which it does indirectly via a class called
<literal>MessageGenerator</literal>, in order to determine the appropriate m!
essages to display to the user during the game. </para> </callout>
<callout arearefs=\"validation\"> <para> Since there is no dedicated
validation phase, validation of user input is performed during the
<literal>check()</literal> method. </para> </callout> <callout
arearefs=\"reset\"> <para> The <literal>reset()</literal>
method makes a call to the injected <literal>rndGenerator</literal> in order
to get the random number at the start of each game. Note that it cannot use
<literal>manager.getInstanceByType(Integer.class, new
AnnotationLiteral<Random>(){})</literal> as the JSF example does
because there will not be any active contexts like there is during a JSF request.
</para> </callout> </calloutlist> </programlistingco> <para>
The <literal>MessageGenerator</literal> class depends on the current instance
of <literal>Game</literal> and queries its state in order to determine the
appropriate messages to provide as the prompt for the user's next guess and the
response t!
o the previous guess. The code for <literal>MessageGenerator</!
literal>
is as follows: </para> <programlistingco> <areaspec> <area
id=\"game\" coords=\"3\"/> <area id=\"challenge\"
coords=\"6\"/> <area id=\"result\" coords=\"17\"/>
</areaspec> <programlisting role=\"JAVA\"><![CDATA[public class
MessageGenerator\n"
"{\n"
" @Inject\n"
" private Game game;\n"
"\n"
" public String getChallengeMessage()\n"
" {\n"
-" StringBuilder challengeMsg = new StringBuilder(\"I'm thinking of a
"
-"number between \");\n"
+" StringBuilder challengeMsg = new StringBuilder(\"I'm thinking of a
number between \");\n"
" challengeMsg.append(game.getSmallest());\n"
" challengeMsg.append(\" and \");\n"
" challengeMsg.append(game.getBiggest());\n"
@@ -1138,24 +1041,10 @@
" direction = \"Lower\";\n"
" }\n"
"\n"
-" return direction + \"! You have \" + game.getRemainingGuesses()
+ "
-"\" guesses left.\";\n"
+" return direction + \"! You have \" + game.getRemainingGuesses()
+ \" guesses left.\";\n"
" }\n"
" }\n"
-"}]]></programlisting> <calloutlist> <callout
arearefs=\"game\"> <para> The "
-"instance of <literal>Game</literal> for the application is injected
here. </"
-"para> </callout> <callout arearefs=\"challenge\">
<para> The <literal>Game</"
-"literal>'s state is interrogated to determine the appropriate challenge
"
-"message ... </para> </callout> <callout
arearefs=\"result\"> <para> ... and "
-"again to determine whether to congratulate, console or encourage the user to
"
-"continue. </para> </callout> </calloutlist>
</programlistingco> <para> "
-"Finally we come to the <literal>NumberGuessFrame</literal> class which
"
-"provides the Swing front end to our guessing game. </para> "
-"<programlistingco> <areaspec> <area id=\"gameIn\"
coords=\"3\"/> <area id="
-"\"messagesIn\" coords=\"6\"/> <area
id=\"start\" coords=\"9\"/> <area id="
-"\"init\" coords=\"21\"/> <area id=\"guess1\"
coords=\"38\"/> <area id="
-"\"replay\" coords=\"48\"/> </areaspec>
<programlisting role=\"JAVA\"><![CDATA"
-"[public class NumberGuessFrame extends javax.swing.JFrame\n"
+"}]]></programlisting> <calloutlist> <callout
arearefs=\"game\"> <para> The instance of
<literal>Game</literal> for the application is injected here. </para>
</callout> <callout arearefs=\"challenge\"> <para> The
<literal>Game</literal>'s state is interrogated to determine the
appropriate challenge message ... </para> </callout> <callout
arearefs=\"result\"> <para> ... and again to determine whether to
congratulate, console or encourage the user to continue. </para> </callout>
</calloutlist> </programlistingco> <para> Finally we come to the
<literal>NumberGuessFrame</literal> class which provides the Swing front end
to our guessing game. </para> <programlistingco> <areaspec> <area
id=\"gameIn\" coords=\"3\"/> <area id=\"messagesIn\"
coords=\"6\"/> <area id=\"start\" coords=\"9\"/>
<area id=\"init\" coords=\"21\"/> <area
id=\"guess1\" coords=\"38\"/> <area id=\"replay\"
coords=\"48\"/> </areaspec> <programlisting
role=\"JAVA\"><![CDATA[public class NumberGuessFrame extends j!
avax.swing.JFrame\n"
"{\n"
" @Inject\n"
" private Game game;\n"
@@ -1192,8 +1081,7 @@
" ...\n"
" }\n"
"\n"
-" private void guessButtonActionPerformed( java.awt.event.ActionEvent "
-"evt )\n"
+" private void guessButtonActionPerformed( java.awt.event.ActionEvent evt
)\n"
" {\n"
" int guess = Integer.parseInt(guessText.getText());\n"
" game.setGuess( guess );\n"
@@ -1220,32 +1108,7 @@
" ...\n"
" private javax.swing.JButton replayBtn;\n"
"\n"
-"}]]></programlisting> <calloutlist> <callout
arearefs=\"gameIn\"> <para> The "
-"injected instance of the game (logic and state). </para> </callout>
<callout "
-"arearefs=\"messagesIn\"> <para> The injected message generator
for UI "
-"messages. </para> </callout> <callout
arearefs=\"start\"> <para> This "
-"application is started in the prescribed Weld SE way, by observing the "
-"<literal>ContainerInitialized</literal> event. </para>
</callout> <callout "
-"arearefs=\"init\"> <para> This method initializes all of the
Swing "
-"components. Note the use of the <literal>msgGenerator</literal> here.
</"
-"para> </callout> <callout arearefs=\"guess1\">
<para> "
-"<literal>guessButtonActionPerformed</literal> is called when the
'Guess' "
-"button is clicked, and it does the following: </para> <itemizedlist>
"
-"<listitem> <para> Gets the guess entered by the user and sets it as the
"
-"current guess in the <literal>Game</literal> </para>
</listitem> <listitem> "
-"<para> Calls <literal>game.check()</literal> to validate and
perform one "
-"'turn' of the game </para> </listitem> <listitem>
<para> Calls "
-"<literal>refreshUI</literal>. If there were validation errors with the
"
-"input, this will have been captured during
<literal>game.check()</literal> "
-"and as such will be reflected in the messages returned by "
-"<literal>MessageGenerator</literal> and subsequently presented to the
user. "
-"If there are no validation errors then the user will be told to guess again "
-"(higher or lower) or that the game has ended either in a win (correct guess)
"
-"or a loss (ran out of guesses). </para> </listitem>
</itemizedlist> </"
-"callout> <callout arearefs=\"replay\"> <para> "
-"<literal>replayBtnActionPerformed</literal> simply calls
<literal>game.reset"
-"()</literal> to start a new game and refreshes the messages in the UI.
</"
-"para> </callout> </calloutlist> </programlistingco>"
+"}]]></programlisting> <calloutlist> <callout
arearefs=\"gameIn\"> <para> The injected instance of the game (logic
and state). </para> </callout> <callout
arearefs=\"messagesIn\"> <para> The injected message generator for UI
messages. </para> </callout> <callout arearefs=\"start\">
<para> This application is started in the prescribed Weld SE way, by observing the
<literal>ContainerInitialized</literal> event. </para> </callout>
<callout arearefs=\"init\"> <para> This method initializes all of
the Swing components. Note the use of the <literal>msgGenerator</literal>
here. </para> </callout> <callout arearefs=\"guess1\">
<para> <literal>guessButtonActionPerformed</literal> is called when the
'Guess' button is clicked, and it does the following: </para>
<itemizedlist> <listitem> <para> Gets the guess entered by the user and
sets it as the current guess in the <literal>Game</literal> </para>
</listitem> <listitem> <para> Calls
<literal>game.check()</literal> to validate and per!
form one 'turn' of the game </para> </listitem> <listitem>
<para> Calls <literal>refreshUI</literal>. If there were validation
errors with the input, this will have been captured during
<literal>game.check()</literal> and as such will be reflected in the messages
returned by <literal>MessageGenerator</literal> and subsequently presented to
the user. If there are no validation errors then the user will be told to guess again
(higher or lower) or that the game has ended either in a win (correct guess) or a loss
(ran out of guesses). </para> </listitem> </itemizedlist>
</callout> <callout arearefs=\"replay\"> <para>
<literal>replayBtnActionPerformed</literal> simply calls
<literal>game.reset()</literal> to start a new game and refreshes the messages
in the UI. </para> </callout> </calloutlist>
</programlistingco>"
msgstr ""
#. Tag: title
@@ -1257,36 +1120,25 @@
#. Tag: para
#: weldexamples.xml:718
#, no-c-format
-msgid ""
-"The translator example will take any sentences you enter, and translate them
"
-"to Latin. (Well, not really, but the stub is there for you to implement, at "
-"least. Good luck!)"
+msgid "The translator example will take any sentences you enter, and translate them
to Latin. (Well, not really, but the stub is there for you to implement, at least. Good
luck!)"
msgstr ""
#. Tag: para
#: weldexamples.xml:723
#, no-c-format
-msgid ""
-"The translator example is built as an EAR and contains EJBs. As a result, "
-"it's structure is more complex than the numberguess example."
+msgid "The translator example is built as an EAR and contains EJBs. As a result,
it's structure is more complex than the numberguess example."
msgstr ""
#. Tag: para
#: weldexamples.xml:729
#, no-c-format
-msgid ""
-"Java EE 6, which bundles EJB 3.1, allows you to package EJBs in a WAR, which
"
-"will make this structure much simpler! Still, there are other advantages of "
-"using an EAR."
+msgid "Java EE 6, which bundles EJB 3.1, allows you to package EJBs in a WAR, which
will make this structure much simpler! Still, there are other advantages of using an
EAR."
msgstr ""
#. Tag: para
#: weldexamples.xml:735
#, no-c-format
-msgid ""
-"First, let's take a look at the EAR aggregator, which is located in the "
-"example's <literal>ear</literal> directory. Maven automatically
generates "
-"the <literal>application.xml</literal> for us from this plugin
configuration:"
+msgid "First, let's take a look at the EAR aggregator, which is located in the
example's <literal>ear</literal> directory. Maven automatically generates
the <literal>application.xml</literal> for us from this plugin
configuration:"
msgstr ""
#. Tag: programlisting
@@ -1307,22 +1159,30 @@
" </configuration>\n"
"</plugin>]]>"
msgstr ""
+"<![CDATA[<plugin>\n"
+" <groupId>org.apache.maven.plugins</groupId>\n"
+" <artifactId>maven-ear-plugin</artifactId>\n"
+" <configuration>\n"
+" <modules>\n"
+" <webModule>\n"
+"
<groupId>org.jboss.weld.examples.jsf.translator</groupId>\n"
+" <artifactId>weld-jsf-translator-war</artifactId>\n"
+" <contextRoot>/weld-translator</contextRoot>\n"
+" </webModule>\n"
+" </modules>\n"
+" </configuration>\n"
+"</plugin>]]>"
#. Tag: para
#: weldexamples.xml:742
#, no-c-format
-msgid ""
-"This configuration overrides the web context path, resulting in this "
-"application URL: <ulink
url=\"http://localhost:8080/weld-translator\">http://"
-"localhost:8080/weld-translator</ulink>."
+msgid "This configuration overrides the web context path, resulting in this
application URL: <ulink
url=\"http://localhost:8080/weld-translator\">http://localhost:8080/weld-translator</ulink>."
msgstr ""
#. Tag: para
#: weldexamples.xml:748
#, no-c-format
-msgid ""
-"If you weren't using Maven to generate these files, you would need "
-"<literal>META-INF/application.xml</literal>:"
+msgid "If you weren't using Maven to generate these files, you would need
<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
@@ -1350,25 +1210,37 @@
" </module>\n"
"</application>]]>"
msgstr ""
+"<![CDATA[<application version=\"5\"\n"
+"
xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+"
http://java.sun.com/xml/ns/javaee\n"
+"
http://java.sun.com/xml/ns/javaee/application_5.xsd\">\n"
+"\n"
+" <display-name>weld-jsf-translator-ear</display-name>\n"
+" <description>The Weld JSF translator example
(EAR)</description>\n"
+" \n"
+" <module>\n"
+" <web>\n"
+" <web-uri>weld-translator.war</web-uri>\n"
+" <context-root>/weld-translator</context-root>\n"
+" </web>\n"
+" </module>\n"
+" <module>\n"
+" <ejb>weld-translator.jar</ejb>\n"
+" </module>\n"
+"</application>]]>"
#. Tag: para
#: weldexamples.xml:756
#, no-c-format
-msgid ""
-"Next, lets look at the WAR, which is located in the example's
<literal>war</"
-"literal> directory. Just as in the numberguess example, we have a "
-"<literal>faces-config.xml</literal> for JSF 2.0 and a
<literal>web.xml</"
-"literal> (to activate JSF) under WEB-INF, both sourced from
<literal>src/"
-"main/webapp/WEB-INF</literal>."
+msgid "Next, lets look at the WAR, which is located in the example's
<literal>war</literal> directory. Just as in the numberguess example, we have
a <literal>faces-config.xml</literal> for JSF 2.0 and a
<literal>web.xml</literal> (to activate JSF) under WEB-INF, both sourced from
<literal>src/main/webapp/WEB-INF</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:762
#, no-c-format
-msgid ""
-"More interesting is the JSF view used to translate text. Just as in the "
-"numberguess example we have a template, which surrounds the form (ommitted "
-"here for brevity):"
+msgid "More interesting is the JSF view used to translate text. Just as in the
numberguess example we have a template, which surrounds the form (ommitted here for
brevity):"
msgstr ""
#. Tag: programlisting
@@ -1388,8 +1260,7 @@
" </tr>\n"
" <tr>\n"
" <td>\n"
-" <h:inputTextarea id=\"text\"
value=\"#{translator.text}\" "
-"required=\"true\" rows=\"5\"
cols=\"80\"/>\n"
+" <h:inputTextarea id=\"text\"
value=\"#{translator.text}\" required=\"true\" rows=\"5\"
cols=\"80\"/>\n"
" </td>\n"
" <td>\n"
" <h:outputText
value=\"#{translator.translatedText}\"/>\n"
@@ -1397,50 +1268,59 @@
" </tr>\n"
" </table>\n"
" <div>\n"
-" <h:commandButton id=\"button\" value=\"Translate\"
action=\"#"
-"{translator.translate}\"/>\n"
+" <h:commandButton id=\"button\" value=\"Translate\"
action=\"#{translator.translate}\"/>\n"
" </div>\n"
" \n"
"</h:form>]]>"
msgstr ""
+"<![CDATA[<h:form id=\"translator\">\n"
+"\n"
+" <table>\n"
+" <tr align=\"center\" style=\"font-weight:
bold\">\n"
+" <td>\n"
+" Your text\n"
+" </td>\n"
+" <td>\n"
+" Translation\n"
+" </td>\n"
+" </tr>\n"
+" <tr>\n"
+" <td>\n"
+" <h:inputTextarea id=\"text\"
value=\"#{translator.text}\" required=\"true\" rows=\"5\"
cols=\"80\"/>\n"
+" </td>\n"
+" <td>\n"
+" <h:outputText
value=\"#{translator.translatedText}\"/>\n"
+" </td>\n"
+" </tr>\n"
+" </table>\n"
+" <div>\n"
+" <h:commandButton id=\"button\" value=\"Translate\"
action=\"#{translator.translate}\"/>\n"
+" </div>\n"
+" \n"
+"</h:form>]]>"
#. Tag: para
#: weldexamples.xml:769
#, no-c-format
-msgid ""
-"The user can enter some text in the left-hand textarea, and hit the "
-"translate button to see the result to the right."
+msgid "The user can enter some text in the left-hand textarea, and hit the translate
button to see the result to the right."
msgstr ""
#. Tag: para
#: weldexamples.xml:774
#, no-c-format
-msgid ""
-"Finally, let's look at the EJB module, which is located in the example's
"
-"<literal>ejb</literal> directory. In
<literal>src/main/resources/META-INF</"
-"literal> there is just an empty <literal>beans.xml</literal>, used
to mark "
-"the archive as containing beans."
+msgid "Finally, let's look at the EJB module, which is located in the
example's <literal>ejb</literal> directory. In
<literal>src/main/resources/META-INF</literal> there is just an empty
<literal>beans.xml</literal>, used to mark the archive as containing
beans."
msgstr ""
#. Tag: para
#: weldexamples.xml:780
#, no-c-format
-msgid ""
-"We've saved the most interesting bit to last, the code! The project has two
"
-"simple beans, <literal>SentenceParser</literal> and
<literal>TextTranslator</"
-"literal> and two session beans,
<literal>TranslatorControllerBean</literal> "
-"and <literal>SentenceTranslator</literal>. You should be getting quite
"
-"familiar with what a bean looks like by now, so we'll just highlight the
"
-"most interesting bits here."
+msgid "We've saved the most interesting bit to last, the code! The project has
two simple beans, <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> and two session beans,
<literal>TranslatorControllerBean</literal> and
<literal>SentenceTranslator</literal>. You should be getting quite familiar
with what a bean looks like by now, so we'll just highlight the most interesting bits
here."
msgstr ""
#. Tag: para
#: weldexamples.xml:787
#, no-c-format
-msgid ""
-"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
-"are dependent beans, and <literal>TextTranslator</literal> uses
constructor "
-"injection:"
+msgid "Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> are dependent beans, and
<literal>TextTranslator</literal> uses constructor injection:"
msgstr ""
#. Tag: programlisting
@@ -1467,17 +1347,30 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[public class TextTranslator implements Serializable { \n"
+"\n"
+" private SentenceParser sentenceParser; \n"
+"\n"
+" @EJB private Translator translator; \n"
+" \n"
+" @Inject public TextTranslator(SentenceParser sentenceParser) { \n"
+" this.sentenceParser = sentenceParser; \n"
+" }\n"
+" \n"
+" public String translate(String text) { \n"
+" StringBuilder sb = new StringBuilder(); \n"
+" for (String sentence: sentenceParser.parse(text)) { \n"
+" sb.append(translator.translate(sentence)).append(\". \");
\n"
+" } \n"
+" return sb.toString().trim(); \n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:794
#, no-c-format
-msgid ""
-"<literal>TextTranslator</literal> uses the simple bean (really just a
plain "
-"Java class!) <literal>SentenceParser</literal> to parse the sentence
and "
-"then calls on the stateless bean with the local business interface "
-"<literal>Translator</literal> to perform the translation. That's
where the "
-"magic happens. Of course, we couldn't develop a full translator, but it's
"
-"convincing enough to anyone who doesn't understand Latin!"
+msgid "<literal>TextTranslator</literal> uses the simple bean (really
just a plain Java class!) <literal>SentenceParser</literal> to parse the
sentence and then calls on the stateless bean with the local business interface
<literal>Translator</literal> to perform the translation. That's where the
magic happens. Of course, we couldn't develop a full translator, but it's
convincing enough to anyone who doesn't understand Latin!"
msgstr ""
#. Tag: programlisting
@@ -1493,15 +1386,19 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateless\n"
+"public class SentenceTranslator implements Translator { \n"
+"\n"
+" public String translate(String sentence) { \n"
+" return \"Lorem ipsum dolor sit amet\"; \n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:804
#, no-c-format
-msgid ""
-"Finally, there is UI orientated controller. This is a request scoped, named,
"
-"stateful session bean, which injects the translator. It collects the text "
-"from the user and dispatches it to the translator. The bean also has getters
"
-"and setters for all the fields on the page."
+msgid "Finally, there is UI orientated controller. This is a request scoped, named,
stateful session bean, which injects the translator. It collects the text from the user
and dispatches it to the translator. The bean also has getters and setters for all the
fields on the page."
msgstr ""
#. Tag: programlisting
@@ -1539,13 +1436,40 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateful\n"
+"@RequestScoped\n"
+"@Named(\"translator\")\n"
+"public class TranslatorControllerBean implements TranslatorController {\n"
+"\n"
+" @Inject private TextTranslator translator;\n"
+" \n"
+" private String inputText;\n"
+" \n"
+" private String translatedText;\n"
+" \n"
+" public void translate() {\n"
+" translatedText = translator.translate(inputText);\n"
+" }\n"
+" \n"
+" public String getText() {\n"
+" return inputText;\n"
+" }\n"
+" \n"
+" public void setText(String text) {\n"
+" this.inputText = text;\n"
+" }\n"
+" \n"
+" public String getTranslatedText() {\n"
+" return translatedText;\n"
+" }\n"
+" \n"
+" @Remove public void remove() {}\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:814
#, no-c-format
-msgid ""
-"That concludes our short tour of the Weld starter examples. For more "
-"information on Weld, or to help out with development, please visit <ulink
"
-"url=\"http://www.seamframework.org/Weld/Development\">http://www."
-"seamframework.org/Weld/Development</ulink>."
+msgid "That concludes our short tour of the Weld starter examples. For more
information on Weld, or to help out with development, please visit <ulink
url=\"http://www.seamframework.org/Weld/Development\">http:/...
msgstr ""
+
Modified: doc/trunk/reference/it-IT/xml.po
===================================================================
--- doc/trunk/reference/it-IT/xml.po 2009-11-23 19:20:30 UTC (rev 5121)
+++ doc/trunk/reference/it-IT/xml.po 2009-11-23 20:25:21 UTC (rev 5122)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2008-12-25 15:29+0100\n"
+"PO-Revision-Date: 2009-11-23 21:23+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,74 +22,38 @@
#. Tag: para
#: xml.xml:7
#, fuzzy, no-c-format
-msgid ""
-"So far, we've seen plenty of examples of beans declared using annotations.
"
-"However, there are a couple of occasions when we can't use annotations to
"
-"define the bean:"
-msgstr ""
-"Finora si sono visti molti esempi di Web Bean dichiarati usando annotazioni.
"
-"Comunque ci sono varie occasioni in cui non è possibile usare le annotazioni
"
-"per definire un Web Bean:"
+msgid "So far, we've seen plenty of examples of beans declared using
annotations. However, there are a couple of occasions when we can't use annotations to
define the bean:"
+msgstr "Finora si sono visti molti esempi di Web Bean dichiarati usando annotazioni.
Comunque ci sono varie occasioni in cui non è possibile usare le annotazioni per definire
un Web Bean:"
#. Tag: para
#: xml.xml:14
#, no-c-format
msgid "when the implementation class comes from some preexisting library, or"
-msgstr ""
-"quando la classe d'implementazione proviene da qualche libreria "
-"preesistente, o"
+msgstr "quando la classe d'implementazione proviene da qualche libreria
preesistente, o"
#. Tag: para
#: xml.xml:19
#, fuzzy, no-c-format
msgid "when there should be multiple beans with the same implementation
class."
-msgstr ""
-"quando devrebbero esserci Web Beans multipli con la stessa classe "
-"d'implementazione."
+msgstr "quando devrebbero esserci Web Beans multipli con la stessa classe
d'implementazione."
#. Tag: para
#: xml.xml:25
#, no-c-format
-msgid ""
-"One way to address these problems is to write a producer method. Weld offers
"
-"another option: declare the bean using XML. This feature will hopefully one "
-"day be part of the CDI specification. Until then, it remains a portable "
-"extension."
+msgid "One way to address these problems is to write a producer method. Weld offers
another option: declare the bean using XML. This feature will hopefully one day be part of
the CDI specification. Until then, it remains a portable extension."
msgstr ""
#. Tag: para
#: xml.xml:31
#, fuzzy, no-c-format
-msgid ""
-"Many frameworks use XML to provide metadata relating to Java classes. "
-"However, Weld uses a very different approach to specifying the names of Java
"
-"classes, fields or methods to most other frameworks. Instead of writing "
-"class and member names as the string values of XML elements and attributes, "
-"Weld lets you use the class or member name as the name of the XML element."
-msgstr ""
-"Molti framework utilizzano XML per scrivere metadati relazionati alle "
-"classi. Web Beans usa un approccio molto diverso rispetto agli altri "
-"framework per specificare i nomi delle classi Java, dei campi o dei metodi. "
-"Invece di scrivere i nomi delle classi o dei membri come valori stringa di "
-"elementi e atttributi XML, Web Beans consente di utilizzare il nome della "
-"classe o del membro come nome dell'elemento XML."
+msgid "Many frameworks use XML to provide metadata relating to Java classes.
However, Weld uses a very different approach to specifying the names of Java classes,
fields or methods to most other frameworks. Instead of writing class and member names as
the string values of XML elements and attributes, Weld lets you use the class or member
name as the name of the XML element."
+msgstr "Molti framework utilizzano XML per scrivere metadati relazionati alle
classi. Web Beans usa un approccio molto diverso rispetto agli altri framework per
specificare i nomi delle classi Java, dei campi o dei metodi. Invece di scrivere i nomi
delle classi o dei membri come valori stringa di elementi e atttributi XML, Web Beans
consente di utilizzare il nome della classe o del membro come nome dell'elemento
XML."
#. Tag: para
#: xml.xml:38
#, no-c-format
-msgid ""
-"The advantage of this approach is that you can write an XML schema that "
-"prevents spelling errors in your XML document. It's even possible for a tool
"
-"to generate the XML schema automatically from the compiled Java code. Or, an
"
-"integrated development environment could perform the same validation without
"
-"the need for the explicit intermediate generation step."
-msgstr ""
-"Il vantaggio di quest'approccio è che risulta possibile scrivere uno "
-"schemaXML che previene gli errori di scrittura nei documenti XML. E' "
-"comunque possibile per un tool generare lo schema XML in modo automatico dal
"
-"codice Java compilato. Oppure un ambiente di sviluppo integrato può eseguire
"
-"la stessa validazionesenza il bisogno di un passo di generazione intermedio "
-"ed esplicito."
+msgid "The advantage of this approach is that you can write an XML schema that
prevents spelling errors in your XML document. It's even possible for a tool to
generate the XML schema automatically from the compiled Java code. Or, an integrated
development environment could perform the same validation without the need for the
explicit intermediate generation step."
+msgstr "Il vantaggio di quest'approccio è che risulta possibile scrivere uno
schemaXML che previene gli errori di scrittura nei documenti XML. E' comunque
possibile per un tool generare lo schema XML in modo automatico dal codice Java compilato.
Oppure un ambiente di sviluppo integrato può eseguire la stessa validazionesenza il
bisogno di un passo di generazione intermedio ed esplicito."
#. Tag: title
#: xml.xml:46
@@ -100,77 +64,46 @@
#. Tag: para
#: xml.xml:48
#, fuzzy, no-c-format
-msgid ""
-"For each Java package, Weld defines a corresponding XML namespace. The "
-"namespace is formed by prepending <literal>urn:java:</literal> to the
Java "
-"package name. For the package <literal>com.mydomain.myapp</literal>,
the XML "
-"namespace is <literal>urn:java:com.mydomain.myapp</literal>."
-msgstr ""
-"Per ogni pacchetto Java, Web Beans definisce un corrispondente namespace "
-"XML. Ilnamespace è formato aggiungendo il prefisso
<literal>urn:java:</"
-"literal> al nomedel pacchetto Java. Per il pacchetto
<literal>com.mydomain."
-"myapp</literal>, il namespace XML è
<literal>urn:java:com.mydomain.myapp</"
-"literal>."
+msgid "For each Java package, Weld defines a corresponding XML namespace. The
namespace is formed by prepending <literal>urn:java:</literal> to the Java
package name. For the package <literal>com.mydomain.myapp</literal>, the XML
namespace is <literal>urn:java:com.mydomain.myapp</literal>."
+msgstr "Per ogni pacchetto Java, Web Beans definisce un corrispondente namespace
XML. Ilnamespace è formato aggiungendo il prefisso
<literal>urn:java:</literal> al nomedel pacchetto Java. Per il pacchetto
<literal>com.mydomain.myapp</literal>, il namespace XML è
<literal>urn:java:com.mydomain.myapp</literal>."
#. Tag: para
#: xml.xml:54
#, no-c-format
-msgid ""
-"Java types belonging to a package are referred to using an XML element in "
-"the namespace corresponding to the package. The name of the element is the "
-"name of the Java type. Fields and methods of the type are specified by child
"
-"elements in the same namespace. If the type is an annotation, members are "
-"specified by attributes of the element."
-msgstr ""
-"I tipi Java appartenenti al pacchetto vengono riferiti usando un elemento "
-"XML nel namespace corrispondente al pacchetto. Il nome dell'elemento è un
"
-"nome di tipo Java. I campi e metodi del tipo vengono specificati dagli "
-"elementi figlio nello stesso namespace. Se il tipo è un'annotazione, i "
-"membri sonospecificati dagli attributi dell'elemento."
+msgid "Java types belonging to a package are referred to using an XML element in the
namespace corresponding to the package. The name of the element is the name of the Java
type. Fields and methods of the type are specified by child elements in the same
namespace. If the type is an annotation, members are specified by attributes of the
element."
+msgstr "I tipi Java appartenenti al pacchetto vengono riferiti usando un elemento
XML nel namespace corrispondente al pacchetto. Il nome dell'elemento è un nome di tipo
Java. I campi e metodi del tipo vengono specificati dagli elementi figlio nello stesso
namespace. Se il tipo è un'annotazione, i membri sonospecificati dagli attributi
dell'elemento."
#. Tag: para
#: xml.xml:61
#, no-c-format
-msgid ""
-"For example, the element <literal><util:Date/></literal>
in the "
-"following XML fragment refers to the class
<literal>java.util.Date</literal>:"
-msgstr ""
-"Per esempio l'elemento
<literal><util:Date/></literal> nel seguente "
-"frammento XML si riferisce alla classe
<literal>java.util.Date</literal>:"
+msgid "For example, the element
<literal><util:Date/></literal> in the following XML fragment
refers to the class <literal>java.util.Date</literal>:"
+msgstr "Per esempio l'elemento
<literal><util:Date/></literal> nel seguente frammento XML si
riferisce alla classe <literal>java.util.Date</literal>:"
#. Tag: programlisting
#: xml.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
" xmlns:util=\"urn:java:java.util\">\n"
" <util:Date/>\n"
"</beans>]]>"
msgstr ""
-"<![CDATA[<WebBeans xmlns=\"urn:java:javax.webbeans\"\n"
-" xmlns:util=\"urn:java:java.util\">\n"
-"\n"
-" <util:Date/>\n"
-"\n"
-"</WebBeans>]]>"
+"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
+" xmlns:util=\"urn:java:java.util\">\n"
+" <util:Date/>\n"
+"</beans>]]>"
#. Tag: para
#: xml.xml:68
#, fuzzy, no-c-format
-msgid ""
-"And this is all the code we need to declare that
<literal>Date</literal> is "
-"a bean! An instance of <literal>Date</literal> may now be injected by
any "
-"other bean:"
-msgstr ""
-"E questo è tutto il codice per dichiarare che <literal>Date</literal> è
un "
-"Web Bean semplice! Un'istanza di <literal>Date</literal> ora può
essere "
-"iniettata da qualsiasi altro Web Bean:"
+msgid "And this is all the code we need to declare that
<literal>Date</literal> is a bean! An instance of
<literal>Date</literal> may now be injected by any other bean:"
+msgstr "E questo è tutto il codice per dichiarare che
<literal>Date</literal> è un Web Bean semplice! Un'istanza di
<literal>Date</literal> ora può essere iniettata da qualsiasi altro Web
Bean:"
#. Tag: programlisting
#: xml.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[private @Inject Date date;]]>"
-msgstr "<![CDATA[@Current Date date]]>"
+msgstr "<![CDATA[private @Inject Date date;]]>"
#. Tag: title
#: xml.xml:78
@@ -181,16 +114,12 @@
#. Tag: para
#: xml.xml:80
#, fuzzy, no-c-format
-msgid ""
-"We can declare the scope, deployment type and interceptor binding types "
-"using direct child elements of the bean declaration:"
-msgstr ""
-"E' possibile dichiarare lo scope, il tipo di deploy ed i tipi di binding
"
-"degli interceptor usando elementi figli diretti della dichiarazione Web
Bean:"
+msgid "We can declare the scope, deployment type and interceptor binding types using
direct child elements of the bean declaration:"
+msgstr "E' possibile dichiarare lo scope, il tipo di deploy ed i tipi di binding
degli interceptor usando elementi figli diretti della dichiarazione Web Bean:"
#. Tag: programlisting
#: xml.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<myapp:ShoppingCart>\n"
" <SessionScoped/>\n"
@@ -199,22 +128,20 @@
"</myapp:ShoppingCart>]]>"
msgstr ""
"<![CDATA[<myapp:ShoppingCart>\n"
-" <SessionScoped/>\n"
-" <myfwk:Transactional requiresNew=\"true\"/>\n"
-" <myfwk:Secure/>\n"
+" <SessionScoped/>\n"
+" <myfwk:Transactional requiresNew=\"true\"/>\n"
+" <myfwk:Secure/>\n"
"</myapp:ShoppingCart>]]>"
#. Tag: para
#: xml.xml:87
#, fuzzy, no-c-format
msgid "We use exactly the same approach to specify names and qualifiers:"
-msgstr ""
-"Si utilizza esattamente lo stesso approccio per specificare i nomi ed il "
-"tipo di binding:"
+msgstr "Si utilizza esattamente lo stesso approccio per specificare i nomi ed il
tipo di binding:"
#. Tag: programlisting
#: xml.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<util:Date>\n"
" <Named>currentTime</Named>\n"
@@ -233,42 +160,38 @@
"</util:Date>]]>"
msgstr ""
"<![CDATA[<util:Date>\n"
-" <Named>currentTime</Named>\n"
+" <Named>currentTime</Named>\n"
"</util:Date>\n"
"\n"
"<util:Date>\n"
-" <SessionScoped/>\n"
-" <myapp:Login/>\n"
-" <Named>loginTime</Named>\n"
+" <SessionScoped/>\n"
+" <myapp:Login/>\n"
+" <Named>loginTime</Named>\n"
"</util:Date>\n"
"\n"
"<util:Date>\n"
-" <ApplicationScoped/>\n"
-" <myapp:SystemStart/>\n"
-" <Named>systemStartTime</Named>\n"
+" <ApplicationScoped/>\n"
+" <myapp:SystemStart/>\n"
+" <Named>systemStartTime</Named>\n"
"</util:Date>]]>"
#. Tag: para
#: xml.xml:91
#, fuzzy, no-c-format
-msgid ""
-"Where <literal>@Login</literal> and
<literal>@SystemStart</literal> are "
-"qualifier annotations types."
-msgstr ""
-"Dove <literal>@Login</literal> e
<literal>@SystemStart</literal> sono tipi "
-"di annotazioni di binding."
+msgid "Where <literal>@Login</literal> and
<literal>@SystemStart</literal> are qualifier annotations types."
+msgstr "Dove <literal>@Login</literal> e
<literal>@SystemStart</literal> sono tipi di annotazioni di binding."
#. Tag: programlisting
#: xml.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[private @Inject Date currentTime;\n"
"private @Login Date loginTime;\n"
"private @SystemStart Date systemStartTime;]]>"
msgstr ""
-"<![CDATA[@Current Date currentTime;\n"
-"@Login Date loginTime;\n"
-"@SystemStart Date systemStartTime;]]>"
+"<![CDATA[private @Inject Date currentTime;\n"
+"private @Login Date loginTime;\n"
+"private @SystemStart Date systemStartTime;]]>"
#. Tag: para
#: xml.xml:97
@@ -278,7 +201,7 @@
#. Tag: programlisting
#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<myapp:AsynchronousChequePaymentProcessor>\n"
" <myapp:PayByCheque/>\n"
@@ -286,19 +209,15 @@
"</myapp:AsynchronousChequePaymentProcessor>]]>"
msgstr ""
"<![CDATA[<myapp:AsynchronousChequePaymentProcessor>\n"
-" <myapp:PayByCheque/>\n"
-" <myapp:Asynchronous/>\n"
+" <myapp:PayByCheque/>\n"
+" <myapp:Asynchronous/>\n"
"</myapp:AsynchronousChequePaymentProcessor>]]>"
#. Tag: para
#: xml.xml:101
#, fuzzy, no-c-format
-msgid ""
-"Interceptors and decorators are beans as well, so they may be declared just "
-"like any other bean:"
-msgstr ""
-"Interceptor e decoratori sono solo eb Bean semplici, e quindi possono essere
"
-"dichiarati come qualsiasi altro Web Bean semplice:"
+msgid "Interceptors and decorators are beans as well, so they may be declared just
like any other bean:"
+msgstr "Interceptor e decoratori sono solo eb Bean semplici, e quindi possono essere
dichiarati come qualsiasi altro Web Bean semplice:"
#. Tag: programlisting
#: xml.xml:105
@@ -336,9 +255,7 @@
#: xml.xml:121
#, fuzzy, no-c-format
msgid "Weld lets us define a bean at an injection point. For example:"
-msgstr ""
-"I Web Beans consentono di definire un Web Bean ad un certo punto di "
-"iniezione. Per esempio:"
+msgstr "I Web Beans consentono di definire un Web Bean ad un certo punto di
iniezione. Per esempio:"
#. Tag: programlisting
#: xml.xml:123
@@ -369,30 +286,14 @@
#. Tag: para
#: xml.xml:125
#, fuzzy, no-c-format
-msgid ""
-"The <literal><Name></literal> element declares a bean of
scope "
-"<literal>@Dependent</literal> and class
<literal>Name</literal>, with a set "
-"of initial field values. This bean has a special, container-generated "
-"qualifier and is therefore injectable only to the specific injection point "
-"at which it is declared."
-msgstr ""
-"L'elemento <literal><Name></literal> dichiara un Web
Bean semplice con "
-"scope <literal>@Dependent</literal> e classe
<literal>Name</literal>, con un "
-"set di valori di campo iniziali. Questo Web Bean ha uno speciale binding "
-"generatore dal container e quindi è iniettabile solo allo specifico punto di
"
-"iniezione al quale è stato dichiarato."
+msgid "The <literal><Name></literal> element declares a
bean of scope <literal>@Dependent</literal> and class
<literal>Name</literal>, with a set of initial field values. This bean has a
special, container-generated qualifier and is therefore injectable only to the specific
injection point at which it is declared."
+msgstr "L'elemento <literal><Name></literal> dichiara
un Web Bean semplice con scope <literal>@Dependent</literal> e classe
<literal>Name</literal>, con un set di valori di campo iniziali. Questo Web
Bean ha uno speciale binding generatore dal container e quindi è iniettabile solo allo
specifico punto di iniezione al quale è stato dichiarato."
#. Tag: para
#: xml.xml:131
#, fuzzy, no-c-format
-msgid ""
-"This simple but powerful feature allows the Weld XML format to be used to "
-"specify whole graphs of Java objects. It's not quite a full databinding "
-"solution, but it's close!"
-msgstr ""
-"Questa caratteristica semplice e potente consente formato XML di Web Bean di
"
-"essere usato per specificare l'intero grafo di oggetti Java. Non è ancora
"
-"una completa soluzione di databinding, ma ci si avvicina!"
+msgid "This simple but powerful feature allows the Weld XML format to be used to
specify whole graphs of Java objects. It's not quite a full databinding solution, but
it's close!"
+msgstr "Questa caratteristica semplice e potente consente formato XML di Web Bean di
essere usato per specificare l'intero grafo di oggetti Java. Non è ancora una completa
soluzione di databinding, ma ci si avvicina!"
#. Tag: title
#: xml.xml:139
@@ -404,15 +305,8 @@
#. Tag: para
#: xml.xml:141
#, fuzzy, no-c-format
-msgid ""
-"If we want our XML document format to be authored by people who aren't Java
"
-"developers, or who don't have access to our code, we need to provide a "
-"schema. There's nothing specific to Weld about writing or using the
schema."
-msgstr ""
-"Se si vuole che il formato di documento XML sia scritto da persone che non "
-"sono sviluppatori Java o che non hanno accesso al codice, occorre fornire "
-"uno schema. There's nothing specific to Web Beans about writing or using the
"
-"schema."
+msgid "If we want our XML document format to be authored by people who aren't
Java developers, or who don't have access to our code, we need to provide a schema.
There's nothing specific to Weld about writing or using the schema."
+msgstr "Se si vuole che il formato di documento XML sia scritto da persone che non
sono sviluppatori Java o che non hanno accesso al codice, occorre fornire uno schema.
There's nothing specific to Web Beans about writing or using the schema."
#. Tag: programlisting
#: xml.xml:147
@@ -421,8 +315,7 @@
"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
" xmlns:myapp=\"urn:java:com.mydomain.myapp\"\n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"urn:java:javax.beans
http://java.sun.com/jee/beans-"
-"1.0.xsd\n"
+" xsi:schemaLocation=\"urn:java:javax.beans
http://java.sun.com/jee/beans-1.0.xsd\n"
" urn:java:com.mydomain.myapp
http://mydomain.com/xsd/myapp-1.2.xsd\">\n"
"\n"
" <myapp:System>\n"
@@ -434,10 +327,8 @@
"<![CDATA[<WebBeans xmlns=\"urn:java:javax.webbeans\"\n"
" xmlns:myapp=\"urn:java:com.mydomain.myapp\"\n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"urn:java:javax.webbeans
http://java.sun.com/"
-"jee/web-beans-1.0.xsd\n"
-" urn:java:com.mydomain.myapp
http://mydomain."
-"com/xsd/myapp-1.2.xsd\">\n"
+" xsi:schemaLocation=\"urn:java:javax.webbeans
http://java.sun.com/jee/web-beans-1.0.xsd\n"
+" urn:java:com.mydomain.myapp
http://mydomain.com/xsd/myapp-1.2.xsd\">\n"
"\n"
" <myapp:System>\n"
" ...\n"
@@ -448,20 +339,13 @@
#. Tag: para
#: xml.xml:149
#, fuzzy, no-c-format
-msgid ""
-"Writing an XML schema is quite tedious. Therefore, the Weld project will "
-"provide a tool which automatically generates the XML schema from compiled "
-"Java code."
-msgstr ""
-"Scrivere unoschema XML è abbastanza noiso. Quindi il progetto Web Beans RI "
-"fornirà uno strumento per generare automaticamente lo schema XML dal codice "
-"Java compilato."
+msgid "Writing an XML schema is quite tedious. Therefore, the Weld project will
provide a tool which automatically generates the XML schema from compiled Java
code."
+msgstr "Scrivere unoschema XML è abbastanza noiso. Quindi il progetto Web Beans RI
fornirà uno strumento per generare automaticamente lo schema XML dal codice Java
compilato."
#~ msgid "In either of these cases, Web Beans gives us two options:"
#~ msgstr "In entrambi i casi Web Beans fornisce due opzioni:"
-
#~ msgid "write a producer method, or"
#~ msgstr "scrivere un metodo produttore, o"
-
#~ msgid "declare the Web Bean using XML."
#~ msgstr "dichiarare il Web Bean usando XML."
+