Commit 79be4895 authored by Tomas Ogren's avatar Tomas Ogren Committed by Tomas Ögren
Browse files

Misc l10n fixes

1999-06-06  Tomas Ogren  <stric@ing.umu.se>

* app/{color_notebook.c,color_select.c,lc_dialog.c,temp_buf.c,tool_options.c,tools.c}:
  Misc l10n fixes
parent 5a4ec719
1999-06-06 Tomas Ogren <stric@ing.umu.se>
* app/{color_notebook.c,color_select.c,lc_dialog.c,temp_buf.c,tool_options.c,tools.c}:
Misc l10n fixes
Sun Jun 6 11:16:12 PDT 1999 Manish Singh <yosh@gimp.org>
* Makefile.am
......
......@@ -43,6 +43,7 @@
#include "paint_funcs.h"
#include "temp_buf.h"
#include "libgimp/gimpintl.h"
static unsigned char * temp_buf_allocate (unsigned int);
static void temp_buf_to_color (TempBuf *, TempBuf *);
......@@ -218,7 +219,7 @@ temp_buf_copy (src, dest)
else if (src->bytes == 2) /* grayscale */
temp_buf_to_color (src, new);
else
g_message ("Cannot convert from indexed color.");
g_message (_("Cannot convert from indexed color."));
return new;
}
}
......@@ -471,7 +472,7 @@ temp_buf_swap (buf)
{
if (stat_buf.st_mode & S_IFDIR)
{
g_message ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)",
g_message (_("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)"),
filename);
g_free (filename);
return;
......@@ -488,7 +489,7 @@ temp_buf_swap (buf)
{
(void) unlink (filename);
perror ("Write error on temp buf");
g_message ("Cannot write \"%s\"", filename);
g_message (_("Cannot write \"%s\""), filename);
g_free (filename);
return;
}
......@@ -497,7 +498,7 @@ temp_buf_swap (buf)
{
(void) unlink (filename);
perror ("Error in temp buf caching");
g_message ("Cannot write \"%s\"", filename);
g_message (_("Cannot write \"%s\""), filename);
g_free (filename);
return;
}
......@@ -554,7 +555,7 @@ temp_buf_unswap (buf)
unlink (buf->filename);
}
if (!succ)
g_message ("Error in temp buf caching: information swapped to disk was lost!");
g_message (_("Error in temp buf caching: information swapped to disk was lost!"));
g_free (buf->filename); /* free filename */
buf->filename = NULL;
......
......@@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "brush_select.h"
#include "gimprc.h"
#include "paint_funcs.h"
......@@ -159,7 +160,7 @@ tool_options_radio_buttons_new (gchar* label,
GSList *group = NULL;
gint i;
frame = gtk_frame_new (label);
frame = gtk_frame_new (_(label));
g_return_val_if_fail (toggle_val != NULL, frame);
......@@ -194,7 +195,7 @@ tool_options_init (ToolOptions *options,
ToolOptionsResetFunc reset_func)
{
options->main_vbox = gtk_vbox_new (FALSE, 2);
options->title = title;
options->title = _(title);
options->reset_func = reset_func;
}
......@@ -232,20 +233,20 @@ selection_options_init (SelectionOptions *options,
/* initialize the tool options structure */
tool_options_init ((ToolOptions *) options,
((tool_type == RECT_SELECT) ?
_("Rectangular Select Options") :
N_("Rectangular Select Options") :
((tool_type == ELLIPSE_SELECT) ?
_("Elliptical Selection Options") :
N_("Elliptical Selection Options") :
((tool_type == FREE_SELECT) ?
_("Free-hand Selection Options") :
N_("Free-hand Selection Options") :
((tool_type == FUZZY_SELECT) ?
_("Fuzzy Selection Options") :
N_("Fuzzy Selection Options") :
((tool_type == BEZIER_SELECT) ?
_("Bezier Selection Options") :
N_("Bezier Selection Options") :
((tool_type == ISCISSORS) ?
_("Intelligent Scissors Options") :
N_("Intelligent Scissors Options") :
((tool_type == BY_COLOR_SELECT) ?
_("By-Color Select Options") :
_("ERROR: Unknown Selection Type")))))))),
N_("By-Color Select Options") :
N_("ERROR: Unknown Selection Type")))))))),
reset_func);
/* the main vbox */
......@@ -552,24 +553,24 @@ paint_options_init (PaintOptions *options,
/* initialize the tool options structure */
tool_options_init ((ToolOptions *) options,
((tool_type == BUCKET_FILL) ?
_("Bucket Fill Options") :
N_("Bucket Fill Options") :
((tool_type == BLEND) ?
_("Blend Options") :
N_("Blend Options") :
((tool_type == PENCIL) ?
_("Pencil Options") :
N_("Pencil Options") :
((tool_type == PAINTBRUSH) ?
_("Paintbrush Options") :
N_("Paintbrush Options") :
((tool_type == ERASER) ?
_("Erazer Options") :
N_("Erazer Options") :
((tool_type == AIRBRUSH) ?
_("Airbrush Options") :
N_("Airbrush Options") :
((tool_type == CLONE) ?
_("Clone Tool Options") :
N_("Clone Tool Options") :
((tool_type == CONVOLVE) ?
_("Convolver Options") :
N_("Convolver Options") :
((tool_type == INK) ?
_("Ink Options") :
_("ERROR: Unknown Paint Type")))))))))),
N_("Ink Options") :
N_("ERROR: Unknown Paint Type")))))))))),
reset_func);
/* initialize the paint options structure */
......
......@@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "appenv.h"
#include "actionarea.h"
#include "buildmenu.h"
......
......@@ -43,6 +43,7 @@
#include "paint_funcs.h"
#include "temp_buf.h"
#include "libgimp/gimpintl.h"
static unsigned char * temp_buf_allocate (unsigned int);
static void temp_buf_to_color (TempBuf *, TempBuf *);
......@@ -218,7 +219,7 @@ temp_buf_copy (src, dest)
else if (src->bytes == 2) /* grayscale */
temp_buf_to_color (src, new);
else
g_message ("Cannot convert from indexed color.");
g_message (_("Cannot convert from indexed color."));
return new;
}
}
......@@ -471,7 +472,7 @@ temp_buf_swap (buf)
{
if (stat_buf.st_mode & S_IFDIR)
{
g_message ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)",
g_message (_("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)"),
filename);
g_free (filename);
return;
......@@ -488,7 +489,7 @@ temp_buf_swap (buf)
{
(void) unlink (filename);
perror ("Write error on temp buf");
g_message ("Cannot write \"%s\"", filename);
g_message (_("Cannot write \"%s\""), filename);
g_free (filename);
return;
}
......@@ -497,7 +498,7 @@ temp_buf_swap (buf)
{
(void) unlink (filename);
perror ("Error in temp buf caching");
g_message ("Cannot write \"%s\"", filename);
g_message (_("Cannot write \"%s\""), filename);
g_free (filename);
return;
}
......@@ -554,7 +555,7 @@ temp_buf_unswap (buf)
unlink (buf->filename);
}
if (!succ)
g_message ("Error in temp buf caching: information swapped to disk was lost!");
g_message (_("Error in temp buf caching: information swapped to disk was lost!"));
g_free (buf->filename); /* free filename */
buf->filename = NULL;
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "brush_select.h"
#include "gimprc.h"
#include "paint_funcs.h"
......@@ -159,7 +160,7 @@ tool_options_radio_buttons_new (gchar* label,
GSList *group = NULL;
gint i;
frame = gtk_frame_new (label);
frame = gtk_frame_new (_(label));
g_return_val_if_fail (toggle_val != NULL, frame);
......@@ -194,7 +195,7 @@ tool_options_init (ToolOptions *options,
ToolOptionsResetFunc reset_func)
{
options->main_vbox = gtk_vbox_new (FALSE, 2);
options->title = title;
options->title = _(title);
options->reset_func = reset_func;
}
......@@ -232,20 +233,20 @@ selection_options_init (SelectionOptions *options,
/* initialize the tool options structure */
tool_options_init ((ToolOptions *) options,
((tool_type == RECT_SELECT) ?
_("Rectangular Select Options") :
N_("Rectangular Select Options") :
((tool_type == ELLIPSE_SELECT) ?
_("Elliptical Selection Options") :
N_("Elliptical Selection Options") :
((tool_type == FREE_SELECT) ?
_("Free-hand Selection Options") :
N_("Free-hand Selection Options") :
((tool_type == FUZZY_SELECT) ?
_("Fuzzy Selection Options") :
N_("Fuzzy Selection Options") :
((tool_type == BEZIER_SELECT) ?
_("Bezier Selection Options") :
N_("Bezier Selection Options") :
((tool_type == ISCISSORS) ?
_("Intelligent Scissors Options") :
N_("Intelligent Scissors Options") :
((tool_type == BY_COLOR_SELECT) ?
_("By-Color Select Options") :
_("ERROR: Unknown Selection Type")))))))),
N_("By-Color Select Options") :
N_("ERROR: Unknown Selection Type")))))))),
reset_func);
/* the main vbox */
......@@ -552,24 +553,24 @@ paint_options_init (PaintOptions *options,
/* initialize the tool options structure */
tool_options_init ((ToolOptions *) options,
((tool_type == BUCKET_FILL) ?
_("Bucket Fill Options") :
N_("Bucket Fill Options") :
((tool_type == BLEND) ?
_("Blend Options") :
N_("Blend Options") :
((tool_type == PENCIL) ?
_("Pencil Options") :
N_("Pencil Options") :
((tool_type == PAINTBRUSH) ?
_("Paintbrush Options") :
N_("Paintbrush Options") :
((tool_type == ERASER) ?
_("Erazer Options") :
N_("Erazer Options") :
((tool_type == AIRBRUSH) ?
_("Airbrush Options") :
N_("Airbrush Options") :
((tool_type == CLONE) ?
_("Clone Tool Options") :
N_("Clone Tool Options") :
((tool_type == CONVOLVE) ?
_("Convolver Options") :
N_("Convolver Options") :
((tool_type == INK) ?
_("Ink Options") :
_("ERROR: Unknown Paint Type")))))))))),
N_("Ink Options") :
N_("ERROR: Unknown Paint Type")))))))))),
reset_func);
/* initialize the paint options structure */
......
......@@ -636,7 +636,7 @@ tools_select (ToolType type)
if (tool_info[(int) active_tool->type].tool_options->title)
gtk_label_set_text (GTK_LABEL (options_label),
tool_info[(int) active_tool->type].tool_options->title);
_(tool_info[(int) active_tool->type].tool_options->title));
if (tool_info[(int) active_tool->type].tool_options->reset_func)
gtk_widget_set_sensitive (options_reset_button, TRUE);
......@@ -685,7 +685,7 @@ tools_initialize (ToolType type, GDisplay *gdisp)
if (tool_info[(int) active_tool->type].tool_options->title)
gtk_label_set_text (GTK_LABEL (options_label),
tool_info[(int) active_tool->type].tool_options->title);
_(tool_info[(int) active_tool->type].tool_options->title));
if (tool_info[(int) active_tool->type].tool_options->reset_func)
gtk_widget_set_sensitive (options_reset_button, TRUE);
......@@ -822,7 +822,7 @@ tools_register (ToolType tool_type,
gtk_widget_show (tool_options->main_vbox);
}
gtk_label_set_text (GTK_LABEL (options_label), tool_options->title);
gtk_label_set_text (GTK_LABEL (options_label), _(tool_options->title));
}
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "brush_select.h"
#include "gimprc.h"
#include "paint_funcs.h"
......@@ -159,7 +160,7 @@ tool_options_radio_buttons_new (gchar* label,
GSList *group = NULL;
gint i;
frame = gtk_frame_new (label);
frame = gtk_frame_new (_(label));
g_return_val_if_fail (toggle_val != NULL, frame);
......@@ -194,7 +195,7 @@ tool_options_init (ToolOptions *options,
ToolOptionsResetFunc reset_func)
{
options->main_vbox = gtk_vbox_new (FALSE, 2);
options->title = title;
options->title = _(title);
options->reset_func = reset_func;
}
......@@ -232,20 +233,20 @@ selection_options_init (SelectionOptions *options,
/* initialize the tool options structure */
tool_options_init ((ToolOptions *) options,
((tool_type == RECT_SELECT) ?
_("Rectangular Select Options") :
N_("Rectangular Select Options") :
((tool_type == ELLIPSE_SELECT) ?
_("Elliptical Selection Options") :
N_("Elliptical Selection Options") :
((tool_type == FREE_SELECT) ?
_("Free-hand Selection Options") :
N_("Free-hand Selection Options") :
((tool_type == FUZZY_SELECT) ?
_("Fuzzy Selection Options") :
N_("Fuzzy Selection Options") :
((tool_type == BEZIER_SELECT) ?
_("Bezier Selection Options") :
N_("Bezier Selection Options") :
((tool_type == ISCISSORS) ?
_("Intelligent Scissors Options") :
N_("Intelligent Scissors Options") :
((tool_type == BY_COLOR_SELECT) ?
_("By-Color Select Options") :
_("ERROR: Unknown Selection Type")))))))),
N_("By-Color Select Options") :
N_("ERROR: Unknown Selection Type")))))))),
reset_func);
/* the main vbox */
......@@ -552,24 +553,24 @@ paint_options_init (PaintOptions *options,
/* initialize the tool options structure */
tool_options_init ((ToolOptions *) options,
((tool_type == BUCKET_FILL) ?
_("Bucket Fill Options") :
N_("Bucket Fill Options") :
((tool_type == BLEND) ?
_("Blend Options") :
N_("Blend Options") :
((tool_type == PENCIL) ?
_("Pencil Options") :
N_("Pencil Options") :
((tool_type == PAINTBRUSH) ?
_("Paintbrush Options") :
N_("Paintbrush Options") :
((tool_type == ERASER) ?
_("Erazer Options") :
N_("Erazer Options") :
((tool_type == AIRBRUSH) ?
_("Airbrush Options") :
N_("Airbrush Options") :
((tool_type == CLONE) ?
_("Clone Tool Options") :
N_("Clone Tool Options") :
((tool_type == CONVOLVE) ?
_("Convolver Options") :
N_("Convolver Options") :
((tool_type == INK) ?
_("Ink Options") :
_("ERROR: Unknown Paint Type")))))))))),
N_("Ink Options") :
N_("ERROR: Unknown Paint Type")))))))))),
reset_func);
/* initialize the paint options structure */
......
......@@ -636,7 +636,7 @@ tools_select (ToolType type)
if (tool_info[(int) active_tool->type].tool_options->title)
gtk_label_set_text (GTK_LABEL (options_label),
tool_info[(int) active_tool->type].tool_options->title);
_(tool_info[(int) active_tool->type].tool_options->title));
if (tool_info[(int) active_tool->type].tool_options->reset_func)
gtk_widget_set_sensitive (options_reset_button, TRUE);
......@@ -685,7 +685,7 @@ tools_initialize (ToolType type, GDisplay *gdisp)
if (tool_info[(int) active_tool->type].tool_options->title)
gtk_label_set_text (GTK_LABEL (options_label),
tool_info[(int) active_tool->type].tool_options->title);
_(tool_info[(int) active_tool->type].tool_options->title));
if (tool_info[(int) active_tool->type].tool_options->reset_func)
gtk_widget_set_sensitive (options_reset_button, TRUE);
......@@ -822,7 +822,7 @@ tools_register (ToolType tool_type,
gtk_widget_show (tool_options->main_vbox);
}
gtk_label_set_text (GTK_LABEL (options_label), tool_options->title);
gtk_label_set_text (GTK_LABEL (options_label), _(tool_options->title));
}
......
......@@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment