mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Changes for 1.1, added Photobucket as project to the solution. Fixed some language files (the ietf in the file IS important)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2276 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
5e6b13e509
commit
22c04fbb4a
18 changed files with 69 additions and 42 deletions
|
@ -29,7 +29,7 @@
|
|||
Benutze der Seite-URL statt Bild-URL im Zwischenablage
|
||||
</resource>
|
||||
<resource name="configure">
|
||||
Einstellungen
|
||||
Photobucket Einstellungen
|
||||
</resource>
|
||||
</resources>
|
||||
</language>
|
|
@ -29,7 +29,7 @@
|
|||
Use page link instead of image link on clipboard
|
||||
</resource>
|
||||
<resource name="configure">
|
||||
Configure
|
||||
</resource>
|
||||
Configure Photobucket
|
||||
</resource>
|
||||
</resources>
|
||||
</language>
|
|
@ -23,7 +23,7 @@
|
|||
Téléversement vers Photobucket, veuillez patienter...
|
||||
</resource>
|
||||
<resource name="configure">
|
||||
Configurer
|
||||
</resource>
|
||||
Configurer Photobucket
|
||||
</resource>
|
||||
</resources>
|
||||
</language>
|
|
@ -23,7 +23,7 @@
|
|||
Kopieer de pagina link in plaats van de beeld link in het klembord
|
||||
</resource>
|
||||
<resource name="configure">
|
||||
Instellingen
|
||||
</resource>
|
||||
Photobucket Instellingen
|
||||
</resource>
|
||||
</resources>
|
||||
</language>
|
|
@ -39,6 +39,7 @@ namespace GreenshotPhotobucketPlugin {
|
|||
public static PluginAttribute Attributes;
|
||||
private IGreenshotHost host;
|
||||
private ComponentResourceManager resources;
|
||||
private ToolStripMenuItem itemPlugInConfig;
|
||||
|
||||
public PhotobucketPlugin() {
|
||||
}
|
||||
|
@ -66,7 +67,7 @@ namespace GreenshotPhotobucketPlugin {
|
|||
config = IniConfig.GetIniSection<PhotobucketConfiguration>();
|
||||
resources = new ComponentResourceManager(typeof(PhotobucketPlugin));
|
||||
|
||||
ToolStripMenuItem itemPlugInConfig = new ToolStripMenuItem("Photobucket " + Language.GetString("photobucket", LangKey.configure));
|
||||
itemPlugInConfig = new ToolStripMenuItem(Language.GetString("photobucket", LangKey.configure));
|
||||
itemPlugInConfig.Tag = host;
|
||||
itemPlugInConfig.Click += delegate {
|
||||
config.ShowConfigDialog();
|
||||
|
@ -74,12 +75,19 @@ namespace GreenshotPhotobucketPlugin {
|
|||
itemPlugInConfig.Image = (Image)resources.GetObject("Photobucket");
|
||||
|
||||
PluginUtils.AddToContextMenu(host, itemPlugInConfig);
|
||||
|
||||
Language.LanguageChanged += new LanguageChangedHandler(OnLanguageChanged);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public void OnLanguageChanged() {
|
||||
if (itemPlugInConfig != null) {
|
||||
itemPlugInConfig.Text = Language.GetString("photobucket", LangKey.configure);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Shutdown() {
|
||||
LOG.Debug("Photobucket Plugin shutdown.");
|
||||
Language.LanguageChanged -= new LanguageChangedHandler(OnLanguageChanged);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue