[vlmc-devel] Gui: Make strings translatable.
Rohit Yadav
git at videolan.org
Fri Jul 29 13:50:31 CEST 2011
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Jul 29 23:01:10 2011 +0530| [d07fdccb5b559930cf9fed4c2957a8a1cecd6014] | committer: Rohit Yadav
Gui: Make strings translatable.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=d07fdccb5b559930cf9fed4c2957a8a1cecd6014
---
src/Gui/project/GuiProjectManager.cpp | 8 ++++----
src/Gui/wizard/WelcomePage.cpp | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/Gui/project/GuiProjectManager.cpp b/src/Gui/project/GuiProjectManager.cpp
index 9ddea18..5f5be55 100644
--- a/src/Gui/project/GuiProjectManager.cpp
+++ b/src/Gui/project/GuiProjectManager.cpp
@@ -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 );
diff --git a/src/Gui/wizard/WelcomePage.cpp b/src/Gui/wizard/WelcomePage.cpp
index 193ad55..82126bd 100644
--- a/src/Gui/wizard/WelcomePage.cpp
+++ b/src/Gui/wizard/WelcomePage.cpp
@@ -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;
More information about the Vlmc-devel
mailing list