~vlad-lesin/percona-playback/bug1021602

« back to all changes in this revision

Viewing changes to percona_playback/plugin.cc

  • Committer: Stewart Smith
  • Date: 2012-07-04 09:10:07 UTC
  • Revision ID: stewart@flamingspork.com-20120704091007-knlqa5eptm9ow3tx
gettext for plugin loader (plugin.cc)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <percona_playback/plugin.h>
26
26
#include <percona_playback/plugin_load_list.h>
27
27
#include <percona_playback/tokenize.h>
 
28
#include <percona_playback/gettext.h>
28
29
 
29
30
/* plugin definition symbols */
30
31
typedef percona_playback::plugin::definition plugin_builtin_list[];
44
45
    if (dl_handle == NULL)
45
46
    {
46
47
      const char *errmsg= dlerror();
47
 
      fprintf(stderr,"Error loading plugin: %s\n\n", errmsg);
 
48
      fprintf(stderr,_("Error loading plugin: %s\n\n"), errmsg);
48
49
      abort();
49
50
      return;
50
51
    }
57
58
    if (sym == NULL)
58
59
    {
59
60
      const char *errmsg= dlerror();
60
 
      fprintf(stderr,"Error loading plugin: %s\n\n", errmsg);
 
61
      fprintf(stderr,_("Error loading plugin: %s\n\n"), errmsg);
61
62
      abort();
62
63
      return;
63
64
    }