[nautilus-actions] Have translatable strings with less or without markups
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Have translatable strings with less or without markups
- Date: Sun, 9 Aug 2009 17:39:11 +0000 (UTC)
commit aa6823fca781a3af5eff5327f55a91528dec210e
Author: Pierre Wieser <pwieser trychlos org>
Date: Sun Aug 9 19:41:46 2009 +0200
Have translatable strings with less or without markups
src/nact/nact-assistant-export.c | 14 ++++++++++----
src/nact/nact-assistant-import.c | 7 +++++--
2 files changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/src/nact/nact-assistant-export.c b/src/nact/nact-assistant-export.c
index 49303a2..a210484 100644
--- a/src/nact/nact-assistant-export.c
+++ b/src/nact/nact-assistant-export.c
@@ -647,11 +647,14 @@ assist_prepare_confirm( NactAssistantExport *window, GtkAssistant *assistant, Gt
dump( window );
#endif
- gchar *text = g_strdup( _( "<b>About to export selected actions :</b>\n\n" ));
+ /* i18n: this is the title of the confirm page of the export assistant */
+ gchar *text = g_strdup( _( "About to export selected actions:" ));
+ gchar *tmp = g_strdup_printf( "<b>%s</b>\n\n", text );
+ g_free( text );
+ text = tmp;
GSList *actions = nact_iactions_list_get_selected_actions( NACT_WINDOW( window ));
GSList *ia;
- gchar *tmp;
for( ia = actions ; ia ; ia = ia->next ){
tmp = g_strdup_printf( "%s\t%s\n", text, na_action_get_label( NA_ACTION( ia->data )));
@@ -661,7 +664,10 @@ assist_prepare_confirm( NactAssistantExport *window, GtkAssistant *assistant, Gt
g_assert( window->private->uri && strlen( window->private->uri ));
- tmp = g_strdup_printf( _( "%s\n\n<b>Into the destination folder :</b>\n\n\t%s" ), text, window->private->uri );
+ /* i18n: all exported actions go to one destination folder */
+ gchar *text2 = g_strdup( _( "Into the destination folder:" ));
+ tmp = g_strdup_printf( "%s\n\n<b>%s</b>\n\n\t%s", text, text2, window->private->uri );
+ g_free( text2 );
g_free( text );
text = tmp;
@@ -687,7 +693,7 @@ assist_prepare_confirm( NactAssistantExport *window, GtkAssistant *assistant, Gt
break;
}
- tmp = g_strdup_printf( _( "%s\n\n<b>%s</b>\n\n%s" ), text, label1, label2 );
+ tmp = g_strdup_printf( "%s\n\n<b>%s</b>\n\n%s", text, label1, label2 );
g_free( label2 );
g_free( label1 );
g_free( text );
diff --git a/src/nact/nact-assistant-import.c b/src/nact/nact-assistant-import.c
index 6e84585..6d05c9f 100644
--- a/src/nact/nact-assistant-import.c
+++ b/src/nact/nact-assistant-import.c
@@ -410,8 +410,11 @@ prepare_confirm( NactAssistantImport *window, GtkAssistant *assistant, GtkWidget
static const gchar *thisfn = "nact_assistant_import_prepare_confirm";
g_debug( "%s: window=%p, assistant=%p, page=%p", thisfn, window, assistant, page );
- gchar *text = g_strdup( _( "<b>About to import selected files :</b>\n\n" ));
- gchar *tmp;
+ /* i18n: the title of the confirm page of the import assistant */
+ gchar *text = g_strdup( _( "About to import selected files:" ));
+ gchar *tmp = g_strdup_printf( "<b>%s</b>\n\n", text );
+ g_free( text );
+ text = tmp;
GtkWidget *chooser = gtk_assistant_get_nth_page( assistant, ASSIST_PAGE_FILES_SELECTION );
GSList *uris = gtk_file_chooser_get_uris( GTK_FILE_CHOOSER( chooser ));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]