linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [305] Closes tasks #12177.


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [305] Closes tasks #12177.
Date: Fri, 17 Aug 2012 10:00:17 +0000

Revision: 305
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=305
Author:   valkov
Date:     2012-08-17 10:00:16 +0000 (Fri, 17 Aug 2012)
Log Message:
-----------
Closes tasks #12177. The internal web log/debug interface is greatly
improved.

Ticket Links:
------------
    http://savannah.gnu.org/task/?12177

Modified Paths:
--------------
    trunk/data/style/template.css
    trunk/doc/linterna_magica.texi
    trunk/doc/po/bg.po
    trunk/doc/version.texi
    trunk/src/lm_about.js
    trunk/src/lm_check_for_updates.js
    trunk/src/lm_config_options.js
    trunk/src/lm_constructors.js
    trunk/src/lm_create_video_object.js
    trunk/src/lm_init_options.js
    trunk/src/lm_log.js

Added Paths:
-----------
    trunk/data/style/button-about-90deg.png
    trunk/data/style/button-close-90deg.png
    trunk/data/style/button-debug-90deg.png

Added: trunk/data/style/button-about-90deg.png
===================================================================
(Binary files differ)


Property changes on: trunk/data/style/button-about-90deg.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/data/style/button-close-90deg.png
===================================================================
(Binary files differ)


Property changes on: trunk/data/style/button-close-90deg.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/data/style/button-debug-90deg.png
===================================================================
(Binary files differ)


Property changes on: trunk/data/style/button-debug-90deg.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/data/style/template.css
===================================================================
--- trunk/data/style/template.css       2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/data/style/template.css       2012-08-17 10:00:16 UTC (rev 305)
@@ -1,7 +1,7 @@
 /*
    This CSS file is part of  Linterna Mágica
 
-   Copyright (C) 2010, 2011  Ivaylo Valkov <address@hidden>
+   Copyright (C) 2010, 2011, 2012  Ivaylo Valkov <address@hidden>
    Copyright (C) 2010, 2011  Anton Katsarov <address@hidden>
 
    Linterna Mágica is free software: you can redistribute it and/or modify
@@ -432,10 +432,7 @@
                                 right: 122px !important;
                                 }
 
-/* This is only used when no objects are found and the web log is visible */
-/* alone. For cloned objects, displayed in the main interface see */
-/* .linterna-magica-web-log-clone. */
-div.linterna-magica-web-log,
+div.linterna-magica-web-log, 
 .linterna-magica-web-log {
                            display: inline !important;
                            /* overflow: auto !important; */
@@ -450,7 +447,8 @@
                            float: right !important;
                            right: 10px !important;
                            bottom: 10px !important;
-                           width: 450px !important;
+                          left: 10px !important;
+                          right: 10px !important;
                            height: 250px !important;
                            /* The footer at some site had 1e+09 that broke 
9999 */
                            z-index: 10000000000000000 !important;
@@ -486,12 +484,12 @@
                                     margin: 0 !important;
                                     letter-spacing: normal !important;
                                     font-family: 'Liberation Sans', 'Arial', 
sans-serif  !important;
+                                   text-indent: 5px !important;
                                     }
 
 /* The link that destroys the web log */
 .linterna-magica-web-log-header a {
                                     display: block !important;
-                                    right: 0 !important;
                                     margin: 0 !important;
                                     top: 0 !important;
                                     position: relative !important;
@@ -500,50 +498,37 @@
                                     width: 24px !important;
                                     height: 24px !important;
                                     /* border: 1px dashed white !important; */
-                                    float: right !important;
                                     text-decoration: none !important;
                                     overflow: hidden;
-                                    background: url('button-close.png') 0 0 
no-repeat !important;
                                     line-height: 3000px;
                                     }
-.linterna-magica-web-log-header a.linterna-magica-web-log-show-hide-body {
-                                                                           
background: url('button-minimize.png') 0 0 no-repeat !important;
-                                                                           }
 
+.linterna-magica-web-log-right-buttons {
+    float: right !important;
+    right: 0 !important;                   
+}
+
+.linterna-magica-web-log-left-buttons {
+    float: left !important;
+    left: 0 !important;                    
+}
+
+.linterna-magica-web-log-header a.linterna-magica-web-log-close {
+    background: url('button-close.png') 0 0 no-repeat !important;
+}
+
+.linterna-magica-web-log-header a.linterna-magica-web-log-collapse {
+    background: url('button-minimize.png') 0 0 no-repeat !important;
+}
+
 .linterna-magica-web-log-messages {
-                                    height: 215px !important;
-                                   width: 420px !important;
+                                    height: 85% !important;
                                     overflow: auto !important;
                                     padding: 5px 15px !important;
                                     line-height: 1.35em;
                                     }
 
-/* Cloned log objects */
-.linterna-magica-web-log-clone {
-                                 }
 
-.linterna-magica-web-log-clone-header {
-                                        font-size: 20px;
-                                        margin: 0.25em 0 !important;
-                                        }
-
-.linterna-magica-web-log-clone-header a {
-                                          /* We do not need to destroy the 
object when it is inside the main interface */
-                                          display: none !important;
-                                          }
-
-.linterna-magica-web-log-clone-messages {
-                                          overflow: auto !important;
-                                          padding: 5px 15px !important;
-                                          line-height: 1.35em !important;
-                                          font-size: 12px !important;
-                                          font-weight: normal !important;
-                                          text-align: left;
-                                          }
-.linterna-magica-web-log-clone-messages p {
-                                            margin: 1em 0 !important;
-                                            }
-
 /* New lines are replaced with span in the web log. */
 /* This shows them in new line in the web log */
 .linterna-magica-log-to-web-message span {
@@ -561,6 +546,62 @@
 }
 
 
+.linterna-magica-web-log-debug-button-wrap {
+    position: fixed !important;
+    right: -12px !important;
+    bottom: 105px !important;
+    float: right !important;
+    line-height: 10000px !important;
+    width: 24px !important;
+    height: 164px !important;
+    padding:0 !important;
+    margin:0 !important;
+    border: 1px solid #36393E !important;
+    /* The footer at some site had 1e+09 that broke 9999 */
+    z-index: 10000000000000000 !important;
+}
+
+p.linterna-magica-web-log-debug-button-wrap:hover {
+    right: 0px !important;
+}
+
+.linterna-magica-web-log-debug-button-wrap a:hover {
+    text-decoration:none !important;
+    padding:0 !important;
+    margin:0 !important;
+    color: black !important;
+}
+
+.linterna-magica-web-log-debug-button {
+    background: gray url('button-about-90deg.png') 0 0 no-repeat !important;
+    height: 116px!important;
+    width: 24px!important;
+    display:block!important;
+    border: none !important;
+}
+
+.linterna-magica-web-log-debug-button-close {
+  background: url('button-close-90deg.png') 0 0 no-repeat !important;
+  width: 24px !important;
+  height: 24px !important;
+  position:relative !important;
+  top: 24px !important;
+  display:block;
+  overflow:hidden !important;
+  border: none !important;
+}
+
+.linterna-magica-web-log-debug-button-bug {
+    background: gray url('button-debug-90deg.png') 0 0 no-repeat !important;
+    height: 24px!important;
+    width: 24px!important;
+    display:block!important;
+    top:116px!important;
+    position:relative!important;
+    overflow:hidden !important;
+    border: none !important;
+}
+
 .linterna-magica-remote-clip-buttons  {
     position: relative !important;
     z-index: 99999 !important;
@@ -588,4 +629,3 @@
     background: url('button-close.png') 0 0 no-repeat !important;
     width: 24px !important;
 }
-

