change to use language value from dynamic data

git-svn-id: svn://10.0.0.236/trunk@6739 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timm%netscape.com
1998-07-29 17:21:46 +00:00
parent 41b5b09c96
commit 149282bbac
3 changed files with 63 additions and 42 deletions

View File

@@ -272,13 +272,13 @@ public class CPGenerator
if ( ispData == null )
{
Trace.TRACE( "isp not found: " + ispName );
//Trace.TRACE( "isp not found: " + ispName );
return null;
}
int size = ispData.getDynamicDataSize();
Trace.TRACE( "size: " + size );
//Trace.TRACE( "size: " + size );
if ( size < popIndex )
return null;
@@ -298,6 +298,18 @@ public class CPGenerator
return phoneNum;
}
public static String getISPLanguage( String ispName )
{
ISPDynamicData ispData = getISPDynamicData( ispName );
if ( ispData != null )
{
String ispLanguage = new String( ispData.getLanguage() );
return ispLanguage;
}
return null;
}
/*
Takes the given inputFile and looks for strings in the form
"@@@string_to_replace@@@" and replaces them with the value