summaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
authorJens Finke <jens@triq.net>2003-10-11 13:47:27 +0000
committerJens Finke <jens@src.gnome.org>2003-10-11 13:47:27 +0000
commit04a84314d7a8db254f05d9a17b0801c1a10c3c6d (patch)
tree50ba11c52bb3795dd2f8b225e15cccb0a6c8d4ea /viewer
parent3df062f28f85a43227d16ec19bc8418da9a99ac0 (diff)
downloadeog-04a84314d7a8db254f05d9a17b0801c1a10c3c6d.tar.gz
Mark the whole status string for translation not only 'pixel'.
2003-10-11 Jens Finke <jens@triq.net> * viewer/eog-collection-view.c (eog_image_view_get_prop): Mark the whole status string for translation not only 'pixel'.
Diffstat (limited to 'viewer')
-rw-r--r--viewer/eog-image-view.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/viewer/eog-image-view.c b/viewer/eog-image-view.c
index 50386584..e8144544 100644
--- a/viewer/eog-image-view.c
+++ b/viewer/eog-image-view.c
@@ -508,20 +508,17 @@ eog_image_view_get_prop (BonoboPropertyBag *bag,
zoom = floor (100 * eog_scroll_view_get_zoom (EOG_SCROLL_VIEW (priv->widget)));
- if (priv->image == NULL) {
- text = g_strdup (" ");
+ if (priv->image != NULL) {
+ eog_image_get_size (priv->image, &width, &height);
+ }
+
+ if ((width > 0) && (height > 0)) {
+ /* [image width] x [image height] pixel [zoom in percent] */
+ text = g_strdup_printf (_("%i x %i pixel %i%%"),
+ width, height, zoom);
}
else {
- eog_image_get_size (priv->image, &width, &height);
-
- if ((width > 0) && (height > 0)) {
- text = g_strdup_printf ("%i x %i %s %i%%",
- width, height,
- _("pixel"), zoom);
- }
- else {
- text = g_strdup_printf ("%i%%", zoom);
- }
+ text = g_strdup (" ");
}
BONOBO_ARG_SET_STRING (arg, text);