Modified: trunk/doc/linterna_magica.texi
===================================================================
--- trunk/doc/linterna_magica.texi      2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/doc/linterna_magica.texi      2012-08-17 10:00:16 UTC (rev 305)
@@ -419,6 +419,7 @@
  @{
     "debug": 0,
     "log_to": "web",
+    "web_log_expand": false,
     "updates": "1w",
     "priority": "html5, self, plugin",
     "autostart": "off",
@@ -474,6 +475,19 @@
 
 @end table
 
address@hidden web_log_expand
+Should the web logger be automatically expanded by default
+
address@hidden @option
+
address@hidden false
+No (default)
+
address@hidden true
+Yes
+
address@hidden table
+
 @item updates
 Should Linterna address@hidden automatically check and notify for
 updates. @xref{Automatic check for updates}.

Modified: trunk/doc/po/bg.po
===================================================================
--- trunk/doc/po/bg.po  2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/doc/po/bg.po  2012-08-17 10:00:16 UTC (rev 305)
@@ -1,15 +1,15 @@
 # Bulgarian translation of linterna_magica.texi file
-# Copyright (C) 2010, 2011 Ivaylo Valkov <address@hidden>
+# Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 # Copyright (C) 2010 Anton Katsarov <address@hidden>
 # This file is distributed under the same license as the Linterna Magica 
package.
-# Ivaylo Valkov <address@hidden>, 2010, 2011.
+# Ivaylo Valkov <address@hidden>, 2010, 2011, 2012.
 # Anton Katsarov <address@hidden>, 2010.
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: linterna magica 0.0.10\n"
-"POT-Creation-Date: 2012-06-10 22:08+0400\n"
-"PO-Revision-Date: 2012-06-10 22:09+0300\n"
+"POT-Creation-Date: 2012-08-17 09:43+0400\n"
+"PO-Revision-Date: 2012-08-17 12:17+0300\n"
 "Last-Translator: Ivaylo Valkov <address@hidden>\n"
 "Language-Team: Bulgarian <address@hidden>\n"
 "Language: bg\n"
@@ -200,7 +200,7 @@
 msgstr "Потребителски настройки."
 
 #. type: chapter
-#: linterna_magica.texi:133 linterna_magica.texi:737 linterna_magica.texi:738
+#: linterna_magica.texi:133 linterna_magica.texi:751 linterna_magica.texi:752
 #, no-wrap
 msgid "What is supported?"
 msgstr "Какво се поддържа?"
@@ -211,7 +211,7 @@
 msgstr "(Не) Поддържани браузъри, пристави и т.н."
 
 #. type: chapter
-#: linterna_magica.texi:133 linterna_magica.texi:854 linterna_magica.texi:855
+#: linterna_magica.texi:133 linterna_magica.texi:868 linterna_magica.texi:869
 #, no-wrap
 msgid "Bugs"
 msgstr "Грешки"
@@ -222,7 +222,7 @@
 msgstr "Докладване на грешки."
 
 #. type: appendix
-#: linterna_magica.texi:133 linterna_magica.texi:865 linterna_magica.texi:866
+#: linterna_magica.texi:133 linterna_magica.texi:879 linterna_magica.texi:880
 #, no-wrap
 msgid "Copying this manual"
 msgstr "Копиране и разпространение на това ръководство"
@@ -233,7 +233,7 @@
 msgstr "GNU GPL, GNU FDL"
 
 #. type: unnumbered
-#: linterna_magica.texi:133 linterna_magica.texi:887 linterna_magica.texi:888
+#: linterna_magica.texi:133 linterna_magica.texi:901 linterna_magica.texi:902
 #, no-wrap
 msgid "Index"
 msgstr "Индекс"
@@ -804,7 +804,7 @@
 msgstr "Превод на интерфейса::"
 
 #. type: section
-#: linterna_magica.texi:392 linterna_magica.texi:717 linterna_magica.texi:718
+#: linterna_magica.texi:392 linterna_magica.texi:731 linterna_magica.texi:732
 #, no-wrap
 msgid "Stop execution on every site"
 msgstr "Спиране на изпълнението на всяка страница"
@@ -925,13 +925,14 @@
 "формат \"настройка\":\"стройност\":"
 
 #. type: example
-#: linterna_magica.texi:431
+#: linterna_magica.texi:432
 #, no-wrap
 msgid ""
 " var linterna_magica_options =\n"
 " @{\n"
 "    \"debug\": 0,\n"
 "    \"log_to\": \"web\",\n"
+"    \"web_log_expand\": false,\n"
 "    \"updates\": \"1w\",\n"
 "    \"priority\": \"html5, self, plugin\",\n"
 "    \"autostart\": \"off\",\n"
@@ -946,6 +947,7 @@
 " @{\n"
 "    \"debug\": 0,\n"
 "    \"log_to\": \"web\",\n"
+"    \"web_log_expand\": false,\n"
 "    \"updates\": \"1w\",n\"\n"
 "    \"priority\": \"html5, self, plugin\",\n"
 "    \"autostart\": \"off\",\n"
@@ -957,7 +959,7 @@
 " @};\n"
 
 #. type: Plain text
-#: linterna_magica.texi:445
+#: linterna_magica.texi:446
 msgid ""
 "Since version 0.0.10 it is possible to keep your configuration in separate "
 "userscript file. This way your preferences will stay intact when new version "
@@ -985,88 +987,123 @@
 "използва стандартната стойност от основния потребителски скрипт."
 
 #. type: Plain text
-#: linterna_magica.texi:448
+#: linterna_magica.texi:449
 msgid "Available options are:"
 msgstr "Възможни са следните настройки:"
 
 #. type: item
-#: linterna_magica.texi:450
+#: linterna_magica.texi:451
 #, no-wrap
 msgid "debug"
 msgstr "debug"
 
 #. type: table
-#: linterna_magica.texi:453
+#: linterna_magica.texi:454
 msgid ""
 "This option sets the debug level. The debug information is printed in the "
 "console."
 msgstr "Дали в конзолата да се показват съобщения за отстраняване на грешки."
 
 #. type: item
-#: linterna_magica.texi:456 linterna_magica.texi:504
+#: linterna_magica.texi:457 linterna_magica.texi:518
 #, no-wrap
 msgid "0"
 msgstr "0"
 
 #. type: table
-#: linterna_magica.texi:458
+#: linterna_magica.texi:459
 msgid "Do not print anything (default)"
 msgstr "Да не се отпечатват съобщения (стандартно)"
 
 #. type: item
-#: linterna_magica.texi:459
+#: linterna_magica.texi:460
 #, no-wrap
 msgid "1..5"
 msgstr "1..5"
 
 #. type: table
-#: linterna_magica.texi:461
+#: linterna_magica.texi:462
 msgid "Print debug information"
 msgstr "Да се отпечатват съобщения"
 
 #. type: item
-#: linterna_magica.texi:464
+#: linterna_magica.texi:465
 #, no-wrap
 msgid "log_to"
 msgstr "log_to"
 
 #. type: table
-#: linterna_magica.texi:466
+#: linterna_magica.texi:467
 msgid "Where to print the debugging information when debug is not zero."
 msgstr ""
 "Къде да се отпечатват съобщенията за отстраняване на грешки, когато debug не "
 "е нула."
 
 #. type: item
-#: linterna_magica.texi:469
+#: linterna_magica.texi:470
 #, no-wrap
 msgid "web"
 msgstr "web"
 
 #. type: table
-#: linterna_magica.texi:471
+#: linterna_magica.texi:472
 msgid "Print messages in the web page (default)"
 msgstr "Да се отпечатват в уеб страницата (стандартно)"
 
 #. type: item
-#: linterna_magica.texi:472
+#: linterna_magica.texi:473
 #, no-wrap
 msgid "console"
 msgstr "console"
 
 #. type: table
-#: linterna_magica.texi:474
+#: linterna_magica.texi:475
 msgid "Use the debugging console of the browser"
 msgstr "Да се отпечатват в конзолата за грешки на браузъра"
 
 #. type: item
-#: linterna_magica.texi:477
+#: linterna_magica.texi:478
 #, no-wrap
+msgid "web_log_expand"
+msgstr "web_log_expand"
+
+#. type: table
+#: linterna_magica.texi:480
+msgid "Should the web logger be automatically expanded by default"
+msgstr ""
+"Дали списъкът със съобщенията за отстраняване на грешки да се показва "
+"автоматично."
+
+#. type: item
+#: linterna_magica.texi:483 linterna_magica.texi:517
+#, no-wrap
+msgid "false"
+msgstr "false"
+
+#. type: table
+#: linterna_magica.texi:485
+msgid "No (default)"
+msgstr "Да не се показва (стандартно)"
+
+#. type: item
+#: linterna_magica.texi:486
+#, no-wrap
+msgid "true"
+msgstr "true"
+
+#. type: table
+#: linterna_magica.texi:488
+msgid "Yes"
+msgstr "Да се показва"
+
+#. type: item
+#: linterna_magica.texi:491
+#, no-wrap
 msgid "updates"
 msgstr "updates"
 
 #. type: table
-#: linterna_magica.texi:480
+#: linterna_magica.texi:494
 msgid ""
 "Should Linterna address@hidden automatically check and notify for "
 "updates. @xref{Automatic check for updates}."
@@ -1075,87 +1112,81 @@
 "@xref{Автоматична проверка за обновления}."
 
 #. type: item
-#: linterna_magica.texi:483
+#: linterna_magica.texi:497
 #, no-wrap
 msgid "<time><type>"
 msgstr "<време><вид>"
 
 #. type: table
-#: linterna_magica.texi:485
+#: linterna_magica.texi:499
 msgid "Check at interval. (default 1w)"
 msgstr "Проверка през интервал. (стандартно 1w)"
 
 #. type: item
-#: linterna_magica.texi:488
+#: linterna_magica.texi:502
 #, no-wrap
 msgid "<time>"
 msgstr "<време>"
 
 #. type: table
-#: linterna_magica.texi:490
+#: linterna_magica.texi:504
 msgid "positive integer"
 msgstr "цяло положително число"
 
 #. type: item
-#: linterna_magica.texi:491
+#: linterna_magica.texi:505
 #, no-wrap
 msgid "<type>"
 msgstr "<вид>"
 
 #. type: item
-#: linterna_magica.texi:493 linterna_magica.texi:494
+#: linterna_magica.texi:507 linterna_magica.texi:508
 #, no-wrap
 msgid "d/w/m/y"
 msgstr "d/w/m/y"
 
 #. type: table
-#: linterna_magica.texi:496
+#: linterna_magica.texi:510
 msgid "d = day, w = week, m = month, y = year"
 msgstr "d = ден, w = седмица, m = месец, y = година"
 
 #. type: item
-#: linterna_magica.texi:499
+#: linterna_magica.texi:513
 #, no-wrap
 msgid "off"
 msgstr "off"
 
 #. type: item
-#: linterna_magica.texi:500
+#: linterna_magica.texi:514
 #, no-wrap
 msgid "disabled"
 msgstr "disabled"
 
 #. type: item
-#: linterna_magica.texi:501
+#: linterna_magica.texi:515
 #, no-wrap
 msgid "no"
 msgstr "no"
 
 #. type: item
-#: linterna_magica.texi:502
+#: linterna_magica.texi:516
 #, no-wrap
 msgid "never"
 msgstr "never"
 
-#. type: item
-#: linterna_magica.texi:503
-#, no-wrap
-msgid "false"
-msgstr "false"
-
 #. type: table
-#: linterna_magica.texi:506
+#: linterna_magica.texi:520
 msgid "Do not check"
 msgstr "Без проверка"
 
 #. type: item
-#: linterna_magica.texi:510
+#: linterna_magica.texi:524
 #, no-wrap
 msgid "priority"
 msgstr "priority"
 
 #. type: table
-#: linterna_magica.texi:515
+#: linterna_magica.texi:529
 msgid ""
 "This options determines how objects found by Linterna address@hidden "
 "should be played. You can set multiple values separated by ``,'', without "
@@ -1166,24 +1197,24 @@
 "кавичките).  Стандартната стойност е „html5, self, plugin“."
 
 #. type: item
-#: linterna_magica.texi:518 linterna_magica.texi:550
+#: linterna_magica.texi:532 linterna_magica.texi:564
 #, no-wrap
 msgid "self"
 msgstr "self"
 
 #. type: table
-#: linterna_magica.texi:520
+#: linterna_magica.texi:534
 msgid "Replace flash and HTML5 objects"
 msgstr "Замяна на флаш и HTML5 обектите"
 
 #. type: item
-#: linterna_magica.texi:521 linterna_magica.texi:553
+#: linterna_magica.texi:535 linterna_magica.texi:567
 #, no-wrap
 msgid "plugin"
 msgstr "plugin"
 
 #. type: table
-#: linterna_magica.texi:524
+#: linterna_magica.texi:538
 msgid ""
 "Use Gnash/Swfdec. A button next to the flash object switches to Linterna "
 "address@hidden"
@@ -1191,13 +1222,13 @@
 "Ще се използва Gnash/Swfdec. Бутон след флаш обекта включва Linterna Mágica."
 
 #. type: item
-#: linterna_magica.texi:525
+#: linterna_magica.texi:539
 #, no-wrap
 msgid "html5"
 msgstr "html5"
 
 #. type: table
-#: linterna_magica.texi:528
+#: linterna_magica.texi:542
 msgid ""
 "Use HTML5 player if the site provides one. A button next to the player "
 "switches to Linterna address@hidden"
@@ -1206,13 +1237,13 @@
 "възможност. Бутон след HTML5 елемента включва Linterna Mágica."
 
 #. type: item
-#: linterna_magica.texi:531
+#: linterna_magica.texi:545
 #, no-wrap
 msgid "autostart"
 msgstr "autostart"
 
 #. type: table
-#: linterna_magica.texi:534
+#: linterna_magica.texi:548
 msgid ""
 "Auto start playback. If more than one object is found, only the first one "
 "will start playback."
@@ -1221,113 +1252,113 @@
 "изпълнение."
 
 #. type: item
-#: linterna_magica.texi:537
+#: linterna_magica.texi:551
 #, no-wrap
 msgid "on/enabled/true"
 msgstr "on/enabled/true"
 
 #. type: table
-#: linterna_magica.texi:539
+#: linterna_magica.texi:553
 msgid "Auto start the clip (default)"
 msgstr "Автоматично изпълнение на клипа (стандартно)"
 
 #. type: item
-#: linterna_magica.texi:540
+#: linterna_magica.texi:554
 #, no-wrap
 msgid "off/disabled/false"
 msgstr "off/disabled/false"
 
 #. type: table
-#: linterna_magica.texi:542
+#: linterna_magica.texi:556
 msgid "Do not start the clip"
 msgstr "Без автоматично изпълнение"
 
 #. type: item
-#: linterna_magica.texi:545
+#: linterna_magica.texi:559
 #, no-wrap
 msgid "controls"
 msgstr "controls"
 
 #. type: table
-#: linterna_magica.texi:547
+#: linterna_magica.texi:561
 msgid "Buttons for controlling the video"
 msgstr "Бутони за управление на клипа"
 
 #. type: table
-#: linterna_magica.texi:552
+#: linterna_magica.texi:566
 msgid "Use controls provided by Linterna address@hidden (default)"
 msgstr "Използване на бутоните на Linterna Mágica (стандартно)"
 
 #. type: table
-#: linterna_magica.texi:555
+#: linterna_magica.texi:569
 msgid "Use controls provided by the video plugin."
 msgstr "Използване на бутоните на приставката за видео клипове."
 
 #. type: item
-#: linterna_magica.texi:558
+#: linterna_magica.texi:572
 #, no-wrap
 msgid "locale"
 msgstr "locale"
 
 #. type: table
-#: linterna_magica.texi:560
+#: linterna_magica.texi:574
 msgid "Interface language"
 msgstr "Език на интерфейса"
 
 #. type: item
-#: linterna_magica.texi:563
+#: linterna_magica.texi:577
 #, no-wrap
 msgid "auto"
 msgstr "auto"
 
 #. type: table
-#: linterna_magica.texi:566
+#: linterna_magica.texi:580
 msgid ""
 "Use the language of the browser interface if translation is available "
 "(default)"
 msgstr "Да се използва езикът на браузъра, ако има наличен превод (стандартно)"
 
 #. type: item
-#: linterna_magica.texi:567
+#: linterna_magica.texi:581
 #, no-wrap
 msgid "<lc>_<CC>"
 msgstr "<lc>_<CC>"
 
 #. type: table
-#: linterna_magica.texi:569
+#: linterna_magica.texi:583
 msgid "Set language to lc_CC, where"
 msgstr "Да се използва език lc_CC, където"
 
 #. type: item
-#: linterna_magica.texi:572
+#: linterna_magica.texi:586
 #, no-wrap
 msgid "<lc>"
 msgstr "<lc>"
 
 #. type: table
-#: linterna_magica.texi:574
+#: linterna_magica.texi:588
 msgid "language code (lowercase)"
 msgstr "код на езика (малки букви)"
 
 #. type: item
-#: linterna_magica.texi:575
+#: linterna_magica.texi:589
 #, no-wrap
 msgid "<CC>"
 msgstr "<CC>"
 
 #. type: table
-#: linterna_magica.texi:578
+#: linterna_magica.texi:592
 msgid "country code (uppercase)  Example: en_US, en_UK, bg_BG"
 msgstr "код на държавата (главни букви) Пример: en_US, en_UK, bg_BG"
 
 #. type: item
-#: linterna_magica.texi:583
+#: linterna_magica.texi:597
 #, no-wrap
 msgid "cookies"
 msgstr "cookies"
 
 #. type: table
-#: linterna_magica.texi:585
+#: linterna_magica.texi:599
 msgid ""
 "The way cookies are processed. @xref{Disadvantages of the cookies hack}."
 msgstr ""
@@ -1335,35 +1366,35 @@
 "с бисквитките}."
 
 #. type: item
-#: linterna_magica.texi:588
+#: linterna_magica.texi:602
 #, no-wrap
 msgid "delete"
 msgstr "delete"
 
 #. type: table
-#: linterna_magica.texi:590
+#: linterna_magica.texi:604
 msgid "Just delete the cookies."
 msgstr "Бисквитките ще бъдат изтрити."
 
 #. type: item
-#: linterna_magica.texi:591
+#: linterna_magica.texi:605
 #, no-wrap
 msgid "restore"
 msgstr "restore"
 
 #. type: table
-#: linterna_magica.texi:593
+#: linterna_magica.texi:607
 msgid "Extract and restore cookies."
 msgstr "Извличане и възстановяване на бисквитки."
 
 #. type: item
-#: linterna_magica.texi:596
+#: linterna_magica.texi:610
 #, no-wrap
 msgid "wait_xhr"
 msgstr "wait_xhr"
 
 #. type: table
-#: linterna_magica.texi:600
+#: linterna_magica.texi:614
 msgid ""
 "Timeout before background processing (XHR) starts in milliseconds. 1 s = "
 "1000 ms. If you have problems increase the value. @xref{Timed-out background "
@@ -1374,46 +1405,46 @@
 "{Забавяне на заявките на заден план}."
 
 #. type: item
-#: linterna_magica.texi:603
+#: linterna_magica.texi:617
 #, no-wrap
 msgid "off/no/disabled/false/0"
 msgstr "off/no/disabled/false/0"
 
 #. type: table
-#: linterna_magica.texi:605
+#: linterna_magica.texi:619
 msgid "Don't wait (default)"
 msgstr "Да не се изчаква (стандартно)"
 
 #. type: item
-#: linterna_magica.texi:606
+#: linterna_magica.texi:620
 #, no-wrap
 msgid "<integer>"
 msgstr "<цяло число>"
 
 #. type: table
-#: linterna_magica.texi:608
+#: linterna_magica.texi:622
 msgid "Wait for <integer> milliseconds."
 msgstr "Да се изчаква <цяло число> милисекунди."
 
 #. type: item
-#: linterna_magica.texi:611
+#: linterna_magica.texi:625
 #, no-wrap
 msgid "quality"
 msgstr "quality"
 
 #. type: table
-#: linterna_magica.texi:613
+#: linterna_magica.texi:627
 msgid "Preferred video quality."
 msgstr "Предпочитано качество за видео клиповете"
 
 #. type: item
-#: linterna_magica.texi:616
+#: linterna_magica.texi:630
 #, no-wrap
 msgid "low/medium/high"
 msgstr "low/medium/high"
 
 #. type: table
-#: linterna_magica.texi:619
+#: linterna_magica.texi:633
 msgid ""
 "Auto-select a link for low/medium/high from the list of links (default low)"
 msgstr ""
@@ -1421,13 +1452,13 @@
 "най-ниско качество – low)"
 
 #. type: item
-#: linterna_magica.texi:620
+#: linterna_magica.texi:634
 #, no-wrap
 msgid "<number>"
 msgstr "<число>"
 
 #. type: table
-#: linterna_magica.texi:623
+#: linterna_magica.texi:637
 msgid ""
 "Start the <number> link from the list. If not available the highest quality. "
 "Use \"1\" for lowest quality."
@@ -1436,13 +1467,13 @@
 "високо качество, ако липсва. Използвайте „1“ за най-ниско."
 
 #. type: item
-#: linterna_magica.texi:624
+#: linterna_magica.texi:638
 #, no-wrap
 msgid "<number>%"
 msgstr "<число>%"
 
 #. type: table
-#: linterna_magica.texi:627
+#: linterna_magica.texi:641
 msgid ""
 "Start the link that equals to <number>% in the list. Fractions are accepted "
 "- 34.56%, 18,6%."
@@ -1451,25 +1482,25 @@
 "връзки. Възможно е да задавате дробни стойности – 34.56%, 18,6%."
 
 #. type: section
-#: linterna_magica.texi:632 linterna_magica.texi:633
+#: linterna_magica.texi:646 linterna_magica.texi:647
 #, no-wrap
 msgid "Automatic check for updates"
 msgstr "Автоматична проверка за обновления"
 
 #. type: cindex
-#: linterna_magica.texi:634
+#: linterna_magica.texi:648
 #, no-wrap
 msgid "updates, check for"
 msgstr "обновления, проверка за"
 
 #. type: cindex
-#: linterna_magica.texi:635
+#: linterna_magica.texi:649
 #, no-wrap
 msgid "automatic updates, check for"
 msgstr "автоматични обновления, проверка за"
 
 #. type: Plain text
-#: linterna_magica.texi:639
+#: linterna_magica.texi:653
 msgid ""
 "Linterna address@hidden checks for updates every time the configured "
 "interval is reached and at the first and second day after the exact match."
@@ -1479,19 +1510,19 @@
 "съвпадение."
 
 #. type: section
-#: linterna_magica.texi:640 linterna_magica.texi:641
+#: linterna_magica.texi:654 linterna_magica.texi:655
 #, no-wrap
 msgid "Disadvantages of the cookies hack"
 msgstr "Недостатъци на решението с бисквитките"
 
 #. type: cindex
-#: linterna_magica.texi:642
+#: linterna_magica.texi:656
 #, no-wrap
 msgid "cookies, disadvantages"
 msgstr "бисквитки, недостатъци<"
 
 #. type: Plain text
-#: linterna_magica.texi:648
+#: linterna_magica.texi:662
 msgid ""
 "A weird hack to get data from YouTube and Dailymotion without cookies is "
 "used. With cookies the video link data is garbage for Linterna address@hidden"
@@ -1504,7 +1535,7 @@
 "необходима за YouTube и не се използва."
 
 #. type: Plain text
-#: linterna_magica.texi:659
+#: linterna_magica.texi:673
 msgid ""
 "First the cookies are removed by setting their expiration dates in the past. "
 "A request on the background (XMLHttpRequest) for the video page (for example "
@@ -1528,37 +1559,37 @@
 "ще зададе нови стойности на някои от бисквитките чрез заявката на заден план."
 
 #. type: section
-#: linterna_magica.texi:660 linterna_magica.texi:661
+#: linterna_magica.texi:674 linterna_magica.texi:675
 #, no-wrap
 msgid "Timed-out background requests"
 msgstr "Забавяне на заявките на заден план"
 
 #. type: cindex
-#: linterna_magica.texi:662
+#: linterna_magica.texi:676
 #, no-wrap
 msgid "timeout, xhr"
 msgstr "забавяне, xhr"
 
 #. type: cindex
-#: linterna_magica.texi:663
+#: linterna_magica.texi:677
 #, no-wrap
 msgid "delay"
 msgstr "закъснение"
 
 #. type: cindex
-#: linterna_magica.texi:664
+#: linterna_magica.texi:678
 #, no-wrap
 msgid "XHR, delay"
 msgstr "XHR, закъснение"
 
 #. type: cindex
-#: linterna_magica.texi:665
+#: linterna_magica.texi:679
 #, no-wrap
 msgid "background request"
 msgstr "заявка на заден план"
 
 #. type: Plain text
-#: linterna_magica.texi:673
+#: linterna_magica.texi:687
 msgid ""
 "For Dailymotion you could use a timeout option. During the first tests of "
 "this fix there were some problems if the background request was made too "
@@ -1575,7 +1606,7 @@
 "проблеми с Dailymotion, увеличете стойността на „wait_xhr“."
 
 #. type: Plain text
-#: linterna_magica.texi:676
+#: linterna_magica.texi:690
 msgid ""
 "The wait_xhr option is effective for every site that is supported with "
 "background requests."
@@ -1584,19 +1615,19 @@
 "на заден план."
 
 #. type: section
-#: linterna_magica.texi:678 linterna_magica.texi:679
+#: linterna_magica.texi:692 linterna_magica.texi:693
 #, no-wrap
 msgid "Localisation"
 msgstr "Превод на интерфейса"
 
 #. type: cindex
-#: linterna_magica.texi:680
+#: linterna_magica.texi:694
 #, no-wrap
 msgid "localisation"
 msgstr "превод на интерфейса"
 
 #. type: Plain text
-#: linterna_magica.texi:689
+#: linterna_magica.texi:703
 msgid ""
 "In version 0.0.10 translations were split from the main userscript. Every "
 "localisation was a separate userscript with special structure. In version "
@@ -1614,7 +1645,7 @@
 "намерите и на уеб страницата на Linterna address@hidden"
 
 #. type: Plain text
-#: linterna_magica.texi:693
+#: linterna_magica.texi:707
 msgid ""
 "By default Linterna address@hidden tries to use the language of the "
 "browser interface if available. You could also set a custom locale by the "
@@ -1625,7 +1656,7 @@
 "използвате превод по Ваш избор, чрез настройката „locale“."
 
 #. type: Plain text
-#: linterna_magica.texi:696
+#: linterna_magica.texi:710
 msgid ""
 "To build all the localisation userscripts in the top source directory type:"
 msgstr ""
@@ -1633,22 +1664,22 @@
 "изходния код въведете:"
 
 #. type: samp{#1}
-#: linterna_magica.texi:698
+#: linterna_magica.texi:712
 msgid "make locales"
 msgstr "make locales"
 
 #. type: Plain text
-#: linterna_magica.texi:702
+#: linterna_magica.texi:716
 msgid "You could also build the scripts from the @file{po} directory:"
 msgstr "Също така, можете да компилирате скриптовете от папката @file{po}:"
 
 #. type: Plain text
-#: linterna_magica.texi:705
+#: linterna_magica.texi:719
 msgid "@samp{cd address@hidden @indent @samp{make}"
 msgstr "@samp{cd address@hidden @indent @samp{make}"
 
 #. type: Plain text
-#: linterna_magica.texi:709
+#: linterna_magica.texi:723
 msgid ""
 "Compilation of userscript for single language is possible. To do so, type:"
 msgstr ""
@@ -1656,14 +1687,14 @@
 "го направите въведете:"
 
 #. type: Plain text
-#: linterna_magica.texi:712
+#: linterna_magica.texi:726
 msgid ""
 "@samp{cd address@hidden @indent @samp{make address@hidden"
 msgstr ""
 "@samp{cd address@hidden @indent @samp{make address@hidden"
 
 #. type: Plain text
-#: linterna_magica.texi:716
+#: linterna_magica.texi:730
 msgid ""
 "Replace @var{langcode} in the example above with the code of the desired "
 "supported language."
@@ -1671,25 +1702,25 @@
 "Заменете @var{langcode} в горния пример с кода на желания поддържан език."
 
 #. type: cindex
-#: linterna_magica.texi:719
+#: linterna_magica.texi:733
 #, no-wrap
 msgid "exclude site"
 msgstr "изключване на уеб страница"
 
 #. type: cindex
-#: linterna_magica.texi:720
+#: linterna_magica.texi:734
 #, no-wrap
 msgid "include site"
 msgstr "включване на уеб страница"
 
 #. type: cindex
-#: linterna_magica.texi:721
+#: linterna_magica.texi:735
 #, no-wrap
 msgid "stop execution on specific site"
 msgstr "спиране на изпълнението на определена уеб страница"
 
 #. type: Plain text
-#: linterna_magica.texi:728
+#: linterna_magica.texi:742
 msgid ""
 "By default Linterna address@hidden will run on every site. This is "
 "something that you might not like. You can configure it to run only on some "
@@ -1704,7 +1735,7 @@
 "фрагмент за всяка страница, на която искате да използвате Linterna Mágica:"
 
 #. type: example
-#: linterna_magica.texi:734
+#: linterna_magica.texi:748
 #, no-wrap
 msgid ""
 " // @@include http://example.org\n";
@@ -1720,13 +1751,13 @@
 "\n"
 
 #. type: cindex
-#: linterna_magica.texi:739
+#: linterna_magica.texi:753
 #, no-wrap
 msgid "support"
 msgstr "поддържани"
 
 #. type: Plain text
-#: linterna_magica.texi:743
+#: linterna_magica.texi:757
 msgid ""
 "Linterna address@hidden explicitly supports only free software browsers "
 "and plugins."
@@ -1735,100 +1766,100 @@
 "са свободен софтуер."
 
 #. type: menuentry
-#: linterna_magica.texi:749
+#: linterna_magica.texi:763
 msgid "Supported browsers::"
 msgstr "Поддържани браузъри::"
 
 #. type: menuentry
-#: linterna_magica.texi:749
+#: linterna_magica.texi:763
 msgid "Supported plugins::"
 msgstr "Поддържани приставки::"
 
 #. type: menuentry
-#: linterna_magica.texi:749
+#: linterna_magica.texi:763
 msgid "Supported websites::"
 msgstr "Поддържани уеб страници::"
 
 #. type: section
-#: linterna_magica.texi:749 linterna_magica.texi:833 linterna_magica.texi:834
+#: linterna_magica.texi:763 linterna_magica.texi:847 linterna_magica.texi:848
 #, no-wrap
 msgid "Not supported"
 msgstr "Какво не се поддържа?"
 
 #. type: section
-#: linterna_magica.texi:751 linterna_magica.texi:752
+#: linterna_magica.texi:765 linterna_magica.texi:766
 #, no-wrap
 msgid "Supported browsers"
 msgstr "Поддържани браузъри"
 
 #. type: cindex
-#: linterna_magica.texi:753
+#: linterna_magica.texi:767
 #, no-wrap
 msgid "browser list"
 msgstr "браузъри, списък"
 
 #. type: cindex
-#: linterna_magica.texi:754
+#: linterna_magica.texi:768
 #, no-wrap
 msgid "supported browsers"
 msgstr "поддържани браузъри"
 
 #. type: cindex
-#: linterna_magica.texi:755
+#: linterna_magica.texi:769
 #, no-wrap
 msgid "browsers"
 msgstr "браузъри"
 
 #. type: cindex
-#: linterna_magica.texi:756
+#: linterna_magica.texi:770
 #, no-wrap
 msgid "Epiphany, browser"
 msgstr "Epiphany, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:757
+#: linterna_magica.texi:771
 #, no-wrap
 msgid "IceCat, browser"
 msgstr "IceCat, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:758
+#: linterna_magica.texi:772
 #, no-wrap
 msgid "GNU IceCat, browser"
 msgstr "GNU IceCat, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:759
+#: linterna_magica.texi:773
 #, no-wrap
 msgid "Iceweasel, browser"
 msgstr "Iceweasel, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:760
+#: linterna_magica.texi:774
 #, no-wrap
 msgid "Web browser, browser"
 msgstr "Web browser, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:761
+#: linterna_magica.texi:775
 #, no-wrap
 msgid "Abrowser, browser"
 msgstr "Abrowser, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:762
+#: linterna_magica.texi:776
 #, no-wrap
 msgid "Firefox, browser"
 msgstr "Firefox, браузър"
 
 #. type: cindex
-#: linterna_magica.texi:763
+#: linterna_magica.texi:777
 #, no-wrap
 msgid "Midori, browser"
 msgstr "Midori, браузър"
 
 #. type: Plain text
-#: linterna_magica.texi:767
+#: linterna_magica.texi:781
 msgid ""
 "In this release (@value{VERSION}) Linterna address@hidden is tested and "
 "kept up to date with the following browsers:"
@@ -1837,13 +1868,13 @@
 "поддържат следните браузъри:"
 
 #. type: item
-#: linterna_magica.texi:769
+#: linterna_magica.texi:783
 #, no-wrap
 msgid "Epiphany"
 msgstr "Epiphany"
 
 #. type: table
-#: linterna_magica.texi:772
+#: linterna_magica.texi:786
 msgid ""
 "Epiphany versions older than 2.30 might have problems with Greasemonkey."
 msgstr ""
@@ -1851,13 +1882,13 @@
 "Greasemonkey."
 
 #. type: item
-#: linterna_magica.texi:773
+#: linterna_magica.texi:787
 #, no-wrap
 msgid "Free software versions of Firefox"
 msgstr "Свободни версии на Firefox"
 
 #. type: table
-#: linterna_magica.texi:777
+#: linterna_magica.texi:791
 msgid ""
 "Free software versions of Firefox that support the Greasemonkey extension "
 "should work. Only GNU IceCat, Web Browser/ABrowser and Iceweasel are tested."
@@ -1867,61 +1898,61 @@
 "Browser/ABrowser и Iceweasel."
 
 #. type: item
-#: linterna_magica.texi:778
+#: linterna_magica.texi:792
 #, no-wrap
 msgid "Midori"
 msgstr "Midori"
 
 #. type: section
-#: linterna_magica.texi:782 linterna_magica.texi:783
+#: linterna_magica.texi:796 linterna_magica.texi:797
 #, no-wrap
 msgid "Supported plugins"
 msgstr "Поддържани приставки"
 
 #. type: cindex
-#: linterna_magica.texi:784
+#: linterna_magica.texi:798
 #, no-wrap
 msgid "plugin list"
 msgstr "приставки, списък"
 
 #. type: cindex
-#: linterna_magica.texi:785
+#: linterna_magica.texi:799
 #, no-wrap
 msgid "supported plugin"
 msgstr "поддържани приставки"
 
 #. type: cindex
-#: linterna_magica.texi:786
+#: linterna_magica.texi:800
 #, no-wrap
 msgid "plugins"
 msgstr "приставки"
 
 #. type: cindex
-#: linterna_magica.texi:787
+#: linterna_magica.texi:801
 #, no-wrap
 msgid "Xine, plugin"
 msgstr "Xine, приставка"
 
 #. type: cindex
-#: linterna_magica.texi:788
+#: linterna_magica.texi:802
 #, no-wrap
 msgid "Totem, plugin"
 msgstr "Totem, приставка"
 
 #. type: cindex
-#: linterna_magica.texi:789
+#: linterna_magica.texi:803
 #, no-wrap
 msgid "VLC, plugin"
 msgstr "VLC, приставка"
 
 #. type: cindex
-#: linterna_magica.texi:790
+#: linterna_magica.texi:804
 #, no-wrap
 msgid "gecko-mediaplayer, plugin"
 msgstr "gecko-mediaplayer, приставка"
 
 #. type: Plain text
-#: linterna_magica.texi:798
+#: linterna_magica.texi:812
 msgid ""
 "Supported video plugins that can handle \"video/flv\" and \"video/mp4\" "
 "should work right away.  Some plugins provide an API which is used in "
@@ -1938,18 +1969,18 @@
 "бутоните ще използвате – от приставката или от Linterna Mágica."
 
 #. type: Plain text
-#: linterna_magica.texi:800
+#: linterna_magica.texi:814
 msgid "These plugins are known to work:"
 msgstr "Linterna Mágica е изпробвана и работи със следните приставки:"
 
 #. type: item
-#: linterna_magica.texi:801
+#: linterna_magica.texi:815
 #, no-wrap
 msgid "Totem plugin"
 msgstr "Totem"
 
 #. type: table
-#: linterna_magica.texi:805
+#: linterna_magica.texi:819
 msgid ""
 "Versions older and equal to 2.30 does not have full API support for web "
 "controls. Newer versions of Totem have been patched and should work."
@@ -1958,24 +1989,24 @@
 "управление на клипа. По-новите версии са поправени и би трябвало да работят."
 
 #. type: item
-#: linterna_magica.texi:805
+#: linterna_magica.texi:819
 #, no-wrap
 msgid "VLC plugin"
 msgstr "VLC"
 
 #. type: table
-#: linterna_magica.texi:807 linterna_magica.texi:814
+#: linterna_magica.texi:821 linterna_magica.texi:828
 msgid "No known problems."
 msgstr "Не са известни проблеми с тази приставка."
 
 #. type: item
-#: linterna_magica.texi:807
+#: linterna_magica.texi:821
 #, no-wrap
 msgid "gecko-mediaplayer plugin"
 msgstr "gecko-mediaplayer"
 
 #. type: table
-#: linterna_magica.texi:812
+#: linterna_magica.texi:826
 msgid ""
 "Note: Have in mind that gecko-mediaplayer depends on mplayer for playback. "
 "Mplayer is free software by itself, but it can load and recommends binary "
@@ -1989,31 +2020,31 @@
 "предоставя изчистена версия на mplayer."
 
 #. type: item
-#: linterna_magica.texi:812
+#: linterna_magica.texi:826
 #, no-wrap
 msgid "Xine plugin"
 msgstr "Xine"
 
 #. type: section
-#: linterna_magica.texi:816 linterna_magica.texi:817
+#: linterna_magica.texi:830 linterna_magica.texi:831
 #, no-wrap
 msgid "Supported websites"
 msgstr "Поддържани уеб страници"
 
 #. type: cindex
-#: linterna_magica.texi:818
+#: linterna_magica.texi:832
 #, no-wrap
 msgid "supported websites"
 msgstr "поддържани уеб страници"
 
 #. type: cindex
-#: linterna_magica.texi:819
+#: linterna_magica.texi:833
 #, no-wrap
 msgid "websites"
 msgstr "уеб страници"
 
 #. type: Plain text
-#: linterna_magica.texi:828
+#: linterna_magica.texi:842
 msgid ""
 "Linterna address@hidden is programmed in such a way that it might work "
 "(and it does) with web sites not specifically tested and supported. This is "
@@ -2031,7 +2062,7 @@
 "извлече видео клипа и т.н."
 
 #. type: Plain text
-#: linterna_magica.texi:832
+#: linterna_magica.texi:846
 msgid ""
 "There are more than 30 web sites, found with random web searches that are "
 "known to work. See the @file{WEBSITES} file for all known working sites and "
@@ -2042,32 +2073,32 @@
 "да видите всички известни работещи страници и по-подробна информация."
 
 #. type: cindex
-#: linterna_magica.texi:835
+#: linterna_magica.texi:849
 #, no-wrap
 msgid "not supported"
 msgstr "неподдържани"
 
 #. type: cindex
-#: linterna_magica.texi:836
+#: linterna_magica.texi:850
 #, no-wrap
 msgid "RTMP"
 msgstr "RTMP"
 
 #. type: cindex
-#: linterna_magica.texi:837
+#: linterna_magica.texi:851
 #, no-wrap
 msgid "proprietary software, not supported"
 msgstr "собственически софтуер, не се поддържа"
 
 #. type: Plain text
-#: linterna_magica.texi:840
+#: linterna_magica.texi:854
 msgid "Web sites that use RTMP to transfer clips @strong{do not} work."
 msgstr ""
 "Уеб страници, които използват RTMP за предаване на видео клиповете @strong"
 "{не} работят."
 
 #. type: Plain text
-#: linterna_magica.texi:845
+#: linterna_magica.texi:859
 msgid ""
 "Web sites that use clips and players from remote site @strong{do not} work. "
 "For example YouTube video placed in a blog or a news article. Since version "
@@ -2081,7 +2112,7 @@
 "клипа."
 
 #. type: Plain text
-#: linterna_magica.texi:848
+#: linterna_magica.texi:862
 msgid ""
 "Linterna address@hidden is not working with specific browser or plugin "
 "or operating system. Is it possible to support it?"
@@ -2090,7 +2121,7 @@
 "работи с Linterna Mágica. Възможно ли е да бъдат поддържани?"
 
 #. type: Plain text
-#: linterna_magica.texi:853
+#: linterna_magica.texi:867
 msgid ""
 "Only free software will be supported. Explicit support for non-free software "
 "will not be provided. If Linterna address@hidden is working with non-"
@@ -2101,19 +2132,19 @@
 "несвободни програми, Вие сигурно сте голям „късметлия“. Да, това е сарказъм!"
 
 #. type: cindex
-#: linterna_magica.texi:856
+#: linterna_magica.texi:870
 #, no-wrap
 msgid "bugs, reporting"
 msgstr "грешки, докладване"
 
 #. type: cindex
-#: linterna_magica.texi:857
+#: linterna_magica.texi:871
 #, no-wrap
 msgid "reporting bugs"
 msgstr "докладване на грешки"
 
 #. type: Plain text
-#: linterna_magica.texi:864
+#: linterna_magica.texi:878
 msgid ""
 "If you encounter bugs, or have suggestions of any kind, please report them "
 "at Linterna address@hidden project page at Savannah @url{https://";
@@ -2126,66 +2157,66 @@
 "„Tech Support Manager“/„Support“ вече не се използва."
 
 #. type: cindex
-#: linterna_magica.texi:867
+#: linterna_magica.texi:881
 #, no-wrap
 msgid "copying, copying this manual"
 msgstr "копиране, разпространение на това ръководство"
 
 #. type: cindex
-#: linterna_magica.texi:868
+#: linterna_magica.texi:882
 #, no-wrap
 msgid "license, license of this manual"
 msgstr "лиценз, лиценз на ръководството"
 
 #. type: cindex
-#: linterna_magica.texi:869
+#: linterna_magica.texi:883
 #, no-wrap
 msgid "gpl, license"
 msgstr "gpl, лиценз"
 
 #. type: cindex
-#: linterna_magica.texi:870
+#: linterna_magica.texi:884
 #, no-wrap
 msgid "fdl, license"
 msgstr "fdl, лиценз"
 
 #. type: menuentry
-#: linterna_magica.texi:875
+#: linterna_magica.texi:889
 msgid "GNU General Public License::"
 msgstr "GNU General Public License::"
 
 #. type: appendixsec
-#: linterna_magica.texi:875 linterna_magica.texi:882 linterna_magica.texi:883
+#: linterna_magica.texi:889 linterna_magica.texi:896 linterna_magica.texi:897
 #, no-wrap
 msgid "GNU Free Documentation License"
 msgstr "GNU Free Documentation License"
 
 #. type: appendixsec
-#: linterna_magica.texi:877 linterna_magica.texi:878
+#: linterna_magica.texi:891 linterna_magica.texi:892
 #, no-wrap
 msgid "GNU General Public License"
 msgstr "GNU General Public License"
 
 #. type: cindex
-#: linterna_magica.texi:879
+#: linterna_magica.texi:893
 #, no-wrap
 msgid "gpl, gnu general public license"
 msgstr "gpl, gnu general public license"
 
 #. type: include
-#: linterna_magica.texi:880
+#: linterna_magica.texi:894
 #, no-wrap
 msgid "gpl.texi"
 msgstr "gpl.texi"
 
 #. type: cindex
-#: linterna_magica.texi:884
+#: linterna_magica.texi:898
 #, no-wrap
 msgid "fdl, gnu free documentation license"
 msgstr "fdl, gnu free documentation license"
 
 #. type: include
-#: linterna_magica.texi:885
+#: linterna_magica.texi:899
 #, no-wrap
 msgid "fdl.texi"
 msgstr "fdl.texi"

Modified: trunk/doc/version.texi
===================================================================
--- trunk/doc/version.texi      2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/doc/version.texi      2012-08-17 10:00:16 UTC (rev 305)
@@ -31,5 +31,5 @@
 
 @set VERSION svn-trunk
 @set EDITION svn-trunk
address@hidden UPDATED 10 June 2012
address@hidden UPDATED-MONTH June
address@hidden UPDATED 17 August 2012
address@hidden UPDATED-MONTH August

Modified: trunk/src/lm_about.js
===================================================================
--- trunk/src/lm_about.js       2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_about.js       2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2010, 2011  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 //  Copyright (C) 2010  Anton Katsarov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
@@ -163,9 +163,6 @@
     var updates = document.
        getElementById("linterna-magica-update-info-box-"+id);
 
-    var local_log = 
-       document.getElementById("linterna-magica-web-log-clone-"+id);
-
     if (about)
     {
        // Ensure that the updates box is hidden.
@@ -174,12 +171,6 @@
            updates.style.setProperty("display","none", "important");
        }
 
-       // Ensure that the web log  box is hidden/removed.
-       if (local_log)
-       {
-           obj.parentNode.removeChild(local_log);
-       }
-
        if(about.style.display)
        {
            about.style.removeProperty("display");

Modified: trunk/src/lm_check_for_updates.js
===================================================================
--- trunk/src/lm_check_for_updates.js   2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_check_for_updates.js   2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2011  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2011, 2012 Ivaylo Valkov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
 //  can redistribute it and/or modify it under the terms of the GNU
@@ -257,9 +257,6 @@
     var about = document.
        getElementById("linterna-magica-about-box-"+id);
 
-    var local_log = 
-       document.getElementById("linterna-magica-web-log-clone-"+id);
-
     if (updates)
     {
        // Ensure that the about box is hidden.
@@ -268,12 +265,6 @@
            about.style.setProperty("display","none", "important");
        }
 
-       // Ensure that the web log  box is hidden/removed.
-       if (local_log)
-       {
-           obj.parentNode.removeChild(local_log);
-       }
-
        if (updates.style.display)
        {
            updates.style.removeProperty("display");

Modified: trunk/src/lm_config_options.js
===================================================================
--- trunk/src/lm_config_options.js      2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_config_options.js      2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2010, 2011  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 //  Copyright (C) 2010  Anton Katsarov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
@@ -331,3 +331,17 @@
 
     this.preferred_hd_quality = set_quality_to;
 }
+
+LinternaMagica.prototype.set_web_log_expand = function(web_log_expand)
+{
+    if (/true/i.test(web_log_expand))
+    {
+       web_log_expand = true;
+    }
+    else if (/false/i.test(web_log_expand))
+    {
+       web_log_expand = false;
+    }
+
+    this.web_log_expand = web_log_expand;
+}

Modified: trunk/src/lm_constructors.js
===================================================================
--- trunk/src/lm_constructors.js        2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_constructors.js        2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2010, 2011  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 //  Copyright (C) 2010  Anton Katsarov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
@@ -53,6 +53,8 @@
     // Could be a string, but we need integer.
     this.debug_level = parseInt(params.debug);
 
+    this.set_web_log_expand(params.web_log_expand);
+
     if (this.debug_level && params.log_to == "web")
     {
        var logger = this.create_web_logger();
@@ -71,9 +73,6 @@
        else
        {
            body.appendChild(logger);
-           // With fixed position this is not needed
-           // var bottom =parseInt(body.clientHeight|| body.offsetHeight)-30;
-           // logger.style.setProperty("top", bottom+"px", "important");
        }
     }
     else

Modified: trunk/src/lm_create_video_object.js
===================================================================
--- trunk/src/lm_create_video_object.js 2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_create_video_object.js 2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2010, 2011, 2012  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 //  Copyright (C) 2010  Anton Katsarov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
@@ -161,21 +161,17 @@
     // Log to web
     if (this.debug_level && this.log_to == "web")
     {
-       var log_link  =  this.create_web_log_link(id);
+       var log_link  =  this.create_web_log_link();
 
-       var log_link_click_function = function(ev)
-       {
-           var el = this;
-           self.show_or_hide_web_log.apply(self, [ev, el]);
-       };
+       log_link.setAttribute("class", 
+                             "linterna-magica-web-log-link");
+       log_link.setAttribute("id",
+                             "linterna-magica-web-log-link-"+id);
 
        log_link.addEventListener("click",
-                                 log_link_click_function, false);
+                                 this.show_or_hide_web_log, false);
 
        header.appendChild(log_link);
-       // Hide the web log, so it is accessible only from the interface.
-       var log = document.getElementById("linterna-magica-web-log");
-       log.style.setProperty("display","none", "important");
     }
 
     object_tag.setAttribute("width", object_data.width);

Modified: trunk/src/lm_init_options.js
===================================================================
--- trunk/src/lm_init_options.js        2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_init_options.js        2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2010, 2011  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 //  Copyright (C) 2010  Anton Katsarov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
@@ -38,6 +38,10 @@
        // web: Print messages in the web page (default)
        // console: Use the debugging console of the browser
        "log_to": "web",
+       // Should the web logger be automatically expanded by default
+       // false: No (default)
+       // true: Yes
+       "web_log_expand": false,
        // Should Linterna  Mágica automatically check and notify for
        // updates.
        // <time><type>: Check at interval. (default 3w)

Modified: trunk/src/lm_log.js
===================================================================
--- trunk/src/lm_log.js 2012-08-14 14:10:50 UTC (rev 304)
+++ trunk/src/lm_log.js 2012-08-17 10:00:16 UTC (rev 305)
@@ -3,7 +3,7 @@
 //
 //  This file is part of Linterna Mágica
 //
-//  Copyright (C) 2010, 2011  Ivaylo Valkov <address@hidden>
+//  Copyright (C) 2010, 2011, 2012 Ivaylo Valkov <address@hidden>
 //  Copyright (C) 2010  Anton Katsarov <address@hidden>
 //
 //  The JavaScript code in this page (or file) is free software: you
@@ -130,11 +130,6 @@
     var logger = document.createElement("div");
     logger.setAttribute("id", "linterna-magica-web-log");
     logger.setAttribute("class", "linterna-magica-web-log");
-    // Make it always visible. Hide it when vide object is created.
-    // This way the web log will be visible even when o objects are
-    // found. This will be usefull to report not working sites. In
-    // other words keep tis commented.
-    // logger.style.setProperty("display","none", "important");
     
     if (!logger)
     {
@@ -143,183 +138,229 @@
        return null;
     }
 
+    var debug_button = document.createElement("p");
+    debug_button.setAttribute('class', 
'linterna-magica-web-log-debug-button-wrap');
+    debug_button.setAttribute('id', 
'linterna-magica-web-log-debug-button-wrap');
+
+    var logo = this.create_web_log_link();
+    logo.textContent = '';
+    logo.setAttribute('class',
+                     'linterna-magica-web-log-debug-button');
+    
+    debug_button.appendChild(logo);
+
+    logo.addEventListener('click', this.show_or_hide_web_log, true);
+
+    var bug = document.createElement('span');
+    bug.setAttribute('class', 'linterna-magica-web-log-debug-button-bug');
+
+    logo.appendChild(bug);
+
+    var close = this.create_web_log_close_link();
+    close.setAttribute('class',
+                      'linterna-magica-web-log-debug-button-close');
+
+    debug_button.appendChild(close);
+
+    close.addEventListener('click', this.remove_web_log, true);
+
+    document.body.appendChild(debug_button);
+
     var header = document.createElement("div");
     header.setAttribute("class",
                        "linterna-magica-web-log-header");
+    header.setAttribute('title', this._('Double-click to change the size'));
 
     var p = document.createElement("p");
 
+    var bug_header = this.create_web_log_link();
+
+    bug_header.setAttribute("class", 
+                         "linterna-magica-web-log-link "+
+                          " linterna-magica-web-log-left-buttons");
+    bug_header.setAttribute('title', this._('Click to change the size'));
+
+    bug_header.addEventListener('click',this.change_web_log_height, false);
+
+    p.appendChild(bug_header);
+
     var txt = document.createTextNode(this._(
        "Linterna Mágica error and debug messages"));
 
     p.appendChild(txt);
     header.appendChild(p);
 
-    var close = document.createElement("a");
-    close.textContent="x";
-    close.setAttribute("href", "#");
-    close.setAttribute("title", this._("Remove log"));
+    var close = this.create_web_log_close_link();
+   
     p.appendChild(close);
     
-    var close_click_function =  function(ev)
-    {
-       ev.preventDefault();
-       // The entire web log
-       var log = this.parentNode.parentNode.parentNode;
-       log.parentNode.removeChild(log);
-    };
+    close.addEventListener("click", this.remove_web_log, false);
 
-    close.addEventListener("click", close_click_function, false);
-
-    var show_hide_log = document.createElement("a");
-    show_hide_log.textContent="-";
-    show_hide_log.setAttribute("href", "#");
-    show_hide_log.setAttribute("title", this._("Show/hide debug messages"));
-    show_hide_log.setAttribute("class", 
"linterna-magica-web-log-show-hide-body");
-    p.appendChild(show_hide_log);
+    var collapse_log = document.createElement("a");
+    collapse_log.textContent="-";
+    collapse_log.setAttribute("href", "#");
+    collapse_log.setAttribute("title", this._("Hide debug messages"));
+    collapse_log.setAttribute("class", "linterna-magica-web-log-collapse "+
+                             " linterna-magica-web-log-right-buttons");
+    p.appendChild(collapse_log);
     
-    var show_hide_log_click_function = function(ev)
-    {
-       ev.preventDefault();
-       // The body of the log
-       var b = this.parentNode.
-           parentNode.nextSibling;
-       var p = b.parentNode;
-       var t = parseInt(p.style.getPropertyValue("top"));
+    collapse_log.addEventListener("click",
+                                  this.show_or_hide_web_log, false);
 
-       if(b.style.display)
-       {
-           b.style.removeProperty("display");
-           p.style.setProperty("height", "250px", "important");
-           p.style.setProperty("top", (t-226)+"px", "important");
-           b.style.setProperty("overflow", "auto", "important");
-           p.style.setProperty("overflow", "visible", "important");
-       }
-       else
-       {
-           b.style.setProperty("display", "none", "important");
-           // Only the header is visible
-           p.style.setProperty("height", "24px", "important");
-           p.style.setProperty("overflow", "hidden", "important");
-           p.style.setProperty("top", (t+226)+"px", "important");
-       }
-    };
-
-    show_hide_log.addEventListener("click",
-                                  show_hide_log_click_function, false);
+    header.addEventListener('dblclick',this.change_web_log_height, false);
     
-    
     logger.appendChild(header);
 
     var body  = document.createElement("div");
     body.setAttribute("id", "linterna-magica-web-log-messages");
     body.setAttribute("class", "linterna-magica-web-log-messages");
-    body.style.setProperty("display", "none", "important");
+    body.setAttribute('title',
+                     this._("Ctrl+double-click to select all messages"));
 
-    logger.style.setProperty("height","24px", "important");
-    logger.style.setProperty("overflow","hidden", "important");
+    var self = this;
+    var body_click_function = function(ev)
+    {
+       var el = this;
+       self.select_all_text_in_element.apply(self, [ev, el]);
+    };
 
+    body.addEventListener('dblclick',body_click_function, true);
+
     logger.appendChild(body);
 
     // We want direct access to the elemtn holding the messages inside
     // LinternaMagica
     this.logger = body;
+    this.logger_with_header = logger;
 
+    if (this.web_log_expand)
+    {
+       debug_button.style.setProperty("display", "none", "important");
+       logger.style.removeProperty("display");
+    }
+    else
+    {
+       logger.style.setProperty("display", "none", "important");
+       debug_button.style.removeProperty("display");
+    }
+
     return logger;
 }
 
 // The button/link in the header making the web log element visible
