[jboss-svn-commits] JBL Code SVN: r23614 - labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 29 02:07:51 EDT 2008


Author: ldelima at redhat.com
Date: 2008-10-29 02:07:51 -0400 (Wed, 29 Oct 2008)
New Revision: 23614

Modified:
   labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Configuring_JBossJTA.po
   labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Examples.po
Log:
translation ongoing

Modified: labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Configuring_JBossJTA.po
===================================================================
--- labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Configuring_JBossJTA.po	2008-10-29 06:03:05 UTC (rev 23613)
+++ labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Configuring_JBossJTA.po	2008-10-29 06:07:51 UTC (rev 23614)
@@ -8,7 +8,7 @@
 "Project-Id-Version: Configuring_JBossJTA\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-23 06:25+0000\n"
-"PO-Revision-Date: 2008-10-29 16:02+1000\n"
+"PO-Revision-Date: 2008-10-29 16:06+1000\n"
 "Last-Translator: Leticia de Lima <ldelima at redhat.com>\n"
 "Language-Team: Brazilian Portuguese <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -35,31 +35,31 @@
 "The following table shows the configuration features, with default values "
 "shown in italics. For more detailed information, the relevant section "
 "numbers are provided."
-msgstr ""
+msgstr "A seguinte tabela apresenta os recursos da configuração, com os valores padrões apresentados em itálico. Para uma melhor informação, os números da seção relevante são fornecidas."
 
 #. Tag: title
 #: Configuring_JBossJTA.xml:13
 #, no-c-format
 msgid "JBossJTA configuration options."
-msgstr ""
+msgstr "Opções de configuração JBossJTA."
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:17
 #, no-c-format
 msgid "Configuration Name"
-msgstr ""
+msgstr "Nome da Configuração"
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:20
 #, no-c-format
 msgid "Possibile Values"
-msgstr ""
+msgstr "Valores Possíveis"
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:23
 #, no-c-format
 msgid "Relevant Section"
-msgstr ""
+msgstr "Seção Relevante"
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:30
@@ -71,7 +71,7 @@
 #: Configuring_JBossJTA.xml:33
 #, no-c-format
 msgid "YES/NO"
-msgstr ""
+msgstr "SIM/NÃO"
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:40
@@ -121,7 +121,7 @@
 #: Configuring_JBossJTA.xml:72
 #, no-c-format
 msgid "Any supported JDBC isolation level."
-msgstr ""
+msgstr "Qualquer nível de isolação JDBC suportado."
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:79
@@ -133,11 +133,11 @@
 #: Configuring_JBossJTA.xml:82
 #, no-c-format
 msgid "true/false"
-msgstr ""
+msgstr "verdadeiro/falso"
 
 #. Tag: entry
 #: Configuring_JBossJTA.xml:85
 #, no-c-format
 msgid "Chapter 3"
-msgstr ""
+msgstr "Capítulo 3"
 

Modified: labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Examples.po
===================================================================
--- labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Examples.po	2008-10-29 06:03:05 UTC (rev 23613)
+++ labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/pt-BR/Examples.po	2008-10-29 06:07:51 UTC (rev 23614)
@@ -1,17 +1,20 @@
+# translation of Examples.po to Brazilian Portuguese
 # Language pt-BR translations for  package.
+#
 # Automatically generated, 2008.
-#
+# Leticia de Lima <ldelima at redhat.com>, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version:  \n"
+"Project-Id-Version: Examples\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-23 06:25+0000\n"
-"PO-Revision-Date: 2008-09-23 06:25+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-10-29 16:07+1000\n"
+"Last-Translator: Leticia de Lima <ldelima at redhat.com>\n"
+"Language-Team: Brazilian Portuguese <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: Examples.xml:6
@@ -197,6 +200,162 @@
 "        }\n"
 "}"
 msgstr ""
