diff options
author | Damian Minkov <damencho@jitsi.org> | 2011-12-21 16:02:50 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2011-12-21 16:02:50 +0000 |
commit | f2db87939569f1873710f0470cee8195efe33154 (patch) | |
tree | d5fd8e4b1b36d33b9f213f0453ed71dfc9e33440 | |
parent | 594e0c525a5417fa7580ec59a27c95bce38d693c (diff) | |
download | jitsi-f2db87939569f1873710f0470cee8195efe33154.zip jitsi-f2db87939569f1873710f0470cee8195efe33154.tar.gz jitsi-f2db87939569f1873710f0470cee8195efe33154.tar.bz2 |
Localizes sparkle menu item - fix duplicating resources.
-rw-r--r-- | resources/languages/resources.properties | 3 | ||||
-rw-r--r-- | src/net/java/sip/communicator/impl/sparkle/SparkleActivator.java | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/resources/languages/resources.properties b/resources/languages/resources.properties index e676f6a..e709fa0 100644 --- a/resources/languages/resources.properties +++ b/resources/languages/resources.properties @@ -645,9 +645,6 @@ impl.ldap.HOMEPHONE_FIELD_EXAMPLE=homePhone impl.ldap.PHONE_PREFIX=Phone prefix
impl.ldap.PHONE_PREFIX_EXAMPLE=Ex.: 00
-# Sparkle Check For updates button title in macosx specific menu
-impl.sparkle.CHECK_FOR_UPDATE_TITLE=Check for Updates...
-
# Address book plugin
plugin.addrbook.ADDRESS_BOOKS=Address book
plugin.addrbook.ENABLE_MACOSX_ADDRESSBOOK=Enable MacOSX Address Book search
diff --git a/src/net/java/sip/communicator/impl/sparkle/SparkleActivator.java b/src/net/java/sip/communicator/impl/sparkle/SparkleActivator.java index 4c206ee..d521fdb 100644 --- a/src/net/java/sip/communicator/impl/sparkle/SparkleActivator.java +++ b/src/net/java/sip/communicator/impl/sparkle/SparkleActivator.java @@ -111,12 +111,18 @@ public class SparkleActivator String downloadLink = getConfigurationService().getString( PROP_UPDATE_LINK); + String title = ResourceManagementServiceUtils.getService(bundleContext) + .getI18NString("plugin.updatechecker.UPDATE_MENU_ENTRY"); + + // add common suffix of this menu title + if(title != null) + title += "..."; + // TODO: better way to get the Sparkle Framework path? initSparkle(System.getProperty("user.dir") + "/../../Frameworks/Sparkle.framework", - updateAtStartup, checkInterval, downloadLink, - ResourceManagementServiceUtils.getService(bundleContext) - .getI18NString("impl.sparkle.CHECK_FOR_UPDATE_TITLE")); + updateAtStartup, checkInterval, downloadLink, title); + if (logger.isInfoEnabled()) logger.info("Sparkle Plugin ...[Started]"); } |