svn commit: r3291 - trunk/src/net/java/sip/communicator/plugin/branding

yanas at dev.java.net yanas at dev.java.net
Wed Dec 5 15:38:43 CET 2007


Author: yanas
Date: 2007-12-05 14:38:41+0000
New Revision: 3291

Modified:
   trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java
   trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java
   trunk/src/net/java/sip/communicator/plugin/branding/resources.properties

Log:
some more diversification of the branding resources

Modified: trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java?view=diff&rev=3291&p1=trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java&p2=trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java&r1=3290&r2=3291
==============================================================================
--- trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java	(original)
+++ trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java	2007-12-05 14:38:41+0000
@@ -71,14 +71,7 @@
 

         this.rightsArea.setContentType("text/html");

 

-        String startDivTag = "<DIV id=\"message\">";

-        String endDivTag = "</DIV>";

-

-        this.rightsArea.appendToEnd(startDivTag

-                + "(c)2003-2007 Copyright <b>sip-communicator.org</b>."

-                + " All rights reserved. Visit "

-                + "<a href=\"http://sip-communicator.org\">"

-                + "http://sip-communicator.org</a>." + endDivTag);

+        this.rightsArea.appendToEnd(Resources.getString("copyright"));

 

         this.rightsArea.setPreferredSize(new Dimension(50, 20));

         this.rightsArea

@@ -89,10 +82,7 @@
         this.rightsArea.addHyperlinkListener(this);

 

         this.licenseArea.setContentType("text/html");

-        this.licenseArea.appendToEnd(startDivTag

-                + "The <b>SIP Communicator</b> is distributed under the"

-                + " terms of the  LGPL " + "(<a href=\"http://www.gnu.org\">"

-                + "http://www.gnu.org</a>)." + endDivTag);

+        this.licenseArea.appendToEnd(Resources.getString("license"));

 

         this.licenseArea.setPreferredSize(new Dimension(50, 20));

         this.licenseArea.setBorder(BorderFactory.createEmptyBorder(10, 180, 0,


Modified: trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java?view=diff&rev=3291&p1=trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java&p2=trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java&r1=3290&r2=3291
==============================================================================
--- trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java	(original)
+++ trunk/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java	2007-12-05 14:38:41+0000
@@ -72,7 +72,9 @@
         this.logoArea.setBorder(BorderFactory.createEmptyBorder(20, 180, 0, 0));
 
         this.rightsArea.setContentType("text/html");
-        this.rightsArea.setText(Resources.getString("copyright"));
+        this.rightsArea.setText(Resources.getString("welcomeMessage",
+            new String[]{   BrandingResources.getString("productName"),
+                            BrandingResources.getString("productWebSite")}));
 
         this.rightsArea.setPreferredSize(new Dimension(50, 10));
         this.rightsArea
@@ -118,10 +120,9 @@
 
         this.mainPanel.setPreferredSize(new Dimension(570, 330));
 
-        this
-                .setLocation(
-                        Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 527 / 2,
-                        Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 305 / 2);
+        this.setLocation(
+            Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 527 / 2,
+            Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 305 / 2);
 
         // Close the splash screen on simple click or Esc.
         this.getGlassPane().addMouseListener(new MouseAdapter()

Modified: trunk/src/net/java/sip/communicator/plugin/branding/resources.properties
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/plugin/branding/resources.properties?view=diff&rev=3291&p1=trunk/src/net/java/sip/communicator/plugin/branding/resources.properties&p2=trunk/src/net/java/sip/communicator/plugin/branding/resources.properties&r1=3290&r2=3291
==============================================================================
--- trunk/src/net/java/sip/communicator/plugin/branding/resources.properties	(original)
+++ trunk/src/net/java/sip/communicator/plugin/branding/resources.properties	2007-12-05 14:38:41+0000
@@ -3,6 +3,13 @@
 loading=Loading
 menuEntry=About
 ok=OK
-welcomeMessage=The SIP Communicator is currently under active development. The version you are running is only experimental and MAY NOT work as expected. Please refer to {0} for more information.
-copyright=<html><font size=3>(c)2003-2007 Copyright <b>sip-communicator.org</b>. All rights reserved. Visit <a href="http://sip-communicator.org">http://sip-communicator.org</a>.</font></html>
-license=<html><font size=3 style=bold>The SIP Communicator is currently under active development. The version you are running is only experimental and MAY NOT work as expected. Please refer to {0} for more information.</font></html>");
\ No newline at end of file
+welcomeMessage=The {0} is currently under active development. \
+               The version you are running is only experimental and MAY NOT \
+               work as expected. Please refer to {1} for more information.
+copyright=<DIV id=\"message\"><font size=3>(c)2003-2007 Copyright \
+          <b>sip-communicator.org</b>. All rights reserved. Visit \
+          <a href="http://sip-communicator.org">http://sip-communicator.org</a>.\
+          </font></DIV>
+license=<DIV id=\"message\">The <b>SIP Communicator</b> is distributed under \
+        the terms of the LGPL (<a href=\"http://www.gnu.org\">\
+        http://www.gnu.org</a>).</DIV>
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: commits-help at sip-communicator.dev.java.net





More information about the commits mailing list