Commit d07fdccb authored by Rohit Yadav's avatar Rohit Yadav

Gui: Make strings translatable.

parent bcf20aa3
......@@ -127,8 +127,8 @@ GUIProjectManager::createNewProjectFile( bool saveAs )
if ( defaultPath.length() == 0 )
defaultPath = VLMC_GET_STRING( "general/DefaultProjectLocation" );
QString outputFileName =
QFileDialog::getSaveFileName( NULL, "Enter the output file name",
defaultPath, "VLMC project file(*.vlmc)" );
QFileDialog::getSaveFileName( NULL, tr( "Enter the output file name" ),
defaultPath, tr( "VLMC project file(*.vlmc)" ) );
if ( outputFileName.length() == 0 )
return false;
if ( Workspace::isInProjectDir( outputFileName ) == false )
......@@ -300,9 +300,9 @@ void
GUIProjectManager::loadProject()
{
QString fileName =
QFileDialog::getOpenFileName( NULL, "Enter the output file name",
QFileDialog::getOpenFileName( NULL, tr( "Enter the output file name" ),
VLMC_GET_STRING( "general/DefaultProjectLocation" ),
"VLMC project file(*.vlmc)" );
tr( "VLMC project file(*.vlmc)" ) );
if ( fileName.length() <= 0 ) //If the user canceled.
return ;
loadProject( fileName );
......
......@@ -144,7 +144,7 @@ WelcomePage::loadProject()
QString projectPath =
QFileDialog::getOpenFileName( NULL, tr( "Select a project file" ),
VLMC_GET_STRING( "general/DefaultProjectLocation" ),
"VLMC project file(*.vlmc)" );
tr( "VLMC project file(*.vlmc)" ) );
if ( projectPath.isEmpty() ) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment