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:") "
-- Sample Rate: ~a Hz.
-- Peak Amplitude: ~a (lin) ~a dB.
-- RMS (unweighted): ~a dB.
-- DC Offset: ~a
+- " (_"Sample Rate: ~a Hz.") "
"
+; i18n-hint: abbreviates "linear" and "decibels"
+"- " (_"Peak Amplitude: ~a (lin) ~a dB.") "
"
+; i18n-hint: RMS abbreviates root-mean-square, a method of averaging a signal; there also "weighted" versions of it but this isn't that
+"- " (_"RMS (unweighted): ~a dB.") "
"
+; i18n-hint: DC derives from "direct current" in electronics, really means the zero frequency component of a signal
+"- " (_"DC Offset: ~a") "
-"
+") ; 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 "
-Sample # |
-Seconds |
-Value (linear) |
-Value (dB) |
-
")
+" (_"Sample #") " |
+" (_"Seconds") " |
+" (_"Value (linear)") " |
+" (_"Value (dB)") " |
+"))
;;; table headings (stereo)
(defun table-head-stereo ()
-"
+(strcat "
-Sample # |
-Seconds |
-Left (linear) |
-Right (linear) |
-Left (dB) |
-Right (dB) |
-
")
+" (_"Sample #") " |
+" (_"Seconds") " |
+" (_"Left (linear)") " |
+" (_"Right (linear)") " |
+" (_"Left (dB)") " |
+" (_"Right (dB)") " |
+"))
(defun html-foot ()
+ (format nil (strcat
"
-
-")
+") "https://www.audacityteam.org/"))
;;; html generator
@@ -567,25 +572,25 @@ Daulton (