+"public class JDBCTest\n"
+"{\n"
+"public static void main (String[] args)\n"
+"{\n"
+"        /*\n"
+"         */\n"
+"        \n"
+"        Connection conn = null;\n"
+"        Connection conn2 = null;\n"
+"        Statement stmt = null;        // non-tx statement\n"
+"        Statement stmtx = null;        // will be a tx-statement\n"
+"        Properties dbProperties = new Properties();\n"
+"        \n"
+"        try\n"
+"        {\n"
+"                System.out.println(\"\\nCreating connection to database: "
+"\"+url);\n"
+"        \n"
+"                /*\n"
+"                 * Create conn and conn2 so that they are bound to the "
+"JBossTS\n"
+"                 * transactional JDBC driver. The details of how to do this "
+"will\n"
+"                 * depend on your environment, the database you wish to use "
+"and\n"
+"                 * whether or not you want to use the Direct or JNDI "
+"approach. See\n"
+"                 * the appropriate chapter in the JTA Programmers Guide.\n"
+"                 */\n"
+"        \n"
+"                stmt = conn.createStatement();  // non-tx statement\n"
+"        \n"
+"                try\n"
+"                {\n"
+"                        stmt.executeUpdate(\"DROP TABLE test_table\");\n"
+"                        stmt.executeUpdate(\"DROP TABLE test_table2\");\n"
+"                }\n"
+"                catch (Exception e)\n"
+"                {\n"
+"                        // assume not in database.\n"
+"                }\n"
+"        \n"
+"                try\n"
+"                {\n"
+"                        stmt.executeUpdate(\"CREATE TABLE test_table (a "
+"INTEGER,b INTEGER)\");\n"
+"                        stmt.executeUpdate(\"CREATE TABLE test_table2 (a "
+"INTEGER,b INTEGER)\");\n"
+"                }\n"
+"                catch (Exception e)\n"
+"                {\n"
+"                }\n"
+"        \n"
+"                try\n"
+"                {\n"
+"                        System.out.println(\"Starting top-level transaction."
+"\");\n"
+"        \n"
+"                        com.arjuna.ats.jta.UserTransaction.userTransaction()."
+"begin();\n"
+"        \n"
+"                        stmtx = conn.createStatement(); // will be a tx-"
+"statement\n"
+"        \n"
+"                        System.out.println(\"\\nAdding entries to table 1."
+"\");\n"
+"        \n"
+"                        stmtx.executeUpdate(\"INSERT INTO test_table (a, b) "
+"VALUES (1,2)\");\n"
+"        \n"
+"                        ResultSet res1 = null;\n"
+"        \n"
+"                        System.out.println(\"\\nInspecting table 1.\");\n"
+"        \n"
+"                        res1 = stmtx.executeQuery(\"SELECT * FROM test_table"
+"\");\n"
+"                        while (res1.next())\n"
+"                        {\n"
+"                                System.out.println(\"Column 1: \"+res1.getInt"
+"(1));\n"
+"                                System.out.println(\"Column 2: \"+res1.getInt"
+"(2));\n"
+"                        }\n"
+"        \n"
+"                        System.out.println(\"\\nAdding entries to table 2."
+"\");\n"
+"        \n"
+"                        stmtx.executeUpdate(\"INSERT INTO test_table2 (a, b) "
+"VALUES (3,4)\");\n"
+"                        \n"
+"                        res1 = stmtx.executeQuery(\"SELECT * FROM test_table2"
+"\");\n"
+"                        \n"
+"                        System.out.println(\"\\nInspecting table 2.\");\n"
+"        \n"
+"                        while (res1.next())\n"
+"                        {\n"
+"                                System.out.println(\"Column 1: \"+res1.getInt"
+"(1));\n"
+"                                System.out.println(\"Column 2: \"+res1.getInt"
+"(2));\n"
+"                        }\n"
+"                        System.out.print(\"\\nNow attempting to rollback "
+"changes.\");\n"
+"        \n"
+"                        com.arjuna.ats.jta.UserTransaction.userTransaction()."
+"rollback();\n"
+"        \n"
+"                        com.arjuna.ats.jta.UserTransaction.userTransaction()."
+"begin();\n"
+"        \n"
+"                        stmtx = conn.createStatement();\n"
+"                        ResultSet res2 = null;\n"
+"        \n"
+"                        System.out.println(\"\\nNow checking state of table "
+"1.\");\n"
+"        \n"
+"                        res2 = stmtx.executeQuery(\"SELECT * FROM test_table"
+"\");\n"
+"                        while (res2.next())\n"
+"                        {\n"
+"                                System.out.println(\"Column 1: \"+res2.getInt"
+"(1));\n"
+"                                System.out.println(\"Column 2: \"+res2.getInt"
+"(2));\n"
+"                        }\n"
+"        \n"
+"                        System.out.println(\"\\nNow checking state of table "
+"2.\");\n"
+"        \n"
+"                        stmtx = conn.createStatement();\n"
+"                        res2 = stmtx.executeQuery(\"SELECT * FROM test_table2"
+"\");\n"
+"                        while (res2.next())\n"
+"                        {\n"
+"                                System.out.println(\"Column 1: \"+res2.getInt"
+"(1));\n"
+"                                System.out.println(\"Column 2: \"+res2.getInt"
+"(2));\n"
+"                        }\n"
+"        \n"
+"                        com.arjuna.ats.jta.UserTransaction.userTransaction()."
+"commit(true);\n"
+"                }\n"
+"                catch (Exception ex)\n"
+"                {\n"
+"                        ex.printStackTrace();\n"
+"                        System.exit(0);\n"
+"                }\n"
+"        }\n"
+"        catch (Exception sysEx)\n"
+"        {\n"
+"                sysEx.printStackTrace();\n"
+"                System.exit(0);\n"
+"        }\n"
+"}"
 
 #. Tag: title
 #: Examples.xml:16
