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:
RKrom 2012-11-13 09:01:05 +00:00
commit 22c04fbb4a
18 changed files with 69 additions and 42 deletions

View file

@ -29,7 +29,7 @@
Benutze der Seite-URL statt Bild-URL im Zwischenablage
</resource>
<resource name="configure">
Einstellungen
Photobucket Einstellungen
</resource>
</resources>
</language>

View file

@ -29,7 +29,7 @@
Use page link instead of image link on clipboard
</resource>
<resource name="configure">
Configure
</resource>
Configure Photobucket
</resource>
</resources>
</language>

View file

@ -23,7 +23,7 @@
Téléversement vers Photobucket, veuillez patienter...
</resource>
<resource name="configure">
Configurer
</resource>
Configurer Photobucket
</resource>
</resources>
</language>

View file

@ -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>

View file

@ -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>