Jump to content

Suggestion: Let plugins find out which language Paint.NET is using


Simon Brown

Recommended Posts

After reading this thread, i've created a separate one to suggest adding an official way to let plugins find out which language Paint.NET is using, so that they can choose to provide translations.

Something like:

Services.GetService<IAppInfoService>().Language

KaHuc.png
Link to comment
Share on other sites

Brilliant Idea Simon, but if this were implemented, wouldn't that require all plugin authors to individually translate their plugins to every language PDN supports?

Space...The Final Frontier. -James Tiberius Kirk; circa 2260s

YLOD VICTIM

Link to comment
Share on other sites

Not necessarily, it wouldn't require plugins to be translated, but if plugin authors want to add support for other languages, they'd be able to detect Paint.NET's language and apply their own translations.

KaHuc.png
Link to comment
Share on other sites

If they were raised multi-lingual, maybe. Hint: They aren't.

See my thread for further discussion.

I'm not sure what you mean. Are you responding to me or Jerry?

KaHuc.png
Link to comment
Share on other sites

Seems like a logical, simple piece of info to give access to.

For now I'd just use CultureInfo.CurrentUICulture. This isn't guaranteed to be correct since it has to be set per-thread, so pretty much only the UI thread will have the "correct" value. But, Effects are (currently) instantiated on the UI thread for this so you can at least access it in your constructor.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...