diff --git a/plug-ins/sample-data-export.ny b/plug-ins/sample-data-export.ny index af7e3444c..d3d988ee3 100644 --- a/plug-ins/sample-data-export.ny +++ b/plug-ins/sample-data-export.ny @@ -55,7 +55,7 @@ $control owrite (_"Allow files to be overwritten") choice ((_"No") (_"Yes")) 0 (when (not (boundp 'LR-prefix))(setq LR-prefix nil)) -(setq default-filename "sample-data") ; default filename +(setq default-filename (_"sample-data")) ; default filename (setq err "") ; initialise error mesaage (setq *float-format* "%1.5f") ; 5 decimal places @@ -131,7 +131,8 @@ $control owrite (_"Allow files to be overwritten") choice ((_"No") (_"Yes")) 0 (setf ln10over20 (/ (log 10.0) 20)) (defun lin-to-db (val) (if (= val 0) - "[-inf]" + ;i18n-hint abbreviates negative infinity + (_"[-inf]") (/ (log val) ln10over20))) @@ -259,7 +260,7 @@ $control owrite (_"Allow files to be overwritten") choice ((_"No") (_"Yes")) 0 (if (string-equal path "~/" :end1 2) (setq path (strcat (home)(subseq path 1))))) ;; If path not set use home directory - (if (or (string-equal path "Home directory") + (if (or (string-equal path (_"Home directory")) (string-equal path "")) (setq path (home))) ;; if file name not set use default @@ -365,7 +366,7 @@ DC offset: ~a~a" ;; HTML Output ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defun html-head () +(defun html-head () (strcat " @@ -446,26 +447,29 @@ ul { color: blue; } -Sample Data Export +" (_"Sample Data Export") " -") +")) ;;; document headings (defun doc-head () (format nil -" -

Sample Data Export - ~a

+(strcat " +

" (_"Sample Data Export") " - ~a

~a -

~a.   ~a samples.    ~a seconds.

-

Audio data analysis:

+

~a.   " (_"~a samples.") "    " (_"~a seconds.") "

+

" (_"Audio data analysis:") "

-" +") ; end concatenated format string with inserted translations (string-right-trim ".html" filename) (format nil "

~a

" optext) ; Optional heading (get 'info 'channels) ; mono/stereo @@ -485,36 +489,37 @@ ul { ;;; table headings (mono) (defun table-head-mono () -" +(strcat "
- - - - -") + + + + +")) ;;; table headings (stereo) (defun table-head-stereo () -"
Sample #SecondsValue (linear)Value (dB)
" (_"Sample #") "" (_"Seconds") "" (_"Value (linear)") "" (_"Value (dB)") "
+(strcat "
- - - - - - -") + + + + + + +")) (defun html-foot () + (format nil (strcat "
Sample #Seconds Left (linear)Right (linear)Left (dB)Right (dB)
" (_"Sample #") "" (_"Seconds") "" (_"Left (linear)") "" (_"Right (linear)") "" (_"Left (dB)") "" (_"Right (dB)") "
-

Produced with Sample Data Export for -Audacity by Steve -Daulton (" (_"Produced with Sample Data Export for +Audacity by Steve +Daulton") " (www.easyspacepro.com)

-") +") "https://www.audacityteam.org/")) ;;; html generator @@ -567,25 +572,25 @@ Daulton (