voxforge.org
VoxForge Dev

Changeset 2350

Show
Ignore:
Timestamp:
11/14/07 21:19:28 (1 year ago)
Author:
kmaclean
Message:

Draft localization code for SpeechSubmission applet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/CapturePlayback.java

    r2349 r2350  
    330330    String stopButton = labels.stopButton;  
    331331    String playButton = labels.playButton;  
     332     
     333    String peakWarningLabel = labels.peakWarningLabel;  
     334    String sampleGraphFileLabel = labels.sampleGraphFileLabel;  
     335    String sampleGraphLengthLabel = labels.sampleGraphLengthLabel;  
     336    String sampleGraphPositionLabel = labels.sampleGraphPositionLabel;  
    332337// !!!!!!       
    333338     
     
    18091814            progBar.setStringPainted(true); 
    18101815            progBar.setString(samplingGraph.peakWarning ?  
    1811                          "Warning: input may be too loud" : ""); 
     1816                       peakWarningLabel : ""); 
    18121817            // !!!!!! 
    18131818            while (thread != null) { 
     
    20182023            progBar.setStringPainted(true); 
    20192024            progBar.setString(samplingGraph.peakWarning ?  
    2020                          "Warning: input may be too loud" : ""); 
     2025                       peakWarningLabel : ""); 
    20212026        } 
    20222027    } // End class Capture 
     
    25902595                g2.setColor(Color.black); 
    25912596                g2.setFont(font12); 
    2592                 g2.drawString("File: " + fileName + "  Length: " + String.valueOf(duration) + "  Position: " + String.valueOf(seconds), 3, h-4); 
     2597                g2.drawString(sampleGraphFileLabel + fileName + sampleGraphLengthLabel + String.valueOf(duration) + sampleGraphPositionLabel + String.valueOf(seconds), 3, h-4); 
    25932598 
    25942599                if (audioInputStream != null) { 
  • Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/LabelLocalizer.java

    r2349 r2350  
    5555    String stopButton;  
    5656    String playButton;  
     57    String peakWarningLabel;  
     58    String sampleGraphFileLabel; 
     59    String sampleGraphLengthLabel; 
     60    String sampleGraphPositionLabel; 
    5761         
    5862        public LabelLocalizer (String Language) { 
     
    125129             stopButton = "Stop";  
    126130             playButton = "Play";  
     131              
     132             peakWarningLabel =  "Warning: input may be too loud";  
     133             sampleGraphFileLabel = "File: "; 
     134             sampleGraphLengthLabel = "  Length: "; 
     135             sampleGraphPositionLabel ="  Position: "; 
     136 
    127137        } 
    128138        private void Dutch() { 
     
    186196             stopButton = "Stop";  
    187197             playButton = "Play";  
     198              
     199             peakWarningLabel =  "Warning: input may be too loud";  
     200             sampleGraphFileLabel = "File: "; 
     201             sampleGraphLengthLabel = "  Length: "; 
     202             sampleGraphPositionLabel ="  Position: "; 
    188203        } 
    189204