{
int answer = SUIT_MessageBox::question( desktop(), tr( "APPCLOSE_CAPTION" ), tr( "APPCLOSE_DESCRIPTION" ).arg( docName ),
tr ("APPCLOSE_SAVE"), tr ("APPCLOSE_CLOSE"),
- tr ("APPCLOSE_UNLOAD"), tr ("APPCLOSE_CANCEL"), 1 );
+ tr ("APPCLOSE_UNLOAD"), tr ("APPCLOSE_CANCEL"), 0 );
int res = CloseCancel;
- if ( answer == 1 )
+ if ( answer == 0 )
res = CloseSave;
- else if ( answer == 2 )
+ else if ( answer == 1 )
res = CloseDiscard;
- else if ( answer == 3 )
+ else if ( answer == 2 )
res = CloseUnload;
return res;
//=======================================================================================
-msgid "APPCLOSE_SAVE"
+msgid "SalomeApp_Application::APPCLOSE_SAVE"
msgstr "&Save&&Close"
-msgid "APPCLOSE_CLOSE"
+msgid "SalomeApp_Application::APPCLOSE_CLOSE"
msgstr "&Close w/o saving"
-msgid "APPCLOSE_UNLOAD"
+msgid "SalomeApp_Application::APPCLOSE_UNLOAD"
msgstr "&Unload"
-msgid "APPCLOSE_CANCEL"
+msgid "SalomeApp_Application::APPCLOSE_CANCEL"
msgstr "&Cancel"
-msgid "APPCLOSE_CAPTION"
+msgid "SalomeApp_Application::APPCLOSE_CAPTION"
msgstr "Close active study"
-msgid "APPCLOSE_DESCRIPTION"
+msgid "SalomeApp_Application::APPCLOSE_DESCRIPTION"
msgstr "Do you want to close or only unload the study"
<source>ALL_FILES_FILTER</source>
<translation>All files (*.*)</translation>
</message>
+ <message>
+ <source>APPCLOSE_UNLOAD</source>
+ <translation>&Unload</translation>
+ </message>
+ <message>
+ <source>APPCLOSE_CLOSE</source>
+ <translation>&Close w/o saving</translation>
+ </message>
<message>
<source>MEN_WINDOWS_NEW</source>
<translation>New window</translation>
<source>MEN_DESK_REGISTRY_DISPLAY</source>
<translation>Registry &display</translation>
</message>
+ <message>
+ <source>APPCLOSE_SAVE</source>
+ <translation>&Save&&Close</translation>
+ </message>
<message>
<source>TOT_DESK_FILE_LOAD_SCRIPT</source>
<translation>Load python script</translation>
<source>PYTHON_FILES_FILTER</source>
<translation>PYTHON Files (*.py)</translation>
</message>
+ <message>
+ <source>APPCLOSE_DESCRIPTION</source>
+ <translation>Do you want to close or only unload the study</translation>
+ </message>
<message>
<source>PRP_DESK_PROPERTIES</source>
<translation>Edits study properties</translation>
<source>STUDY_LOCKED</source>
<translation>LOCKED</translation>
</message>
+ <message>
+ <source>APPCLOSE_CANCEL</source>
+ <translation>&Cancel</translation>
+ </message>
<message>
<source>OBJ_BROWSER_NAME</source>
<translation>Object</translation>
<source>MEN_DESK_CATALOG_GENERATOR</source>
<translation>Catalog &generator</translation>
</message>
+ <message>
+ <source>APPCLOSE_CAPTION</source>
+ <translation>Close active study</translation>
+ </message>
<message>
<source>MEN_DESK_MRU</source>
<translation>Most recently used</translation>
<source>TOT_DESK_MRU</source>
<translation>Most recently used</translation>
</message>
- <message>
- <source>ACTIVATE_MODULE_OP_LOAD</source>
- <translation>Load...</translation>
- </message>
</context>
<context>
<name>SalomeApp_StudyPropertiesDlg</name>