-LinternaMagica.prototype.create_web_log_link = function(id)
+LinternaMagica.prototype.create_web_log_link = function()
 {
     var log_link = document.createElement("a");
 
     log_link.setAttribute("title",
                          this._("Linterna Mágica error and debug messages"));
     log_link.setAttribute("href", "#");
-    log_link.setAttribute("class", "linterna-magica-web-log-link");
-    log_link.setAttribute("id",  "linterna-magica-web-log-link-"+id);
     log_link.textContent = this._("Debug messages");
 
     return log_link;
 }
 
+LinternaMagica.prototype.create_web_log_close_link = function()
+{
+    var close = document.createElement("a");
+    close.textContent="x";
+    close.setAttribute("href", "#");
+    close.setAttribute("class", "linterna-magica-web-log-close "+
+                      " linterna-magica-web-log-right-buttons");
+    close.setAttribute("title", this._("Remove log"));
+
+    return close;
+}
+
 // Show or hide the web log
 LinternaMagica.prototype.show_or_hide_web_log = function(event, element)
 {
     event.preventDefault();
 
-    // Get the element by Id. Finding the object by tag name is not
-    // good idea when there are other objects in the header or in the
-    // linterna-magica-<id> container.
-    var id = element.getAttribute("id");
-    // linterna-magica-logo-<integer>
-    id = id.split("-");
-    id = id[id.length-1];
+    var logger = document.getElementById('linterna-magica-web-log');
+    var debug_button = document.
+       getElementById('linterna-magica-web-log-debug-button-wrap');
 
-    var log = document.getElementById("linterna-magica-web-log");
+    if (!logger || !debug_button)
+    {
+       return null;
+    }
 
-    // We have one log object for the entire LinternaMagica object.
-    // On click event from the interface it is cloned/copied and
-    // inserted in the linterna-magica-<id> container. Instead of
-    // hiding it is removed. On next click it is copied again. This
-    // way new messages from the log object will be visible.
-    var local_log = log.cloneNode(true);
+    var visible_logger = logger.style.getPropertyValue('display');
+    
+    if (visible_logger)
+    {
+       debug_button.style.setProperty("display", "none", "important");
+       logger.style.removeProperty("display");
+    }
+    else
+    {
+       logger.style.setProperty("display", "none", "important");
+       debug_button.style.removeProperty("display");
+    }
+}
 
