Skip to content

Commit

Permalink
Merge pull request #7 from prokoudine/master
Browse files Browse the repository at this point in the history
Fix for #6 by Alexandre Prokoudine.
  • Loading branch information
auris committed Jul 1, 2012
2 parents d703d9e + 8afc68e commit 242dcb2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 45 deletions.
81 changes: 45 additions & 36 deletions po/ru.po
Expand Up @@ -2,47 +2,53 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# Александр Прокудин <alexandre.prokoudine@gmail.com>, 2012.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Save for Web plug-in 0.8\n" "Project-Id-Version: Save for Web plug-in 0.8\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-11-12 09:41+0300\n" "POT-Creation-Date: 2012-07-01 12:17+0400\n"
"PO-Revision-Date: 2007-11-12 09:48+0300\n" "PO-Revision-Date: 2012-07-01 12:20+0400\n"
"Last-Translator: Alexandre Prokoudine <alexandre.prokoudine@gmail.com>\n" "Last-Translator: Александр Прокудин <alexandre.prokoudine@gmail.com>\n"
"Language-Team: GNOME Cyrillic <gnome-cyr@lists.gnome.org>\n" "Language-Team: русский <>\n"
"Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\\n\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); 10<=4 && (n%100<10 || n"
"%100>=20) ? 1 : 2);\n"
"X-Poedit-Language: Russian\n" "X-Poedit-Language: Russian\n"
"X-Poedit-Country: RUSSIAN FEDERATION\n" "X-Poedit-Country: RUSSIAN FEDERATION\n"


#: ../src/webx_crop_widget.c:89 #: ../src/webx_crop_widget.c:87
msgid "Crop" msgid "Crop"
msgstr "Кадрирование" msgstr "Кадрирование"


#: ../src/webx_crop_widget.c:97 #: ../src/webx_crop_widget.c:95
msgid "X Offset:" msgid "X Offset:"
msgstr "Смещение по X:" msgstr "Смещение по X:"


#: ../src/webx_crop_widget.c:112 #: ../src/webx_crop_widget.c:110
msgid "Y Offset:" msgid "Y Offset:"
msgstr "Смещение по Y:" msgstr "Смещение по Y:"


#: ../src/webx_crop_widget.c:127 #: ../src/webx_crop_widget.c:125 ../src/webx_resize_widget.c:95
#: ../src/webx_resize_widget.c:95
msgid "Width:" msgid "Width:"
msgstr "Ширина:" msgstr "Ширина:"


#: ../src/webx_crop_widget.c:142 #: ../src/webx_crop_widget.c:140 ../src/webx_resize_widget.c:109
#: ../src/webx_resize_widget.c:109
msgid "Height:" msgid "Height:"
msgstr "Высота:" msgstr "Высота:"


#: ../src/webx_dialog.c:216 #: ../src/webx_dialog.c:216
msgid "Save for Web" msgid "Export for Web"
msgstr "Сохранить для веба" msgstr "Экспортировать для веба"

#: ../src/webx_dialog.c:225 ../src/webx_dialog.c:485
msgid "_Export"
msgstr "_Экспортировать"


#: ../src/webx_dialog.c:334 #: ../src/webx_dialog.c:334
msgid "JPEG" msgid "JPEG"
Expand All @@ -64,27 +70,24 @@ msgstr "PNG-24"
msgid "GIF" msgid "GIF"
msgstr "GIF" msgstr "GIF"


#: ../src/webx_dialog.c:483 #: ../src/webx_dialog.c:480
msgid "Save Image" msgid "Export Image"
msgstr "Сохранить изображение" msgstr "Экспортировать изображение"


#: ../src/webx_dialog.c:512 #: ../src/webx_dialog.c:509
msgid "Failed to save the file!" msgid "Failed to export the file!"
msgstr "Не удалось сохранить файл!" msgstr "Не удалось экспортировать файл!"


#: ../src/webx_dialog.c:582 #: ../src/webx_dialog.c:579 ../src/webx_preview.c:430
#: ../src/webx_preview.c:430
msgid "File size: unknown" msgid "File size: unknown"
msgstr "Размер файла: неизвестен" msgstr "Размер файла: неизвестен"


#: ../src/webx_dialog.c:613 #: ../src/webx_dialog.c:610 ../src/webx_preview.c:418
#: ../src/webx_preview.c:418
#, c-format #, c-format
msgid "File size: %02.01f kB" msgid "File size: %02.01f kB"
msgstr "Размер файла: %02.01f Кбайт" msgstr "Размер файла: %02.01f Кбайт"


#: ../src/webx_gif_target.c:72 #: ../src/webx_gif_target.c:72 ../src/webx_png24_target.c:86
#: ../src/webx_png24_target.c:86
#: ../src/webx_png8_target.c:87 #: ../src/webx_png8_target.c:87
msgid "_Interlace" msgid "_Interlace"
msgstr "_Чересстрочность" msgstr "_Чересстрочность"
Expand Down Expand Up @@ -118,7 +121,7 @@ msgstr "Убрать неиспользуемые цвета"


#: ../src/webx_indexed_target.c:174 #: ../src/webx_indexed_target.c:174
msgid "Dither:" msgid "Dither:"
msgstr "Сглаживание переходов:" msgstr "Подмешивание шума:"


#: ../src/webx_indexed_target.c:179 #: ../src/webx_indexed_target.c:179
msgid "None" msgid "None"
Expand Down Expand Up @@ -165,19 +168,18 @@ msgid "Strip _EXIF"
msgstr "_Убрать данные Exif" msgstr "_Убрать данные Exif"


