[dia] Bug 606377 follow-up: beautify filter names and fix help for --list-filters
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Bug 606377 follow-up: beautify filter names and fix help for --list-filters
- Date: Fri, 5 Sep 2014 18:00:58 +0000 (UTC)
commit 1a99ef8d4ef3c49b26a1c2a6e6d70430e05a0017
Author: Hans Breuer <hans breuer org>
Date: Sun Aug 31 15:43:47 2014 +0200
Bug 606377 follow-up: beautify filter names and fix help for --list-filters
Now that dia --list-filters shows all the available export filter strings
replace some abbreviations with the full name and shorten the longest
filter name to fit typical terminal width.
app/app_procs.c | 8 +++-----
plug-ins/postscript/render_eps.c | 2 +-
plug-ins/wpg/wpg.c | 4 ++--
3 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/app/app_procs.c b/app/app_procs.c
index d04a306..33041d0 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -943,7 +943,6 @@ app_init (int argc, char **argv)
persistence_register_window_create("layer_window",
(NullaryFunc*)&layer_dialog_create);
}
-
/*fill recent file menu */
recent_file_history_init();
@@ -959,18 +958,17 @@ app_init (int argc, char **argv)
/* In current setup, we can't find the autosaved files. */
/*autosave_restore_documents();*/
-
}
dia_log_message ("diagrams");
made_conversions = handle_all_diagrams(files, export_file_name,
export_file_format, size, show_layers,
input_directory, output_directory);
-
+
if (dia_is_interactive && files == NULL && !nonew) {
if (use_integrated_ui) {
GList * list;
-
+
file_new_callback(NULL);
list = dia_open_diagrams();
if (list) {
@@ -1320,7 +1318,7 @@ print_filters_list (gboolean verbose)
int j;
GArray *by_extension;
- g_print ("%s\n", _("Available Export Filters (for --format)"));
+ g_print ("%s\n", _("Available Export Filters (for --filter)"));
g_print ("%10s%20s %s\n",
/* Translators: be brief or mess up the table for --list-filters */
_("Extension"),
diff --git a/plug-ins/postscript/render_eps.c b/plug-ins/postscript/render_eps.c
index 42d8f6a..ce24c56 100644
--- a/plug-ins/postscript/render_eps.c
+++ b/plug-ins/postscript/render_eps.c
@@ -184,7 +184,7 @@ DiaExportFilter epsi_ft2_export_filter = {
#endif
DiaExportFilter eps_export_filter = {
- N_("Encapsulated PostScript (using PostScript Latin-1 fonts)"),
+ N_("Encapsulated PostScript (using PS Latin-1 fonts)"),
eps_extensions,
export_eps,
GINT_TO_POINTER(PSTYPE_EPS), /* user_data */
diff --git a/plug-ins/wpg/wpg.c b/plug-ins/wpg/wpg.c
index 826507d..cce227e 100644
--- a/plug-ins/wpg/wpg.c
+++ b/plug-ins/wpg/wpg.c
@@ -1108,13 +1108,13 @@ export_data(DiagramData *data, DiaContext *ctx,
static const gchar *extensions[] = { "wpg", NULL };
static DiaExportFilter my_export_filter = {
- N_("WPG"),
+ N_("WordPerfect Graphics"),
extensions,
export_data
};
DiaImportFilter my_import_filter = {
- N_("WPG"),
+ N_("WordPerfect Graphics"),
extensions,
import_data
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]