-    var obj =  document.getElementById("linterna-magica-video-object-"+id);
+// Remove the web log from the page
+LinternaMagica.prototype.remove_web_log = function(event, element)
+{
+    var logger = document.getElementById('linterna-magica-web-log');
+    var debug_button = document.
+       getElementById('linterna-magica-web-log-debug-button-wrap');
 
-    local_log.setAttribute("id","linterna-magica-web-log-clone-"+id);
+    if (!logger || !debug_button)
+    {
+       return null;
+    }
 
-    // The entire log 
-    local_log.setAttribute("class", "linterna-magica-web-log-clone");
-    // The header
-    local_log.firstChild.
-       setAttribute("class","linterna-magica-web-log-clone-header");
-    // Body 
-    local_log.lastChild.style.removeProperty("display");
-    local_log.lastChild.setAttribute("class", "linterna-magica-web-"+
-                                    "log-clone-messages");
+    debug_button.parentNode.removeChild(debug_button);
+    logger.parentNode.removeChild(logger);
 
-    local_log.style.setProperty("width", 
-                               obj.style.getPropertyValue("width"),
-                               "important");
-    local_log.style.setProperty("height", 
-                               obj.style.getPropertyValue("height"),
-                               "important");
+    var log_buttons = 
document.querySelectorAll('.linterna-magica-web-log-link');
 
-    local_log.style.setProperty("overflow", "auto", "important");
+    for(var i=0, l=log_buttons.length; i<l; i++)
+    {
+       var link = log_buttons[i];
+       link.parentNode.removeChild(link);
+    }
+}
 