#: ../src/webx_main.c:70 #: ../src/webx_main.c:70
msgid "Optimize & save image for web" msgid "Optimize & export image for web"
msgstr "Оптимизировать и сохранить изображение для веба" msgstr "Оптимизировать и экспортировать изображение для веба"


#: ../src/webx_main.c:75 #: ../src/webx_main.c:75
msgid "Save for Web..." msgid "Export for We_b..."
msgstr "Сохранить для веба..." msgstr "Экспортировать для _веба..."


#: ../src/webx_main.c:134 #: ../src/webx_main.c:134
msgid "The image is too large for Save for Web!" msgid "The image is too large for the Export for Web plug-in!"
msgstr "Изображение слишком велико для сохранения с оптимизацией для веба" msgstr "Изображение слишком велико для экспорта с оптимизацией для веба"


#: ../src/webx_png24_target.c:90 #: ../src/webx_png24_target.c:90 ../src/webx_png8_target.c:91
#: ../src/webx_png8_target.c:91
msgid "_Compression" msgid "_Compression"
msgstr "С_жатие" msgstr "С_жатие"


Expand All @@ -197,3 +199,10 @@ msgstr "Уместить целиком"
msgid "Resize" msgid "Resize"
msgstr "Смена размера" msgstr "Смена размера"


#: ../src/webx_prefs.c:124
#, c-format
msgid "Couldn't save resource file: %s"
msgstr "Не удалось сохранить ресурсный файл: %s"

#~ msgid "Save Image"
#~ msgstr "Сохранить изображение"
10 changes: 5 additions & 5 deletions src/webx_dialog.c
Expand Up @@ -213,7 +213,7 @@ webx_dialog_new (gint image_ID,
webx_prefs_load (&webx_prefs); webx_prefs_load (&webx_prefs);


dlg = g_object_new (WEBX_TYPE_DIALOG, dlg = g_object_new (WEBX_TYPE_DIALOG,
"title", (gchar*)_("Save for Web"), "title", (gchar*)_("Export for Web"),
"role", (gchar*)PLUG_IN_BINARY, "role", (gchar*)PLUG_IN_BINARY,
"modal", (GtkDialogFlags)GTK_DIALOG_MODAL, "modal", (GtkDialogFlags)GTK_DIALOG_MODAL,
"help-func", (GimpHelpFunc)gimp_standard_help_func, "help-func", (GimpHelpFunc)gimp_standard_help_func,
Expand All @@ -222,7 +222,7 @@ webx_dialog_new (gint image_ID,
gimp_dialog_add_buttons (GIMP_DIALOG (dlg), gimp_dialog_add_buttons (GIMP_DIALOG (dlg),


GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, _("_Export"), GTK_RESPONSE_OK,


NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
Expand Down Expand Up @@ -477,12 +477,12 @@ webx_dialog_save_dialog (WebxDialog *dlg)
gint source_image; gint source_image;
gboolean saved = FALSE; gboolean saved = FALSE;


save_dlg = gtk_file_chooser_dialog_new (_("Save Image"), save_dlg = gtk_file_chooser_dialog_new (_("Export Image"),
GTK_WINDOW (dlg), GTK_WINDOW (dlg),
GTK_FILE_CHOOSER_ACTION_SAVE, GTK_FILE_CHOOSER_ACTION_SAVE,


GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, _("_Export"), GTK_RESPONSE_ACCEPT,


NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (save_dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (save_dlg),
Expand All @@ -506,7 +506,7 @@ webx_dialog_save_dialog (WebxDialog *dlg)
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (save_dlg)); filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (save_dlg));
saved = webx_pipeline_save_image (WEBX_PIPELINE (dlg->pipeline), filename); saved = webx_pipeline_save_image (WEBX_PIPELINE (dlg->pipeline), filename);
if (! saved) if (! saved)
g_message (_("Failed to save the file!")); g_message (_("Failed to export the file!"));
g_free (filename); g_free (filename);
} }


Expand Down
8 changes: 4 additions & 4 deletions src/webx_main.c
Expand Up @@ -67,18 +67,18 @@ query (void)
gimp_plugin_domain_register (GETTEXT_PACKAGE, LOCALEDIR); gimp_plugin_domain_register (GETTEXT_PACKAGE, LOCALEDIR);


gimp_install_procedure (PLUG_IN_PROC, gimp_install_procedure (PLUG_IN_PROC,
N_("Optimize & save image for web"), N_("Optimize & export image for web"),
"Optimize image for web.", "Optimize image for web.",
"Aurimas Juška", "Aurimas Juška",
"Aurimas Juška", "Aurimas Juška",
"0.25", "0.25",
N_("Save for Web..."), N_("Export for We_b..."),
"RGB*, GRAY*, INDEXED*", "RGB*, GRAY*, INDEXED*",
GIMP_PLUGIN, GIMP_PLUGIN,
G_N_ELEMENTS (args), 0, G_N_ELEMENTS (args), 0,
args, NULL); args, NULL);


gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/File/Save"); gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/File/Export");
} }


static void static void
Expand Down Expand Up @@ -131,7 +131,7 @@ webx_run (gint32 image_ID, gint32 drawable_ID)
if (gimp_image_width (image_ID) > WEBX_MAX_SIZE if (gimp_image_width (image_ID) > WEBX_MAX_SIZE
|| gimp_image_height (image_ID) > WEBX_MAX_SIZE) || gimp_image_height (image_ID) > WEBX_MAX_SIZE)
{ {
gimp_message (_("The image is too large for Save for Web!")); gimp_message (_("The image is too large for the Export for Web plug-in!"));
return; return;
} }


Expand Down

0 comments on commit 242dcb2

Please sign in to comment.