mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixed design-time displaying of the language mappings
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1778 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
27910e584a
commit
b585a239b6
15 changed files with 83 additions and 117 deletions
|
@ -37,13 +37,10 @@ namespace GreenshotImgurPlugin {
|
|||
public class ImgurDestination : AbstractDestination {
|
||||
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ImgurDestination));
|
||||
private static ImgurConfiguration config = IniConfig.GetIniSection<ImgurConfiguration>();
|
||||
private ILanguage lang = Language.GetInstance();
|
||||
private ImgurPlugin plugin = null;
|
||||
private ILanguage coreLanguage;
|
||||
|
||||
public ImgurDestination(ImgurPlugin plugin) {
|
||||
this.plugin = plugin;
|
||||
this.coreLanguage = plugin.CoreLanguage;
|
||||
}
|
||||
|
||||
public override string Designation {
|
||||
|
@ -54,7 +51,7 @@ namespace GreenshotImgurPlugin {
|
|||
|
||||
public override string Description {
|
||||
get {
|
||||
return lang.GetString(LangKey.upload_menu_item);
|
||||
return Language.GetString("imgur", LangKey.upload_menu_item);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,7 +66,7 @@ namespace GreenshotImgurPlugin {
|
|||
using (Image image = surface.GetImageForExport()) {
|
||||
bool uploaded = plugin.Upload(captureDetails, image);
|
||||
if (uploaded) {
|
||||
surface.SendMessageEvent(this, SurfaceMessageTyp.Info, coreLanguage.GetFormattedString("exported_to", Description));
|
||||
surface.SendMessageEvent(this, SurfaceMessageTyp.Info, Language.GetFormattedString("imgur", "exported_to", Description));
|
||||
surface.Modified = false;
|
||||
}
|
||||
return uploaded;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue