mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
(gtk) #1477: Launchpad translations need comment for strings with non-standard context
This commit is contained in:
parent
0019b9e753
commit
111c49fe3e
1 changed files with 7 additions and 24 deletions
|
@ -660,12 +660,9 @@ onViewButtonPressed( GtkWidget * w,
|
||||||
if( gtk_tree_view_get_path_at_pos( view, event->x, event->y,
|
if( gtk_tree_view_get_path_at_pos( view, event->x, event->y,
|
||||||
&path, &column, &cell_x, &cell_y ) )
|
&path, &column, &cell_x, &cell_y ) )
|
||||||
{
|
{
|
||||||
const char * column_title = gtk_tree_view_column_get_title(
|
const char * column_title = gtk_tree_view_column_get_title( column );
|
||||||
column );
|
const gboolean downloadColumn = !strcmp( column_title, _( "Download" ) );
|
||||||
const gboolean downloadColumn =
|
const gboolean priorityColumn = !strcmp( column_title, _( "Priority" ) );
|
||||||
!strcmp( column_title, Q_( "filedetails|Download" ) );
|
|
||||||
const gboolean priorityColumn =
|
|
||||||
!strcmp( column_title, _( "Priority" ) );
|
|
||||||
if( downloadColumn || priorityColumn )
|
if( downloadColumn || priorityColumn )
|
||||||
{
|
{
|
||||||
GArray * a = getActiveFilesForPath( view, path );
|
GArray * a = getActiveFilesForPath( view, path );
|
||||||
|
@ -793,13 +790,7 @@ file_list_new( TrTorrent * gtor )
|
||||||
|
|
||||||
col = GTK_TREE_VIEW_COLUMN ( g_object_new ( GTK_TYPE_TREE_VIEW_COLUMN,
|
col = GTK_TREE_VIEW_COLUMN ( g_object_new ( GTK_TYPE_TREE_VIEW_COLUMN,
|
||||||
"expand", TRUE,
|
"expand", TRUE,
|
||||||
/* Translators: this is a column
|
"title", _( "File" ),
|
||||||
header in Files tab, Properties
|
|
||||||
dialog;
|
|
||||||
Don't include the prefix
|
|
||||||
"filedetails|" in the
|
|
||||||
translation. */
|
|
||||||
"title", Q_( "filedetails|File" ),
|
|
||||||
NULL ) );
|
NULL ) );
|
||||||
rend = gtk_cell_renderer_pixbuf_new( );
|
rend = gtk_cell_renderer_pixbuf_new( );
|
||||||
gtk_tree_view_column_pack_start( col, rend, FALSE );
|
gtk_tree_view_column_pack_start( col, rend, FALSE );
|
||||||
|
@ -808,27 +799,19 @@ file_list_new( TrTorrent * gtor )
|
||||||
rend = gtk_cell_renderer_text_new( );
|
rend = gtk_cell_renderer_text_new( );
|
||||||
g_object_set( rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL );
|
g_object_set( rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL );
|
||||||
gtk_tree_view_column_pack_start( col, rend, TRUE );
|
gtk_tree_view_column_pack_start( col, rend, TRUE );
|
||||||
gtk_tree_view_column_set_cell_data_func( col, rend, renderFilename,
|
gtk_tree_view_column_set_cell_data_func( col, rend, renderFilename, NULL, NULL );
|
||||||
NULL,
|
|
||||||
NULL );
|
|
||||||
gtk_tree_view_column_set_resizable( col, TRUE );
|
gtk_tree_view_column_set_resizable( col, TRUE );
|
||||||
gtk_tree_view_append_column( GTK_TREE_VIEW( view ), col );
|
gtk_tree_view_append_column( GTK_TREE_VIEW( view ), col );
|
||||||
|
|
||||||
|
|
||||||
rend = gtk_cell_renderer_progress_new( );
|
rend = gtk_cell_renderer_progress_new( );
|
||||||
/* Translators: this is a column header in Files tab, Properties dialog;
|
col = gtk_tree_view_column_new_with_attributes( _( "Progress" ), rend, NULL );
|
||||||
Don't include the prefix "filedetails|" in the translation. */
|
|
||||||
col = gtk_tree_view_column_new_with_attributes( Q_( "filedetails|Progress" ), rend, NULL );
|
|
||||||
gtk_tree_view_column_set_cell_data_func( col, rend, renderProgress, NULL, NULL );
|
gtk_tree_view_column_set_cell_data_func( col, rend, renderProgress, NULL, NULL );
|
||||||
gtk_tree_view_column_set_resizable( col, FALSE );
|
gtk_tree_view_column_set_resizable( col, FALSE );
|
||||||
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col );
|
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col );
|
||||||
|
|
||||||
/* add "enabled" column */
|
/* add "enabled" column */
|
||||||
rend = gtk_cell_renderer_toggle_new( );
|
rend = gtk_cell_renderer_toggle_new( );
|
||||||
/* Translators: this is a column header in Files tab, Properties dialog;
|
col = gtk_tree_view_column_new_with_attributes( _( "Download" ), rend, NULL );
|
||||||
Don't include the prefix "filedetails|" in the translation.
|
|
||||||
The items for this column are checkboxes (yes/no) */
|
|
||||||
col = gtk_tree_view_column_new_with_attributes( Q_( "filedetails|Download" ), rend, NULL );
|
|
||||||
gtk_tree_view_column_set_cell_data_func( col, rend, renderDownload, NULL, NULL );
|
gtk_tree_view_column_set_cell_data_func( col, rend, renderDownload, NULL, NULL );
|
||||||
gtk_tree_view_column_set_resizable( col, FALSE );
|
gtk_tree_view_column_set_resizable( col, FALSE );
|
||||||
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col );
|
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col );
|
||||||
|
|
Loading…
Reference in a new issue