-    var about = document.getElementById("linterna-magica-about-box-"+id);
-    
-    var updates = document.
-       getElementById("linterna-magica-update-info-box-"+id);
+LinternaMagica.prototype.change_web_log_height = function(event, element)
+{
+    var logger = document.getElementById('linterna-magica-web-log');
+    var body = document.getElementById('linterna-magica-web-log-messages');
+    if(!logger || !body)
+    {
+       return null;
+    }
 
-    if (local_log)
+    var is_max = logger.style.getPropertyValue('height');
+
+    if (is_max)
     {
-       // Ensure that the updates box is hidden.
-       if (updates && !updates.style.display)
-       {
-           updates.style.setProperty("display","none", "important");
-       }
+       logger.style.removeProperty('height');
+       body.style.removeProperty('height');
 
-       // Ensure that the about box is hidden.
-       if (about && !about.style.display)
-       {
-           about.style.setProperty("display","none", "important");
-       }
+    }
+    else
+    {
+       logger.style.setProperty('height', '95%', 'important');
+       body.style.setProperty('height', '95%', 'important');
+    }
+}
 
-       if(local_log.style.display &&
-          !document.getElementById("linterna-magica-web-log-clone-"+id))
-       {
-           obj.parentNode.appendChild(local_log);
-           obj.style.setProperty("display","none", "important");
-           local_log.style.removeProperty("display");
-       }
-       else
-       {
-           var log = 
-               document.getElementById("linterna-magica-web-log-clone-"+id);
-           log.parentNode.removeChild(log);
-           obj.style.removeProperty("display");
-       }
+LinternaMagica.prototype.select_all_text_in_element =
+function(event, element)
+{
+    if (!window.getSelection)
+    {
+       this.tripple_click = 0;
+       return null;
     }
+
+    if (event.ctrlKey)
+    {
+       var range = document.createRange();
+       range.selectNode(element);
+       window.getSelection().addRange(range);
+    }
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]