summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
authorShachar Liberman <lshachar@hotmail.com>2006-11-25 20:11:59 +0000
committerShachar Liberman <lshachar@hotmail.com>2006-11-25 20:11:59 +0000
commit4d93177457ddaeb9a8b3c6ebba20269f0761b636 (patch)
treebc5dea379edf0a9c51b216d663460386873445f1 /apps/recorder/recording.c
parent844d22f277627e4c32aad51701648bd9a9d05a14 (diff)
downloadrockbox-4d93177457ddaeb9a8b3c6ebba20269f0761b636.tar.gz
rockbox-4d93177457ddaeb9a8b3c6ebba20269f0761b636.zip
Made the AGC functions compatible with non-latin languages following the
'NonLatinLanguages' wiki page. Please keep using separate LANG_SYSFONT_ strings when using the internal font, Which only supports latin charset, for easier translation. * Hebrew translation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11594 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 6750acc691..61103a8209 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -820,12 +820,12 @@ bool recording_screen(bool no_source)
820 settings_apply_trigger(); 820 settings_apply_trigger();
821 821
822#ifdef HAVE_AGC 822#ifdef HAVE_AGC
823 agc_preset_str[0] = str(LANG_OFF); 823 agc_preset_str[0] = str(LANG_SYSFONT_OFF);
824 agc_preset_str[1] = str(LANG_AGC_SAFETY); 824 agc_preset_str[1] = str(LANG_SYSFONT_AGC_SAFETY);
825 agc_preset_str[2] = str(LANG_AGC_LIVE); 825 agc_preset_str[2] = str(LANG_SYSFONT_AGC_LIVE);
826 agc_preset_str[3] = str(LANG_AGC_DJSET); 826 agc_preset_str[3] = str(LANG_SYSFONT_AGC_DJSET);
827 agc_preset_str[4] = str(LANG_AGC_MEDIUM); 827 agc_preset_str[4] = str(LANG_SYSFONT_AGC_MEDIUM);
828 agc_preset_str[5] = str(LANG_AGC_VOICE); 828 agc_preset_str[5] = str(LANG_SYSFONT_AGC_VOICE);
829 if (global_settings.rec_source == AUDIO_SRC_MIC) { 829 if (global_settings.rec_source == AUDIO_SRC_MIC) {
830 agc_preset = global_settings.rec_agc_preset_mic; 830 agc_preset = global_settings.rec_agc_preset_mic;
831 agc_maxgain = global_settings.rec_agc_maxgain_mic; 831 agc_maxgain = global_settings.rec_agc_maxgain_mic;
@@ -1548,16 +1548,16 @@ bool recording_screen(bool no_source)
1548 1548
1549 if (cursor == 5) 1549 if (cursor == 5)
1550 snprintf(buf, sizeof(buf), "%s: %s", 1550 snprintf(buf, sizeof(buf), "%s: %s",
1551 str(LANG_RECORDING_AGC_MAXGAIN), 1551 str(LANG_SYSFONT_RECORDING_AGC_MAXGAIN),
1552 fmt_gain(SOUND_LEFT_GAIN, 1552 fmt_gain(SOUND_LEFT_GAIN,
1553 agc_maxgain, buf2, sizeof(buf2))); 1553 agc_maxgain, buf2, sizeof(buf2)));
1554 else if (agc_preset == 0) 1554 else if (agc_preset == 0)
1555 snprintf(buf, sizeof(buf), "%s: %s", 1555 snprintf(buf, sizeof(buf), "%s: %s",
1556 str(LANG_RECORDING_AGC_PRESET), 1556 str(LANG_SYSFONT_RECORDING_AGC_PRESET),
1557 agc_preset_str[agc_preset]); 1557 agc_preset_str[agc_preset]);
1558 else if (global_settings.rec_source == AUDIO_SRC_MIC) 1558 else if (global_settings.rec_source == AUDIO_SRC_MIC)
1559 snprintf(buf, sizeof(buf), "%s: %s%s", 1559 snprintf(buf, sizeof(buf), "%s: %s%s",
1560 str(LANG_RECORDING_AGC_PRESET), 1560 str(LANG_SYSFONT_RECORDING_AGC_PRESET),
1561 agc_preset_str[agc_preset], 1561 agc_preset_str[agc_preset],
1562 fmt_gain(SOUND_LEFT_GAIN, 1562 fmt_gain(SOUND_LEFT_GAIN,
1563 agc_maxgain - 1563 agc_maxgain -
@@ -1565,7 +1565,7 @@ bool recording_screen(bool no_source)
1565 buf2, sizeof(buf2))); 1565 buf2, sizeof(buf2)));
1566 else 1566 else
1567 snprintf(buf, sizeof(buf), "%s: %s%s", 1567 snprintf(buf, sizeof(buf), "%s: %s%s",
1568 str(LANG_RECORDING_AGC_PRESET), 1568 str(LANG_SYSFONT_RECORDING_AGC_PRESET),
1569 agc_preset_str[agc_preset], 1569 agc_preset_str[agc_preset],
1570 fmt_gain(SOUND_LEFT_GAIN, 1570 fmt_gain(SOUND_LEFT_GAIN,
1571 agc_maxgain - 1571 agc_maxgain -