}
aPanel->setPolylineNames( aList, anEntryList );
- QString anObjectName = HYDROGUI_Tool::GenerateObjectName( module(), "Case" );
+ QString anObjectName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_CALCULATION_CASE_NAME" ) );
myEditedObject.Nullify();
if ( myIsEdit )
aPanel->reset();
- QString anObjectName = HYDROGUI_Tool::GenerateObjectName( module(), "Zone" );
+ QString anObjectName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_IMMERSIBLE_ZONE_NAME" ) );
QColor aFillingColor( HYDROData_ImmersibleZone::DefaultFillingColor() );
QColor aBorderColor( HYDROData_ImmersibleZone::DefaultBorderColor() );
QString anObjectName = aPanel->getObjectName().simplified();
if ( anObjectName.isEmpty() )
{
- anObjectName = HYDROGUI_Tool::GenerateObjectName( module(), "Bathymetry" );
+ anObjectName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_BATHYMETRY_NAME" ) );
aPanel->setObjectName( anObjectName );
}
}
anImageName = myEditedObject->GetName();
}
else
- anImageName = HYDROGUI_Tool::GenerateObjectName( module(), "Image" );
+ anImageName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_IMAGE_NAME" ) );
aPanel->setImageName( anImageName );
}
else{
myCurve = new CurveCreator_Curve(CurveCreator::Dim2d);
aPanel->setCurve(myCurve);
- QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), "Polyline" );
+ QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_POLYLINE_NAME" ) );
aPanel->setPolylineName(aNewName);
}
aPanel->setCurve(myCurve);
{
anEntry.remove( aPrefix );
for( ObjectKind anObjectKind = KIND_UNKNOWN + 1; anObjectKind <= KIND_LAST; anObjectKind++ )
- if( HYDROGUI_DataModel::partitionName( anObjectKind ) == anEntry )
+ if( HYDROGUI_DataModel::tr( HYDROGUI_DataModel::partitionName( anObjectKind ).toAscii() ) == anEntry )
return anObjectKind;
}
}
if( aVisualState.IsNull() )
return false;
- QString aName = HYDROGUI_Tool::GenerateObjectName( module(), "VisualState" );
+ QString aName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_VISUAL_STATE_NAME" ) );
aVisualState->SetName( aName );
}
<context>
<name>@default</name>
+ <message>
+ <source>DEFAULT_IMAGE_NAME</source>
+ <translation>Image</translation>
+ </message>
+ <message>
+ <source>DEFAULT_POLYLINE_NAME</source>
+ <translation>Polyline</translation>
+ </message>
+ <message>
+ <source>DEFAULT_VISUAL_STATE_NAME</source>
+ <translation>Visual state</translation>
+ </message>
+ <message>
+ <source>DEFAULT_BATHYMETRY_NAME</source>
+ <translation>Bathymetry</translation>
+ </message>
+ <message>
+ <source>DEFAULT_CALCULATION_CASE_NAME</source>
+ <translation>Case</translation>
+ </message>
+ <message>
+ <source>DEFAULT_IMMERSIBLE_ZONE_NAME</source>
+ <translation>Immersible zone</translation>
+ </message>
<message>
<source>IMAGES</source>
<translation>IMAGES</translation>