org.guifications.plugins: 26096ed90efacda94807fcd33547e54ebabf2ec1
rekkanoryo at guifications.org
rekkanoryo at guifications.org
Wed Nov 21 11:25:04 CST 2007
-----------------------------------------------------------------
Revision: 26096ed90efacda94807fcd33547e54ebabf2ec1
Ancestor: fb66569374d0c47d9be3f86984a6154ead9c2045
Author: rekkanoryo at guifications.org
Date: 2007-11-21T17:22:16
Branch: org.guifications.plugins
Modified files:
findip/findip.c
ChangeLog:
Fix some translation issues before a translator realizes it's broken.
-----------------------------------------------------------------
This revision's diffstat output:
findip.c | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)
-------------- next part --------------
============================================================
--- findip/findip.c fafac1fa6b7148111ff1171cb8e0b7dbd881d293
+++ findip/findip.c 48afe5afb6bfd238de964a3a1b231690419044ed
@@ -17,17 +17,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02111-1301, USA.
*/
-#ifdef HAVE_CONFIG_H
-# include "../pp_config.h"
-#endif
-#define PURPLE_PLUGINS
+/* If you can't figure out what this line is for, DON'T TOUCH IT. */
+#include "../common/pp_internal.h"
-#define PLUGIN_ID "findip"
-#define PLUGIN_NAME "Find IP"
+#define PLUGIN_ID "core-plugin_pack-findip"
#define PLUGIN_STATIC_NAME "findip"
-#define PLUGIN_SUMMARY "Find the IP of a person in the buddylist."
-#define PLUGIN_DESCRIPTION "Find the IP of a person in the buddylist. This doesn't really work."
#define PLUGIN_AUTHOR "someone <someone at somewhere.tld>"
/* System headers */
@@ -40,10 +35,10 @@
#include <server.h>
#include <version.h>
-/* Pack/Local headers */
+/* If you can't figure out what this line is for, DON'T TOUCH IT. */
#include "../common/pp_internal.h"
-#define PREF_ROOT "/plugins/core/" PLUGIN_ID
+#define PREF_ROOT "/plugins/core/plugin_pack/" PLUGIN_STATIC_NAME
#define PREF_NOTIFY PREF_ROOT "/notify"
static gboolean
@@ -138,22 +133,22 @@ static PurplePluginInfo info = {
};
static PurplePluginInfo info = {
- PURPLE_PLUGIN_MAGIC, /* Magic */
- PURPLE_MAJOR_VERSION, /* Purple Major Version */
- PURPLE_MINOR_VERSION, /* Purple Minor Version */
+ PURPLE_PLUGIN_MAGIC, /* Magic */
+ PURPLE_MAJOR_VERSION, /* Purple Major Version */
+ PURPLE_MINOR_VERSION, /* Purple Minor Version */
PURPLE_PLUGIN_STANDARD, /* plugin type */
NULL, /* ui requirement */
0, /* flags */
NULL, /* dependencies */
- PURPLE_PRIORITY_DEFAULT, /* priority */
+ PURPLE_PRIORITY_DEFAULT, /* priority */
PLUGIN_ID, /* plugin id */
NULL, /* name */
- PP_VERSION, /* version */
+ PP_VERSION, /* version */
NULL, /* summary */
NULL, /* description */
PLUGIN_AUTHOR, /* author */
- PP_WEBSITE, /* website */
+ PP_WEBSITE , /* website */
plugin_load, /* load */
plugin_unload, /* unload */
@@ -172,9 +167,9 @@ init_plugin(PurplePlugin *plugin) {
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
- info.name = _(PLUGIN_NAME);
- info.summary = _(PLUGIN_SUMMARY);
- info.description = _(PLUGIN_DESCRIPTION);
+ info.name = _("Find IP");
+ info.summary = _("Find the IP of a person in the buddylist.");
+ info.description = _("Find the IP of a person in the buddylist. This doesn't really work.");
purple_prefs_add_none(PREF_ROOT);
purple_prefs_add_bool(PREF_NOTIFY, TRUE);
More information about the Plugins-commits
mailing list