can you add support for localization?
Hmmm, great question. My first suggestion would be to just use the following plugin:
WPML Widgets (https://ww.wp.xz.cn/plugins/wpml-widgets/)
Would that work for what you’re trying to do?
native support for translation will be better 🙂
Hi,
Sorry if I sneak into your discussion. I’d say that the plugin is almost internationalized; by the way, I really like it. A really handy plugin!
With Poedit I made a .pot file and a German language translation.
To make it work I followed the instructions from the WordPress Codex and from Clivern: I put the code to link the plugins text strings with the translation(s) at the end of the ‘dashboard-notes.php’ file. It mostly works apart from some text strings that are not translated (I think because for them no text domain is declared).
I’ve zipped what I did and you can download it here.
Appreciate all the suggestions/feedback. So what exactly would this look like in terms of user interface? How do you envision the user being able to specify a language for each widget?
Furthermore, are you talking about localizing the contents of the widget <i>fields</i>, or just the text that outputs by default on the widget in the admin?
Would love to add this feature if it’s something that people are wanting, however I’d like to better understand what exactly it would entail.
Furthermore, if you’re needing this functionality for your widgets, you must be needing it for your posts and pages as well. Don’t you already have something like WPML installed if you’re running a multilingual site? What good would it be to have localizable (admin-only) widgets if you don’t also have some solution for your site content and front-end widgets?
English text like “Enter one location fragment per line. Use * character as a wildcard. Example: category/peace/* to target all posts in category peace.”
I’m not sure I understand, how does “category/peace/*” reliably indicate any sort of localization/internationalization pattern? That category could easily exist across languages and is not a reliable determinant of locale. Am I misunderstanding?
I’m sorry, my English is bad.
The plugin works fine with Russian wordpress.
I say about strings like ‘Enter one location fragment per line.’ and others. I want to translate these English strings to Russian.
Hi Flector, I think I understand now. I just realized the /languages folder with the .po file for translation did not get uploaded 🙁
I’m planning on doing some work on this plugin to improve functionality, and when the new update is available I’ll make sure the .po file gets included. Sorry about this, and please stay tuned for the next update.
All the best,
Mickey
Mickey, does Dashboard notes work with WP Multisites? I tried but couldn’t see it. Please let me know.
Gary
Hi Gary,
In the future, please start a new thread for unrelated topics.
I’m not sure how Dashboard notes behaves for multisite, that’s a great question. You say you tried but didn’t see it. Do you mean that it’s not working for you at ALL? Or that you don’t see notes created by the Super Admin on the various sites?
Mickey,
When I tried it, I wasn’t seeing the notes created as the Super Admin .. within the various child sites.
Gary
Hi all,
Just uploaded version 1.0.3, which includes the missing .pot file. Thanks for all the feedback! I did add a few translatable strings for the new admin user role settings, so @patloq, I’m wondering if you might be able to update you German translation so that I can include it as well (would be happy to give you props/link in the readme). Thanks everyone!
– Mickey