<p>In <a href="https://github.com/geany/geany-plugins/pull/324#discussion_r49931725">lineoperations/src/lineoperations.c</a>:</p>
<pre style='color:#555'>> +
> +
> +void
> +lo_cleanup(void)
> +{
> +  if(main_menu_item) gtk_widget_destroy(main_menu_item);
> +}
> +
> +
> +G_MODULE_EXPORT
> +void geany_load_module(GeanyPlugin *plugin)
> +{
> +    plugin->info->name        = _("Line Operations");
> +    plugin->info->description = _("Line Operations provides a handful of functions that can be applied to a document such as, removing duplicate lines, removing empty lines, removing lines with only whitespace, and sorting lines.");
> +    plugin->info->version     = "0.1";
> +    plugin->info->author      = _("Sylvan Mostert <smostert.dev@gmail.com>");
</pre>
<p>To allow those strings actually be displayed translated, you should call <code>main_locale_init()</code> before filling the plugin info (well, before any call to <code>_()</code>).  See <a href="http://www.geany.org/manual/reference/howto.html#translatable_plugin_information">http://www.geany.org/manual/reference/howto.html#translatable_plugin_information</a></p>

<p>Note: <code>main_loacle_init()</code> only has to be called once per plugin run, so calling it here will be enough for the whole plugin, no need to call it again in <code>init()</code> or anything.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/324/files#r49931725">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyp_NeSz-5esJYgxaQkBtrJYl6Iyks5paj1GgaJpZM4HBhj7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/324/files#r49931725"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>