@@ -242,25 +401,25 @@
 #: Examples.xml:30
 #, no-c-format
 msgid "DB_x_DatabaseURL="
-msgstr ""
+msgstr "DB_x_DatabaseURL="
 
 #. Tag: para
 #: Examples.xml:35
 #, no-c-format
 msgid "DB_x_DatabaseUser="
-msgstr ""
+msgstr "DB_x_DatabaseUser="
 
 #. Tag: para
 #: Examples.xml:40
 #, no-c-format
 msgid "DB_x_DatabasePassword="
-msgstr ""
+msgstr "DB_x_DatabasePassword="
 
 #. Tag: para
 #: Examples.xml:45
 #, no-c-format
 msgid "DB_x_DatabaseDynamicClass="
-msgstr ""
+msgstr "DB_x_DatabaseDynamicClass="
 
 #. Tag: para
 #: Examples.xml:50
@@ -458,6 +617,183 @@
 " private static final char BREAKCHARACTER = &#39;;&#39;; // delimiter for "
 "parameters"
 msgstr ""
+"/*\n"
+" * Some XAResourceRecovery implementations will do their startup work here,\n"
+" * and then do little or nothing in setDetails. Since this one needs to "
+"know\n"
+" * dynamic class name, the constructor does nothing.\n"
+" */\n"
+"        \n"
+"public BasicXARecovery () throws SQLException\n"
+"{\n"
+"        numberOfConnections = 1;\n"
+"        connectionIndex = 0;\n"
+"        props = null;\n"
+"}\n"
+"        \n"
+"/*\n"
+" * The recovery module will have chopped off this class name already. The\n"
+" * parameter should specify a property file from which the url, user name,\n"
+" * password, etc. can be read.\n"
+" * \n"
+" * @message com.arjuna.ats.internal.jdbc.recovery.initexp An exception\n"
+" *          occurred during initialisation.\n"
+" */\n"
+"        \n"
+"public boolean initialise (String parameter) throws SQLException\n"
+"{\n"
+"        if (parameter == null) \n"
+"                return true;\n"
+"        \n"
+"        int breakPosition = parameter.indexOf(BREAKCHARACTER);\n"
+"        String fileName = parameter;\n"
+"        \n"
+"        if (breakPosition != -1)\n"
+"        {\n"
+"                fileName = parameter.substring(0, breakPosition - 1);\n"
+"        \n"
+"                try\n"
+"                {\n"
+"                        numberOfConnections = Integer.parseInt(parameter."
+"substring(breakPosition + 1));\n"
+"                }\n"
+"                catch (NumberFormatException e)\n"
+"                {\n"
+"                        return false;\n"
+"                }\n"
+"        }\n"
+"        \n"
+"        try\n"
+"        {\n"
+"                String uri = com.arjuna.common.util.FileLocator.locateFile"
+"(fileName);\n"
+"                jdbcPropertyManager.propertyManager.load(XMLFilePlugin.class."
+"getName(), uri);\n"
+"        \n"
+"                props = jdbcPropertyManager.propertyManager.getProperties"
+"();\n"
+"        }\n"
+"        catch (Exception e)\n"
+"        {\n"
+"                return false;\n"
+"        }\n"
+"        \n"
+"        return true;\n"
+"}\n"
+"        \n"
+"/*\n"
+" * @message com.arjuna.ats.internal.jdbc.recovery.xarec {0} could not find\n"
+" *          information for connection!\n"
+" */\n"
+"        \n"
+"public synchronized XAResource getXAResource () throws SQLException\n"
+"{\n"
+"        JDBC2RecoveryConnection conn = null;\n"
+"        \n"
+"        if (hasMoreResources())\n"
+"        {\n"
+"                connectionIndex++;\n"
+"        \n"
+"                conn = getStandardConnection();\n"
+"        \n"
+"        if (conn == null) conn = getJNDIConnection();\n"
+"        }\n"
+"        \n"
+"                return conn.recoveryConnection().getConnection()."
+"getXAResource();\n"
+"}\n"
+"        \n"
+"public synchronized boolean hasMoreResources ()\n"
+"{\n"
+"        if (connectionIndex == numberOfConnections) \n"
+"                return false;\n"
+"        else\n"
+"                return true;\n"
+"}\n"
+"        \n"
+"private final JDBC2RecoveryConnection getStandardConnection ()\n"
+"        throws SQLException\n"
+"{\n"
+"        String number = new String(\"\" + connectionIndex);\n"
+"        String url = new String(dbTag + number + urlTag);\n"
+"        String password = new String(dbTag + number + passwordTag);\n"
+"        String user = new String(dbTag + number + userTag);\n"
+"        String dynamicClass = new String(dbTag + number + dynamicClassTag);\n"
+"        \n"
+"        Properties dbProperties = new Properties();\n"
+"        \n"
+"        String theUser = props.getProperty(user);\n"
+"        String thePassword = props.getProperty(password);\n"
+"        \n"
+"        if (theUser != null)\n"
+"        {\n"
+"                dbProperties.put(TransactionalDriver.userName, theUser);\n"
+"                dbProperties.put(TransactionalDriver.password, "
+"thePassword);\n"
+"        \n"
+"                String dc = props.getProperty(dynamicClass);\n"
+"        \n"
+"                if (dc != null)\n"
+"                        dbProperties.put(TransactionalDriver.dynamicClass, "
+"dc);\n"
+"        \n"
+"                return new JDBC2RecoveryConnection(url, dbProperties);\n"
+"        }\n"
+"        else\n"
+"                return null;\n"
+"}\n"
+"        \n"
+"private final JDBC2RecoveryConnection getJNDIConnection ()\n"
+"        throws SQLException\n"
+"{\n"
+"        String number = new String(\"\" + connectionIndex);\n"
+"        String url = new String(dbTag + jndiTag + number + urlTag);\n"
+"        String password = new String(dbTag + jndiTag + number + "
+"passwordTag);\n"
+"        String user = new String(dbTag + jndiTag + number + userTag);\n"
+"        \n"
+"        Properties dbProperties = new Properties();\n"
+"        \n"
+"        String theUser = props.getProperty(user);\n"
+"        String thePassword = props.getProperty(password);\n"
+"        \n"
+"        if (theUser != null)\n"
+"        {\n"
+"                dbProperties.put(TransactionalDriver.userName, theUser);\n"
+"                dbProperties.put(TransactionalDriver.password, "
+"thePassword);\n"
+"        \n"
+"                return new JDBC2RecoveryConnection(url, dbProperties);\n"
+"        }\n"
+"        else\n"
+"                return null;\n"
+"}\n"
+"        \n"
+"private int numberOfConnections;\n"
+"private int connectionIndex;\n"
+"private Properties props;\n"
+"private static final String dbTag = \"DB_\";\n"
+"private static final String urlTag = \"_DatabaseURL\";\n"
+"private static final String passwordTag = \"_DatabasePassword\";\n"
+"private static final String userTag = \"_DatabaseUser\";\n"
+"private static final String dynamicClassTag = \"_DatabaseDynamicClass\";\n"
+"private static final String jndiTag = \"JNDI_\";\n"
+"        \n"
+"/*\n"
+" * Example:\n"
+" * \n"
+" * DB2_DatabaseURL=jdbc\\:arjuna\\:sequelink\\://qa02\\:20001\n"
+" * DB2_DatabaseUser=tester2 DB2_DatabasePassword=tester\n"
+" * DB2_DatabaseDynamicClass=com.arjuna.ats.internal.jdbc.drivers."
+"sequelink_5_1\n"
+" * \n"
+" * DB_JNDI_DatabaseURL=jdbc\\:arjuna\\:jndi DB_JNDI_DatabaseUser=tester1\n"
+" * DB_JNDI_DatabasePassword=tester DB_JNDI_DatabaseName=empay\n"
+" * DB_JNDI_Host=qa02 DB_JNDI_Port=20000\n"
+" */\n"
+"\n"
+" private static final char BREAKCHARACTER = &#39;;&#39;; // delimiter for "
+"parameters"
 
 #. Tag: para
 #: Examples.xml:59
@@ -468,3 +804,4 @@
 "to the database using the same parameters that were used to create the "
 "initial connection."
 msgstr ""
+




More information about the jboss-svn-commits mailing list