diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 5f66b0eb5..dab9a330d 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -2370,6 +2370,8 @@ nfs.automount Beim Start mounten nfs.dir Verzeichnis/Freigabe nfs.ip Server IP nfs.localdir lokales Verzeichnis +nfs.mac MAC-Adresse +nfs.mac_refresh MAC-Adresse feststellen nfs.mount Netzwerk Verzeichnis mounten nfs.mount_options Mount-Optionen nfs.mounterror Mount-Fehler @@ -2378,7 +2380,6 @@ nfs.mountnow Jetzt mounten nfs.mountok Mount erfolgreich nfs.mounttimeout Mount-Fehler: Timeout nfs.password Passwort -nfs.refresh_mac MAC-Adresse feststellen nfs.remount Verzeichnisse erneut mounten nfs.type Typ nfs.type_cifs CIFS @@ -2567,7 +2568,6 @@ recordingmenu.dvbsub_pids Untertitel aufnehmen recordingmenu.end_of_recording_epg EPG aktuelles Event recordingmenu.end_of_recording_max max. Aufnahmezeit recordingmenu.end_of_recording_name Ende der Sofortaufnahme -recordingmenu.file Direkt (Datei) recordingmenu.filename_template Vorlage für Dateiname recordingmenu.filename_template_hint Platzhalter werden durch folgende Werte ersetzt: recordingmenu.filename_template_hint2 %C = Kanal, %T = Titel, %I = Info, %d = Datum, %t = Zeit @@ -2579,19 +2579,17 @@ recordingmenu.multimenu.rec_akt Starte Aufnahme recordingmenu.multimenu.stop_all Alle Aufnahmen beenden recordingmenu.multimenu.timeshift Starte Timeshift recordingmenu.multimenu.timeshift2record Behalte Timeshift-Aufnahme nach Beendigung -recordingmenu.off aus recordingmenu.record_is_not_running Keine laufende Aufnahme verfügbar! recordingmenu.record_is_running Aufnahme läuft! recordingmenu.save_in_channeldir Speichere im Kanalverzeichnis -recordingmenu.server Server -recordingmenu.server_mac MAC-Adresse recordingmenu.setupnow Einstellungen jetzt übernehmen recordingmenu.slow_warn Warnung bei langsamen Aufnahmemedien recordingmenu.timeshift Timeshift recordingmenu.tsdir Timeshift Aufnahmeverzeichnis -recordingmenu.vcr Videorekorder recordingmenu.vtxt_pid Videotext aufnehmen recordingmenu.zap_on_announce Umschalten bei Ankündigung +recording_type.file Direkt (Datei) +recording_type.off aus recordtimer.announce Die Aufnahme beginnt in wenigen Minuten. remotebox_add Hinzufügen remotebox_channel_na Kanal auf Remote-Box nicht verfügbar diff --git a/data/locale/english.locale b/data/locale/english.locale index e0aee804e..af2fe9e1e 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -2370,6 +2370,8 @@ nfs.automount Mount on startup nfs.dir directory/share nfs.ip Server IP nfs.localdir local dir +nfs.mac MAC address +nfs.mac_refresh look up MAC address nfs.mount Mount Network volume nfs.mount_options mount options nfs.mounterror mount error @@ -2378,7 +2380,6 @@ nfs.mountnow mount now nfs.mountok mount successful nfs.mounttimeout mount error: timeout nfs.password password -nfs.refresh_mac look up MAC address nfs.remount remount directories nfs.type type nfs.type_cifs CIFS @@ -2567,7 +2568,6 @@ recordingmenu.dvbsub_pids record dvbsub stream recordingmenu.end_of_recording_epg EPG act. Event recordingmenu.end_of_recording_max max. Recordingtime recordingmenu.end_of_recording_name Endtime of Recording -recordingmenu.file direct (file) recordingmenu.filename_template filename template recordingmenu.filename_template_hint wildcards will be replaced recordingmenu.filename_template_hint2 %C = channel, %T = title, %I = info, %d = date, %t = time @@ -2579,19 +2579,17 @@ recordingmenu.multimenu.rec_akt Start recording recordingmenu.multimenu.stop_all Stop all recordings recordingmenu.multimenu.timeshift Start timeshift recordingmenu.multimenu.timeshift2record Save timeshift recording after finalization -recordingmenu.off off recordingmenu.record_is_not_running No record is running! recordingmenu.record_is_running Record is running! recordingmenu.save_in_channeldir Save in channel dir -recordingmenu.server server -recordingmenu.server_mac MAC address recordingmenu.setupnow Activate changes recordingmenu.slow_warn Enable slow record warning recordingmenu.timeshift Timeshift recordingmenu.tsdir Timeshift directory -recordingmenu.vcr vcr recordingmenu.vtxt_pid record teletext recordingmenu.zap_on_announce zap on recording announce +recording_type.file Direct (File) +recording_type.off off recordtimer.announce Recording starts in a few minutes remotebox_add Add remotebox_channel_na Channel not available on Remote-Box diff --git a/data/locale/slovak.locale b/data/locale/slovak.locale index 953871b5f..8605498ba 100644 --- a/data/locale/slovak.locale +++ b/data/locale/slovak.locale @@ -2361,6 +2361,8 @@ nfs.automount Pripojiť pri spustení nfs.dir Priečinok / Zdielanie nfs.ip IP servera NFS/CIFS nfs.localdir Lokálny priečinok +nfs.mac MAC adresu +nfs.mac_refresh vyhľadať MAC adresu nfs.mount Pripojiť sieťový priečinok nfs.mount_options Možnosti pripojenia nfs.mounterror Chyba pripojenia @@ -2369,7 +2371,6 @@ nfs.mountnow Pripojiť teraz nfs.mountok Pripojenie úspešné nfs.mounttimeout Chyba pripojenia: uplynul časový limit nfs.password Heslo CIFS -nfs.refresh_mac vyhľadať MAC adresu nfs.remount Znovu pripojiť nfs.type Typ nfs.type_cifs CIFS @@ -2556,7 +2557,6 @@ recordingmenu.dvbsub_pids Nahrať titulky recordingmenu.end_of_recording_epg času udalosti v EPG recordingmenu.end_of_recording_max max. času nahrávania recordingmenu.end_of_recording_name Ukončiť nahrávanie podľa -recordingmenu.file Disk (súbor) recordingmenu.filename_template Dočasný názov recordingmenu.filename_template_hint Zástupné znaky súborov budú nahradené recordingmenu.filename_template_hint2 %C = kanál, %T = názov, %I = info, %d = dátum, %t = čas @@ -2568,19 +2568,17 @@ recordingmenu.multimenu.rec_akt Nahrať aktuálny kanál recordingmenu.multimenu.stop_all Zastaviť všetky nahrávania recordingmenu.multimenu.timeshift Časový posun recordingmenu.multimenu.timeshift2record Po dokončení si ponechajte záznam s časovým posunom -recordingmenu.off vypnuté recordingmenu.record_is_not_running Žiadne nahrávanie nebeží! recordingmenu.record_is_running Nahrávanie beží! recordingmenu.save_in_channeldir Nahrávanie do priečinka s názvom kanálu -recordingmenu.server server -recordingmenu.server_mac Adresa MAC servera recordingmenu.setupnow Použiť nastavenia recordingmenu.slow_warn Upozorniť na pomalé nahrávanie recordingmenu.timeshift Časový posun recordingmenu.tsdir Priečinok časového posunu -recordingmenu.vcr Videorekordér recordingmenu.vtxt_pid Nahrať teletext recordingmenu.zap_on_announce Prepnúť na kanál pred začatím nahrávania +recording_type.file Disk (súbor) +recording_type.off vypnuté recordtimer.announce Začatie nahrávania za pár minút. remotebox_add pridať remotebox_channel_na Kanál nedostupný na Vzdialenom boxe diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index c3aa855fc..4f917c6f1 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1897,7 +1897,7 @@ void CChannelList::paintButtonBar(bool is_current) } if (i == 4) { //manage record button - if (g_settings.recording_type == RECORDING_OFF) + if (g_settings.recording_type == CNeutrinoApp::RECORDING_OFF) continue; if (IS_WEBCHAN(channel_id)) continue; diff --git a/src/gui/nfs.cpp b/src/gui/nfs.cpp index 45c03d3d9..7f9006d0a 100644 --- a/src/gui/nfs.cpp +++ b/src/gui/nfs.cpp @@ -267,10 +267,10 @@ int CNFSMountGui::menuEntry(int nr) CKeyboardInput passInput(LOCALE_NFS_PASSWORD, &g_settings.network_nfs[nr].password); CMenuForwarder *password_fwd = new CMenuForwarder(LOCALE_NFS_PASSWORD, (g_settings.network_nfs[nr].type != (int)CFSMounter::NFS), NULL, &passInput); - CMACInput macInput(LOCALE_RECORDINGMENU_SERVER_MAC, &g_settings.network_nfs[nr].mac, LOCALE_IPSETUP_HINT_1, LOCALE_IPSETUP_HINT_2); - CMenuForwarder *macInput_fwd = new CMenuForwarder(LOCALE_RECORDINGMENU_SERVER_MAC, true, NULL, &macInput); + CMACInput macInput(LOCALE_NFS_MAC, &g_settings.network_nfs[nr].mac, LOCALE_IPSETUP_HINT_1, LOCALE_IPSETUP_HINT_2); + CMenuForwarder *macInput_fwd = new CMenuForwarder(LOCALE_NFS_MAC, true, NULL, &macInput); - CMenuForwarder *refreshMAC_fwd = new CMenuForwarder(LOCALE_NFS_REFRESH_MAC, true, NULL, this, ("refreshMAC" + to_string(nr)).c_str(), CRCInput::RC_yellow); + CMenuForwarder *refreshMAC_fwd = new CMenuForwarder(LOCALE_NFS_MAC_REFRESH, true, NULL, this, ("refreshMAC" + to_string(nr)).c_str(), CRCInput::RC_yellow); CMenuForwarder *mountnow_fwd = new CMenuForwarder(LOCALE_NFS_MOUNTNOW, !(CFSMounter::isMounted(g_settings.network_nfs[nr].local_dir)), NULL, this, ("domount" + to_string(nr)).c_str(), CRCInput::RC_red); diff --git a/src/gui/record_setup.cpp b/src/gui/record_setup.cpp index aedd52a8c..59f2438b4 100644 --- a/src/gui/record_setup.cpp +++ b/src/gui/record_setup.cpp @@ -148,22 +148,13 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey) return res; } -#if 0 //not used -#define RECORDINGMENU_RECORDING_TYPE_OPTION_COUNT 4 + +#if 0 +#define RECORDINGMENU_RECORDING_TYPE_OPTION_COUNT 2 const CMenuOptionChooser::keyval RECORDINGMENU_RECORDING_TYPE_OPTIONS[RECORDINGMENU_RECORDING_TYPE_OPTION_COUNT] = { - { CNeutrinoApp::RECORDING_OFF , LOCALE_RECORDINGMENU_OFF }, - { CNeutrinoApp::RECORDING_SERVER, LOCALE_RECORDINGMENU_SERVER }, - { CNeutrinoApp::RECORDING_VCR , LOCALE_RECORDINGMENU_VCR }, - { CNeutrinoApp::RECORDING_FILE , LOCALE_RECORDINGMENU_FILE } -}; - -#define CHOOSE_DIRECT_REC_DIR_COUNT 3 -const CMenuOptionChooser::keyval CHOOSE_DIRECT_REC_DIR[RECORDINGMENU_RECORDING_TYPE_OPTION_COUNT] = -{ - {0, LOCALE_OPTIONS_OFF}, - {1, LOCALE_NFS_TYPE_NFS}, - {2, LOCALE_NFS_LOCALDIR} + { CNeutrinoApp::RECORDING_OFF , LOCALE_RECORDINGMENU_OFF }, + { CNeutrinoApp::RECORDING_FILE, LOCALE_RECORDINGMENU_FILE } }; #endif diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 821f1633b..dc18de470 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -127,7 +127,7 @@ public: tmTime2->tm_hour, tmTime2->tm_min); *display = std::string(disp); m1->setActive(true); - m6->setActive((g_settings.recording_type == RECORDING_FILE)); + m6->setActive((g_settings.recording_type == CNeutrinoApp::RECORDING_FILE)); } else { @@ -1683,7 +1683,7 @@ int CTimerList::modifyTimer() timer_recordingDir = timer->recordingDir; strncpy(t_old.recordingDir, timer->recordingDir, sizeof(t_old.recordingDir)); - bool recDirEnabled = (g_settings.recording_type == RECORDING_FILE); // obsolete? + bool recDirEnabled = (g_settings.recording_type == CNeutrinoApp::RECORDING_FILE); CMenuForwarder* m6 = new CMenuForwarder(LOCALE_TIMERLIST_RECORDING_DIR, recDirEnabled, timer_recordingDir, this, "rec_dir1", CRCInput::RC_green); timerSettings.addItem(GenericMenuSeparatorLine); timerSettings.addItem(m6); diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index ab4fdb7cd..ae88b480b 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -298,7 +298,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) } case SNeutrinoSettings::ITEM_RECORD: { - if (g_settings.recording_type == RECORDING_OFF) + if (g_settings.recording_type == CNeutrinoApp::RECORDING_OFF) break; keyhelper.get(&key,&icon,CRCInput::RC_red); menu_item = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_REC_AKT, true, NULL, CRecordManager::getInstance(), "-1", key, icon); @@ -307,7 +307,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) } case SNeutrinoSettings::ITEM_TIMESHIFT: { - if (g_settings.recording_type == RECORDING_OFF) + if (g_settings.recording_type == CNeutrinoApp::RECORDING_OFF) break; keyhelper.get(&key,&icon,CRCInput::RC_red); menu_item = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, !timeshift, NULL, CRecordManager::getInstance(), "Timeshift", key, icon); @@ -316,7 +316,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) } case SNeutrinoSettings::ITEM_MOVIEPLAYER_MB: { - if (g_settings.recording_type == RECORDING_OFF) + if (g_settings.recording_type == CNeutrinoApp::RECORDING_OFF) break; keyhelper.get(&key,&icon,CRCInput::RC_green); menu_item = new CMenuForwarder(LOCALE_MOVIEBROWSER_HEAD, !_mode_ts, NULL, neutrino, "tsmoviebrowser", key, icon); diff --git a/src/neutrino.h b/src/neutrino.h index a2ce23d21..abda083ed 100644 --- a/src/neutrino.h +++ b/src/neutrino.h @@ -67,10 +67,8 @@ public: enum { - RECORDING_OFF = 0, - RECORDING_SERVER = 1, - RECORDING_VCR = 2, - RECORDING_FILE = 3 + RECORDING_OFF = 0, + RECORDING_FILE }; private: diff --git a/src/system/locals.h b/src/system/locals.h index fbb0f880d..2215c0b54 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -2397,6 +2397,8 @@ typedef enum LOCALE_NFS_DIR, LOCALE_NFS_IP, LOCALE_NFS_LOCALDIR, + LOCALE_NFS_MAC, + LOCALE_NFS_MAC_REFRESH, LOCALE_NFS_MOUNT, LOCALE_NFS_MOUNT_OPTIONS, LOCALE_NFS_MOUNTERROR, @@ -2405,7 +2407,6 @@ typedef enum LOCALE_NFS_MOUNTOK, LOCALE_NFS_MOUNTTIMEOUT, LOCALE_NFS_PASSWORD, - LOCALE_NFS_REFRESH_MAC, LOCALE_NFS_REMOUNT, LOCALE_NFS_TYPE, LOCALE_NFS_TYPE_CIFS, @@ -2594,7 +2595,6 @@ typedef enum LOCALE_RECORDINGMENU_END_OF_RECORDING_EPG, LOCALE_RECORDINGMENU_END_OF_RECORDING_MAX, LOCALE_RECORDINGMENU_END_OF_RECORDING_NAME, - LOCALE_RECORDINGMENU_FILE, LOCALE_RECORDINGMENU_FILENAME_TEMPLATE, LOCALE_RECORDINGMENU_FILENAME_TEMPLATE_HINT, LOCALE_RECORDINGMENU_FILENAME_TEMPLATE_HINT2, @@ -2606,19 +2606,17 @@ typedef enum LOCALE_RECORDINGMENU_MULTIMENU_STOP_ALL, LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT2RECORD, - LOCALE_RECORDINGMENU_OFF, LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING, LOCALE_RECORDINGMENU_RECORD_IS_RUNNING, LOCALE_RECORDINGMENU_SAVE_IN_CHANNELDIR, - LOCALE_RECORDINGMENU_SERVER, - LOCALE_RECORDINGMENU_SERVER_MAC, LOCALE_RECORDINGMENU_SETUPNOW, LOCALE_RECORDINGMENU_SLOW_WARN, LOCALE_RECORDINGMENU_TIMESHIFT, LOCALE_RECORDINGMENU_TSDIR, - LOCALE_RECORDINGMENU_VCR, LOCALE_RECORDINGMENU_VTXT_PID, LOCALE_RECORDINGMENU_ZAP_ON_ANNOUNCE, + LOCALE_RECORDING_TYPE_FILE, + LOCALE_RECORDING_TYPE_OFF, LOCALE_RECORDTIMER_ANNOUNCE, LOCALE_REMOTEBOX_ADD, LOCALE_REMOTEBOX_CHANNEL_NA, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 24dd56181..5ed606d02 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -2397,6 +2397,8 @@ const char * locale_real_names[] = "nfs.dir", "nfs.ip", "nfs.localdir", + "nfs.mac", + "nfs.mac_refresh", "nfs.mount", "nfs.mount_options", "nfs.mounterror", @@ -2405,7 +2407,6 @@ const char * locale_real_names[] = "nfs.mountok", "nfs.mounttimeout", "nfs.password", - "nfs.refresh_mac", "nfs.remount", "nfs.type", "nfs.type_cifs", @@ -2594,7 +2595,6 @@ const char * locale_real_names[] = "recordingmenu.end_of_recording_epg", "recordingmenu.end_of_recording_max", "recordingmenu.end_of_recording_name", - "recordingmenu.file", "recordingmenu.filename_template", "recordingmenu.filename_template_hint", "recordingmenu.filename_template_hint2", @@ -2606,19 +2606,17 @@ const char * locale_real_names[] = "recordingmenu.multimenu.stop_all", "recordingmenu.multimenu.timeshift", "recordingmenu.multimenu.timeshift2record", - "recordingmenu.off", "recordingmenu.record_is_not_running", "recordingmenu.record_is_running", "recordingmenu.save_in_channeldir", - "recordingmenu.server", - "recordingmenu.server_mac", "recordingmenu.setupnow", "recordingmenu.slow_warn", "recordingmenu.timeshift", "recordingmenu.tsdir", - "recordingmenu.vcr", "recordingmenu.vtxt_pid", "recordingmenu.zap_on_announce", + "recording_type.file", + "recording_type.off", "recordtimer.announce", "remotebox_add", "remotebox_channel_na", diff --git a/src/system/settings.h b/src/system/settings.h index 144e4348d..1e6ee0aed 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -1263,11 +1263,6 @@ struct SglobalInfo hw_caps_t *hw_caps; }; -const int RECORDING_OFF = 0; -const int RECORDING_SERVER = 1; -const int RECORDING_VCR = 2; -const int RECORDING_FILE = 3; - const int PARENTALLOCK_PROMPT_NEVER = 0; const int PARENTALLOCK_PROMPT_ONSTART = 1; const int PARENTALLOCK_PROMPT_CHANGETOLOCKED = 2;