Commit Changes dialog: make more strings translatable; formatting.
This commit is contained in:
parent
1ff3b5a437
commit
c93eb679c1
|
@ -38,7 +38,7 @@ DIALOG_GIT_COMMIT::DIALOG_GIT_COMMIT( wxWindow* parent, git_repository* repo,
|
|||
const wxString& defaultAuthorName,
|
||||
const wxString& defaultAuthorEmail,
|
||||
const std::map<wxString, int>& filesToCommit ) :
|
||||
DIALOG_SHIM( parent, wxID_ANY, "Commit Changes" )
|
||||
DIALOG_SHIM( parent, wxID_ANY, _( "Commit Changes" ) )
|
||||
{
|
||||
wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
|
@ -49,16 +49,16 @@ DIALOG_GIT_COMMIT::DIALOG_GIT_COMMIT( wxWindow* parent, git_repository* repo,
|
|||
|
||||
// Set up columns
|
||||
m_listCtrl->EnableCheckBoxes();
|
||||
m_listCtrl->AppendColumn( "Filename" );
|
||||
m_listCtrl->AppendColumn( "Placeholder" );
|
||||
m_listCtrl->AppendColumn( _( "Filename" ) );
|
||||
m_listCtrl->AppendColumn( _( "Status" ) );
|
||||
|
||||
// Set column widths
|
||||
m_listCtrl->SetColumnWidth( 0, 200 );
|
||||
m_listCtrl->SetColumnWidth( 1, 200 );
|
||||
|
||||
// Set up image list for icons
|
||||
wxImageList* imageList = new wxImageList( 16, 16, true,
|
||||
static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_LAST ) );
|
||||
wxImageList* imageList = new wxImageList(
|
||||
16, 16, true, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_LAST ) );
|
||||
|
||||
imageList->Add( KiBitmap( BITMAPS::git_good_check ) ); // PLACEHOLDER
|
||||
imageList->Add( KiBitmap( BITMAPS::git_good_check ) ); // GIT_STATUS_CURRENT
|
||||
|
@ -80,18 +80,21 @@ DIALOG_GIT_COMMIT::DIALOG_GIT_COMMIT( wxWindow* parent, git_repository* repo,
|
|||
|
||||
if( status & ( GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_NEW ) )
|
||||
{
|
||||
m_listCtrl->SetItem( i, 1, "New" );
|
||||
m_listCtrl->SetItemImage(i, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_ADDED ) );
|
||||
m_listCtrl->SetItem( i, 1, _( "New" ) );
|
||||
m_listCtrl->SetItemImage(
|
||||
i, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_ADDED ) );
|
||||
}
|
||||
else if( status & ( GIT_STATUS_INDEX_MODIFIED | GIT_STATUS_WT_MODIFIED ) )
|
||||
{
|
||||
m_listCtrl->SetItem( i, 1, "Modified" );
|
||||
m_listCtrl->SetItemImage(i, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_MODIFIED ) );
|
||||
m_listCtrl->SetItem( i, 1, _( "Modified" ) );
|
||||
m_listCtrl->SetItemImage(
|
||||
i, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_MODIFIED ) );
|
||||
}
|
||||
else if( status & ( GIT_STATUS_INDEX_DELETED | GIT_STATUS_WT_DELETED ) )
|
||||
{
|
||||
m_listCtrl->SetItem( i, 1, "Deleted" );
|
||||
m_listCtrl->SetItemImage(i, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_DELETED ) );
|
||||
m_listCtrl->SetItem( i, 1, _( "Deleted" ) );
|
||||
m_listCtrl->SetItemImage(
|
||||
i, static_cast<int>( KIGIT_COMMON::GIT_STATUS::GIT_STATUS_DELETED ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue