xlat default theme name, fix stop blunder
[goodguy/history.git] / cinelerra-5.1 / cinelerra / preferences.C
index 5bc21f62d77829c2b0bbef4f5ec63abb32fbe981..4e1f204f8cea98dba6e58e4c17323f5d54a22e8e 100644 (file)
@@ -68,6 +68,7 @@ Preferences::Preferences()
        trap_sigsegv = 1;
        trap_sigintr = 1;
        theme[0] = 0;
+       plugin_icons[0] = 0;
        use_renderfarm = 0;
        force_uniprocessor = 0;
        renderfarm_port = DEAMON_PORT;
@@ -172,6 +173,7 @@ void Preferences::copy_from(Preferences *that)
        use_thumbnails = that->use_thumbnails;
        keyframe_reticle = that->keyframe_reticle;
        strcpy(theme, that->theme);
+       strcpy(plugin_icons, that->plugin_icons);
 
        use_tipwindow = that->use_tipwindow;
        scan_commercials = that->scan_commercials;
@@ -312,8 +314,10 @@ int Preferences::load_defaults(BC_Hash *defaults)
        trap_sigsegv = defaults->get("TRAP_SIGSEGV", trap_sigsegv);
        trap_sigintr = defaults->get("TRAP_SIGINTR", trap_sigintr);
 
-       strcpy(theme, DEFAULT_THEME);
+       strcpy(theme, _(DEFAULT_THEME));
+       strcpy(plugin_icons, DEFAULT_PICON);
        defaults->get("THEME", theme);
+       defaults->get("PLUGIN_ICONS", plugin_icons);
 
        for(int i = 0; i < MAXCHANNELS; i++)
        {
@@ -392,9 +396,10 @@ int Preferences::load_defaults(BC_Hash *defaults)
        shbtn_prefs.remove_all_objects();
        int shbtns_total = defaults->get("SHBTNS_TOTAL", -1);
        if( shbtns_total < 0 ) {
-               shbtn_prefs.append(new ShBtnPref("Features5", "firefox file://$CIN_DAT/doc/Features5.pdf", 0));
-               shbtn_prefs.append(new ShBtnPref("Online Help", "firefox https://cinelerra-cv.org/docs.php", 0));
-               shbtn_prefs.append(new ShBtnPref("Orignal Manual", "firefox file://$CIN_DAT/doc/cinelerra.html", 0));
+               shbtn_prefs.append(new ShBtnPref(_("Features5"), "$CIN_BROWSER file://$CIN_DAT/doc/Features5.pdf", 0));
+               shbtn_prefs.append(new ShBtnPref(_("Online Help"), "$CIN_BROWSER https://cinelerra-cv.org/docs.php", 0));
+               shbtn_prefs.append(new ShBtnPref(_("Original Manual"), "$CIN_BROWSER file://$CIN_DAT/doc/cinelerra.html", 0));
+               shbtn_prefs.append(new ShBtnPref(_("Setting Shell Commands"), "$CIN_BROWSER file://$CIN_DAT/doc/ShellCmds.html", 0));
                shbtns_total = 0;
        }
        for( int i=0; i<shbtns_total; ++i ) {
@@ -455,8 +460,8 @@ int Preferences::save_defaults(BC_Hash *defaults)
        defaults->update("KEYFRAME_RETICLE", keyframe_reticle);
        defaults->update("TRAP_SIGSEGV", trap_sigsegv);
        defaults->update("TRAP_SIGINTR", trap_sigintr);
-//     defaults->update("GLOBAL_PLUGIN_DIR", global_plugin_dir);
        defaults->update("THEME", theme);
+       defaults->update("PLUGIN_ICONS", plugin_icons);
 
 
        for(int i = 0; i < MAXCHANNELS; i++)