~midori/midori/fix-1094858

« back to all changes in this revision

Viewing changes to katze/katze-throbber.c

  • Committer: Christian Dywan
  • Date: 2008-03-22 02:38:23 UTC
  • Revision ID: git-v1:be89221aea13aa092f64d2133fd5bed5c23f4972
Implement localization via Gettext.

Based on the implementation of localization via Gettext
contributed by Enrico Tröger, a few adjustments were made
to allow Midori to be properly localized. Initially
German is fully supported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include "katze-throbber.h"
13
13
 
14
14
#include <gtk/gtk.h>
 
15
#include <glib/gi18n.h>
15
16
 
16
17
G_DEFINE_TYPE (KatzeThrobber, katze_throbber, GTK_TYPE_MISC)
17
18
 
131
132
                                     g_param_spec_int (
132
133
                                     "icon-size",
133
134
                                     "Icon size",
134
 
                                     "Symbolic size to use for the animation",
 
135
                                     _("Symbolic size to use for the animation"),
135
136
                                     0, G_MAXINT, GTK_ICON_SIZE_MENU,
136
137
                                     flags));
137
138
 
140
141
                                     g_param_spec_string (
141
142
                                     "icon-name",
142
143
                                     "Icon Name",
143
 
                                     "The name of an icon containing animation frames",
 
144
                                     _("The name of an icon containing animation frames"),
144
145
                                     "process-working",
145
146
                                     flags));
146
147
 
149
150
                                     g_param_spec_object (
150
151
                                     "pixbuf",
151
152
                                     "Pixbuf",
152
 
                                     "A GdkPixbuf containing animation frames",
 
153
                                     _("A GdkPixbuf containing animation frames"),
153
154
                                     GDK_TYPE_PIXBUF,
154
155
                                     flags));
155
156
 
158
159
                                     g_param_spec_boolean (
159
160
                                     "animated",
160
161
                                     "Animated",
161
 
                                     "Whether the throbber should be animated",
 
162
                                     _("Whether the throbber should be animated"),
162
163
                                     FALSE,
163
164
                                     flags));
164
165
 
167
168
                                     g_param_spec_string (
168
169
                                     "static-icon-name",
169
170
                                     "Static Icon Name",
170
 
                                     "The name of an icon to be used as the static image",
 
171
                                     _("The name of an icon to be used as the static image"),
171
172
                                     NULL,
172
173
                                     flags));
173
174
 
176
177
                                     g_param_spec_object (
177
178
                                     "static-pixbuf",
178
179
                                     "Static Pixbuf",
179
 
                                     "A GdkPixbuf to be used as the static image",
 
180
                                     _("A GdkPixbuf to be used as the static image"),
180
181
                                     GDK_TYPE_PIXBUF,
181
182
                                     flags));
182
183
 
185
186
                                     g_param_spec_string (
186
187
                                     "static-stock-id",
187
188
                                     "Static Stock ID",
188
 
                                     "The stock ID of an icon to be used as the static image",
 
189
                                     _("The stock ID of an icon to be used as the static image"),
189
190
                                     NULL,
190
191
                                     flags));
191
192