~ubuntu-branches/ubuntu/precise/libpgjava/precise

« back to all changes in this revision

Viewing changes to org/postgresql/util/GT.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2008-04-26 22:01:11 UTC
  • mfrom: (3.1.4 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080426220111-yasgxtas5smx2qm3
Tags: 8.2-504-2
* Updated description to mention PostgreSQL 8.3 as supported.
  Closes: #398348
* Removed libpgjava transitional package. Closes: #477557
* Moved debhelper and cdbs from Build-Depends-Indep to Build-Depends.
* Added Homepage, Vcs-Svn and Vcs-Browser fields.
* Added watch file.
* Added myself to Uploaders.
* Removed Stafan and Wolfgang from Uploaders.
* Updated Standards-Version to 3.7.3
* Updated debhelper level to 5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
4
4
*
5
5
* IDENTIFICATION
6
 
*   $PostgreSQL: pgjdbc/org/postgresql/util/GT.java,v 1.6 2005/01/11 08:25:49 jurka Exp $
 
6
*   $PostgreSQL: pgjdbc/org/postgresql/util/GT.java,v 1.7 2006/05/22 07:15:23 jurka Exp $
7
7
*
8
8
*-------------------------------------------------------------------------
9
9
*/
23
23
 
24
24
public class GT {
25
25
 
26
 
    private static GT _gt = new GT();
 
26
    private final static GT _gt = new GT();
 
27
    private final static Object noargs[] = new Object[0];
27
28
 
28
29
    public final static String tr(String message) {
29
30
        return _gt.translate(message, null);
67
68
            }
68
69
        }
69
70
 
 
71
        // If we don't have any parameters we still need to run
 
72
        // this through the MessageFormat(ter) to allow the same
 
73
        // quoting and escaping rules to be used for all messages.
 
74
        //
 
75
        if (args == null) {
 
76
            args = noargs;
 
77
        }
 
78
 
70
79
        // Replace placeholders with arguments
71
80
        //
72
 
        if (args != null && message != null)
 
81
        if (message != null)
73
82
        {
74
83
            message = MessageFormat.format(message, args);
75
84
        }