Adds tooltips for some chat toolbar buttons and adjusts menu item names.

cusax-fix
Yana Stamcheva 14 years ago
parent 2ea86c5bd6
commit b127d5268d

@ -383,6 +383,7 @@ service.gui.REVOKE_MEMBERSHIP=Revoke membership
service.gui.REVOKE_VOICE=Revoke voice
service.gui.ROOT_GROUP=Root group
service.gui.SAVE=&Save
service.gui.SAVE_AS_DEFAULT=Save as default
service.gui.SEARCH=&Search
service.gui.SEARCH_FOR_CHAT_ROOMS_MSG=Click the below button to show all chat rooms existing in the selected server. Then select the one you would like to join and click the join button.
service.gui.SECURITY=Security
@ -1192,7 +1193,7 @@ plugin.securityconfig.masterpassword.PASSWORD_QUALITY_METER=Password quality met
plugin.securityconfig.masterpassword.MP_INPUT=Please enter your master password:\n\n
# otr plugin
plugin.otr.menu.TITLE=OTR
plugin.otr.menu.TITLE=Secure chat
plugin.otr.menu.START_OTR=Start private conversation
plugin.otr.menu.END_OTR=End private conversation
plugin.otr.menu.REFRESH_OTR=Refresh private conversation
@ -1202,6 +1203,7 @@ plugin.otr.menu.CB_AUTO=Automatically initiate private messaging
plugin.otr.menu.CB_ENABLE=Enable private messaging
plugin.otr.menu.CB_REQUIRE=Require private messaging
plugin.otr.menu.CB_RESET=Reset
plugin.otr.menu.OTR_TOOLTIP=Encrypt chats with OTR
plugin.otr.authbuddydialog.HELP_URI=http://www.jitsi.org/index.php/GSOC2009/OTR
plugin.otr.authbuddydialog.AUTHENTICATION_INFO=Authenticating a buddy helps ensure that the person you are talking to is who he or she claims to be. To verify the fingerprint, contact your buddy via some other authenticated channel, such as the telephone or GPG-signed email. Each of you should tell your fingerprint to the other. If everything matches up, you should indicate in the above dialog that you *have* verified the fingerprint.
plugin.otr.authbuddydialog.LOCAL_FINGERPRINT=Fingerprint for you, {0}: {1}
@ -1329,6 +1331,7 @@ plugin.spellcheck.DICT_PROCESS_ERROR=Locale not recognized
plugin.spellcheck.UNINSTALL_DICTIONARY=Uninstall
plugin.spellcheck.DICT_ERROR_DELETE_TITLE=Error uninstalling dictionary
plugin.spellcheck.DICT_ERROR_DELETE=Cannot uninstall dictionary
plugin.spellcheck.SPELLCHECK=Spell check
plugin.contactsourceconfig.CONTACT_SOURCE_TITLE=Contact sources

@ -106,6 +106,9 @@ private SIPCommButton getButton()
button.setEnabled(false);
button.setPreferredSize(new Dimension(25, 25));
button.setToolTipText(OtrActivator.resourceService.getI18NString(
"plugin.otr.menu.OTR_TOOLTIP"));
button.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)

@ -34,13 +34,13 @@
* @author Damian Johnson
* @author Yana Stamcheva
*/
public class LanguageSelectionField
public class LanguageMenuBar
extends SIPCommMenuBar
implements PluginComponent
{
private static final HashMap<SpellChecker, LanguageSelectionField>
private static final HashMap<SpellChecker, LanguageMenuBar>
CLASS_INSTANCES =
new HashMap<SpellChecker, LanguageSelectionField>();
new HashMap<SpellChecker, LanguageMenuBar>();
// parallel maps containing cached instances of country flags
private static final HashMap<Parameters.Locale, ImageIcon>
@ -50,7 +50,7 @@ public class LanguageSelectionField
UNAVAILABLE_FLAGS = new HashMap<Parameters.Locale, ImageIcon>();
private static final Logger logger = Logger
.getLogger(LanguageSelectionField.class);
.getLogger(LanguageMenuBar.class);
private static final ImageIcon BLANK_FLAG_ICON = Resources
.getImage("blankFlag");
@ -77,7 +77,7 @@ public class LanguageSelectionField
* @param checker spell checker field is to be associated with
* @return spell checker locale selection field
*/
public synchronized static LanguageSelectionField makeSelectionField(
public synchronized static LanguageMenuBar makeSelectionField(
SpellChecker checker)
{
// singleton constructor to ensure only one combo box is associated with
@ -86,14 +86,14 @@ public synchronized static LanguageSelectionField makeSelectionField(
return CLASS_INSTANCES.get(checker);
else
{
LanguageSelectionField instance =
new LanguageSelectionField(checker);
LanguageMenuBar instance =
new LanguageMenuBar(checker);
CLASS_INSTANCES.put(checker, instance);
return instance;
}
}
private LanguageSelectionField(SpellChecker checker)
private LanguageMenuBar(SpellChecker checker)
{
this.spellChecker = checker;
@ -101,8 +101,10 @@ private LanguageSelectionField(SpellChecker checker)
setMaximumSize(new Dimension(30, 28));
setMinimumSize(new Dimension(30, 28));
this.menu.setPreferredSize(new Dimension(30, 45));
this.menu.setMaximumSize(new Dimension(30, 45));
menu.setPreferredSize(new Dimension(30, 45));
menu.setMaximumSize(new Dimension(30, 45));
menu.setToolTipText(
Resources.getString("plugin.spellcheck.SPELLCHECK"));
this.add(menu);

@ -50,7 +50,7 @@ public void start(BundleContext context) throws Exception
// adds field to change language
context.registerService(PluginComponent.class.getName(),
LanguageSelectionField.makeSelectionField(this.checker),
LanguageMenuBar.makeSelectionField(this.checker),
containerFilter);
}

Loading…
Cancel
Save