Changeset 1492 for branches

Show
Ignore:
Timestamp:
06/12/06 19:23:42 (2 years ago)
Author:
spetersen
Message:

Another merge to bring the PostgreSQL branch up to SVN change 1491.

Location:
branches/postgresql
Files:
6 modified
1 copied

Legend:

Unmodified
Added
Removed
  • branches/postgresql/cls/update.php

    r1491 r1492  
    2626############################################################################### 
    2727 
    28 require_once ('init.php'); 
    29 rss_require('cls/config.php'); 
    30  
    3128define('PUSH_BOUNDARY', "-------- =_aaaaaaaaaa0"); 
    3229define('ERROR_NOERROR', ""); 
  • branches/postgresql/intl/es.php

    r1484 r1492  
    7272 
    7373 
    74 define ('LBL_HOME_FOLDER','Raiz'); 
     74define ('LBL_HOME_FOLDER','Raíz'); 
    7575define ('LBL_VISIT', '(visitado)'); 
    7676define ('LBL_COLLAPSE','[-] recoger'); 
     
    8383 
    8484define ('LBL_UPDATE_STATUS_OK','OK'); 
    85 define ('LBL_UPDATE_STATUS_CACHED', 'OK (Cache local)'); 
     85define ('LBL_UPDATE_STATUS_CACHED', 'OK (Caché local)'); 
    8686define ('LBL_UPDATE_STATUS_ERROR','ERROR'); 
    87 define ('LBL_UPDATE_H2','Actualizando %d temas...'); 
     87define ('LBL_UPDATE_H2','Actualizando %d canales...'); 
    8888define ('LBL_UPDATE_CACHE_TIMEOUT','No se pudo recuperar (Cache local)'); 
    8989define ('LBL_UPDATE_NOT_MODIFIED','OK (Sin modificaciones)'); 
     
    108108define ('LBL_ADMIN_OK','Aceptar'); 
    109109define ('LBL_ADMIN_CANCEL','Cancelar'); 
    110 //FIXME: 
    111110define ('LBL_ADMIN_LOGOUT','Desconectar'); 
     111define ('LBL_ADMIN_CONFIGURE','Configuración'); 
    112112 
    113113define ('LBL_ADMIN_OPML_IMPORT','Importar'); 
     
    143143define ('LBL_ADMIN_PLUGINS_HEADING_DESCRIPTION','Descripcion'); 
    144144define ('LBL_ADMIN_PLUGINS_HEADING_ACTION','Activo'); 
    145  
    146  
    147  
     145define ('LBL_ADMIN_PLUGINS_HEADING_OPTIONS', 'Opciones'); 
    148146 
    149147define ('LBL_ADMIN_CHANNEL_EDIT_CHANNEL','Editar canal '); 
    150 define ('LBL_ADMIN_CHANNEL_NAME','Titulo:'); 
     148define ('LBL_ADMIN_CHANNEL_NAME','Título:'); 
    151149define ('LBL_ADMIN_CHANNEL_RSS_URL','URL RSS:'); 
    152150define ('LBL_ADMIN_CHANNEL_SITE_URL','URL Sitio:'); 
     
    155153define ('LBL_ADMIN_FOLDER_NAME','Nombre carpeta:'); 
    156154define ('LBL_ADMIN_CHANNEL_PRIVATE','El canal es <strong>privado</strong>, solo lo ven los administradores'); 
    157 define ('LBL_ADMIN_CHANNEL_DELETED','El tema <strong>no esta aprovado</strong>, no ser&aacute; puesto al d&iacute;a m&aacute;s y no ser&aacute; visible en la columna de las canales.'); 
     155define ('LBL_ADMIN_CHANNEL_DELETED','El tema <strong>no esta aprobado</strong>, no ser&aacute; puesto al d&iacute;a m&aacute;s y no ser&aacute; visible en la columna de las canales.'); 
    158156 
    159157define ('LBL_ADMIN_ARE_YOU_SURE', "Est&aacute; seguro de querer eliminar '%s'?"); 
     
    191189        ."Le deseamos un buen d&iacute;a!"); 
    192190         
    193 define ('LBL_ADMIN_ERROR_PRUNING_PERIOD','Periodo de limpieza no valido'); 
     191define ('LBL_ADMIN_ERROR_PRUNING_PERIOD','Periodo de limpieza no v&aacute;lido'); 
    194192define ('LBL_ADMIN_ERROR_NO_PERIOD','Oops, no ha especificado un periodo'); 
    195193define ('LBL_ADMIN_BAD_RSS_URL',"Lo siento, creo que no podemos hacer nada con esta URL: '%s'"); 
     
    219217define ('LBL_STATE_PRIVATE','Privado (Solo los administradores pueden ver estos temas)'); 
    220218define ('LBL_STICKY','Destacado'); 
    221 define ('LBL_DEPRECATED','No aprovado'); 
     219define ('LBL_DEPRECATED','No aprobado'); 
    222220define ('LBL_PRIVATE','Privado'); 
    223221define ('LBL_ADMIN_STATE','Estado:'); 
     
    238236define ('LBL_ADMIN_OPML_IMPORT_FEED_INFO','Importando %s a %s... '); 
    239237 
    240 define ('LBL_TAG_FOLDERS','Categorias'); 
     238define ('LBL_TAG_FOLDERS','Categor&iacute;as'); 
    241239define ('LBL_SIDE_ITEMS','(%d temas)'); 
    242240define ('LBL_SIDE_UNREAD_FEEDS','(%d sin leer en %d feeds)'); 
     
    246244 
    247245// New in 0.5.3: 
    248 define('LBL_ENCLOSURE', 'Recipiente:'); 
    249 define('LBL_DOWNLOAD', 'descargar'); 
    250 define('LBL_PLAY', 'reproducir'); 
    251 define('LBL_FOOTER_LAST_MODIF_NEVER', 'Never'); 
    252 define ('LBL_ADMIN_DASHBOARD','Dashboard'); 
    253  
    254  
    255 define ('LBL_ADMIN_MUST_SET_PASS','<p>No Administrator has been specified yet!</p>' 
    256         .'<p>Please provide an Administrator username and password now!</p>'); 
    257 define ('LBL_USERNAME','Username');      
    258 define ('LBL_PASSWORD','Password'); 
    259 define ('LBL_PASSWORD2','Password (again)'); 
    260 define ('LBL_ADMIN_LOGIN','Please log in'); 
    261 define ('LBL_ADMIN_PASS_NO_MATCH','Passwords do not match!'); 
     246define ('LBL_ENCLOSURE', 'Recipiente:'); 
     247define ('LBL_DOWNLOAD', 'descarga'); 
     248define ('LBL_PLAY', 'reproducir'); 
     249 
     250define ('LBL_MARK_READ', "Marcar como le&iacute;do"); 
     251define ('LBL_MARK_CHANNEL_READ', "Marcar como le&iacute;do"); 
     252define ('LBL_MARK_FOLDER_READ',"Marcar como le&iacute;do"); 
     253 
     254define ('LBL_MARK_CHANNEL_READ_ALL', "Marcar este canal como le&iacute;do"); 
     255define ('LBL_MARK_FOLDER_READ_ALL',"Marcar esta carpeta como le&iacute;da"); 
     256define ('LBL_MARK_CATEGORY_READ_ALL',"Marcar esta categor&iacute;a como le&iacute;da"); 
     257 
     258// New in 0.5.x: 
     259define ('LBL_FOOTER_LAST_MODIF_NEVER', 'Nunca'); 
     260define ('LBL_ADMIN_DASHBOARD','Dashboard');  
     261 
     262define ('LBL_ADMIN_MUST_SET_PASS','<p>No se ha configurado un Administrador todav&iacute;a!</p>' 
     263        .'<p>Por favor, introduzca un usuario y contrase&ntilde;a para el Administrador!</p>'); 
     264define ('LBL_USERNAME','Usuario');       
     265define ('LBL_PASSWORD','Contrase&ntilde;a'); 
     266define ('LBL_PASSWORD2','Contrase&ntilde;a (repita)'); 
     267define ('LBL_ADMIN_LOGIN','Indentif&iacute;quese, por favor'); 
     268define ('LBL_ADMIN_PASS_NO_MATCH','Las contrase&ntilde;as no son iguales!'); 
    262269 
    263270define ('LBL_ADMIN_PLUGINS','Plugins'); 
    264271define ('LBL_ADMIN_DOMAIN_PLUGINS_LBL','plugins'); 
    265 define ('LBL_ADMIN_PLUGINS_HEADING_OPTIONS','Options'); 
    266 define ('LBL_ADMIN_PLUGINS_OPTIONS','Plugin Options'); 
    267 define ('LBL_ADMIN_CHECK_FOR_UPDATES','Check for Updates'); 
    268 define ('LBL_ADMIN_LOGIN_BAD_LOGIN','<strong>Oops!</strong> Bad login/password'); 
    269 define ('LBL_ADMIN_LOGIN_NO_ADMIN','<strong>Oops!</strong> You are successfully ' 
    270             .'logged in as %s, but you don\\\'t have administration privileges. Log in again ' 
    271             .'with administration privileges or follow your way <a href="..">home</a>'); 
    272  
     272define ('LBL_ADMIN_PLUGINS_HEADING_UPDATES','Actualizaci&oacute;n disponible'); 
     273define ('LBL_ADMIN_CHECK_FOR_UPDATES','Comprobar actualizaciones'); 
     274define ('LBL_ADMIN_LOGIN_BAD_LOGIN','<strong>Oops!</strong> Usuario/contrasea incorrectos'); 
     275define ('LBL_ADMIN_LOGIN_NO_ADMIN','<strong>Oops!</strong> Ha sido identificado ' 
     276            .'correctamente como %s, pero no tiene privilegios de administracin. Por favor, con&eacute;ctese con ' 
     277            .'un usuario con derechos de administracin o vuelva a <a href="..">Inicio</a>'); 
     278 
     279define('LBL_ADMIN_ACTIVE_THEME','Tema activo'); 
     280define('LBL_ADMIN_USE_THIS_THEME','Usar este tema'); 
    273281 
    274282define ('LBL_ADMIN_PLUGINS_GET_MORE', '<p style="font-size:small">' 
    275 .'Plugins are third-party scripts that offer extended functionalities. ' 
    276 .'More plugins can be downloaded at the <a style="text-decoration:underline" ' 
    277 .' href="http://plugins.gregarius.net/">Plugin Repository</a>.</p>'); 
    278  
    279 define ('LBL_LAST_UPDATE','Last update');                        
    280 define ('LBL_ADMIN_DOMAIN_THEMES_LBL','themes'); 
    281 define ('LBL_ADMIN_THEMES','Themes'); 
    282 define('LBL_ADMIN_ACTIVE_THEME','Active Theme'); 
    283 define('LBL_ADMIN_USE_THIS_THEME','Use this Theme'); 
    284 define('LBL_ADMIN_CONFIGURE','Configure'); 
    285 define('LBL_ADMIN_THEME_OPTIONS','Theme Options'); 
     283.'Los plugins son c&oacute;digo escrito por otros desarrolladores para ofrecer m&aacute;s funciones. ' 
     284.'Se pueden descargar m&aacute;s plugins desde <a style="text-decoration:underline" ' 
     285.' href="http://plugins.gregarius.net/">Repositorio de Plugins</a>.</p>'); 
     286 
     287define ('LBL_LAST_UPDATE','&Uacute;ltima actualizaci&oacute;n'); 
     288define ('LBL_ADMIN_DOMAIN_THEMES_LBL','temas'); 
     289define ('LBL_ADMIN_THEMES','Temas'); 
    286290 
    287291define ('LBL_ADMIN_THEMES_GET_MORE', '<p style="font-size:small">' 
    288 .'Themes are made of a set of template files which specify how your Gregarius installation looks.<br />' 
    289 .'More themes can be downloaded at the <a style="text-decoration:underline" ' 
    290 .' href="http://themes.gregarius.net/">Themes Repository</a>.</p>'); 
    291  
    292 define ('LBL_STATE_FLAG','Flag (Flags an item for later reading)'); 
    293 define ('LBL_FLAG','Flagged'); 
    294  
    295 define ('LBL_MARK_READ', "Marcar todos como leidos"); 
    296 define ('LBL_MARK_CHANNEL_READ', "Marcar este como leido"); 
    297 define ('LBL_MARK_FOLDER_READ',"Marcar esta carpeta como leida"); 
    298  
    299 define ('LBL_MARK_CHANNEL_READ_ALL', "Mark This Feed as Read"); 
    300 define ('LBL_MARK_FOLDER_READ_ALL',"Mark This Folder as Read"); 
    301 define ('LBL_MARK_CATEGORY_READ_ALL',"Mark This Category as Read"); 
     292.'Los temas permiten cambiar el aspecto de Gregarius.<br />' 
     293.'Se pueden descargar m&aacute;s temas desde <a style="text-decoration:underline" ' 
     294.' href="http://themes.gregarius.net/">Repositorio de Temas</a>.</p>'); 
     295 
     296define ('LBL_STATE_FLAG','Marca (Marca un item para leerlo m&aacute;s tarde)'); 
     297define ('LBL_FLAG','Marcado'); 
    302298?> 
  • branches/postgresql/plugins.php

    r1393 r1492  
    103103/** 
    104104 * Wrapper functions for plugins 
     105 * 
     106 * Notes: Make sure that $value and $default are not escaped strings/arrays of strings,  
     107 *        otherwise they will not come out of the database correctly because of rss_real_escape_string 
    105108 */ 
    106109function rss_plugins_add_option($key, $value, $type = "string", $default = "", $desc= "", $export = NULL) { 
     
    111114 
    112115    if (is_array($value) || $type == 'array') { 
    113         $value = str_replace("'","\'",serialize($value)); 
     116        $value = serialize($value); 
    114117    } 
    115118    $value = rss_real_escape_string($value); 
  • branches/postgresql/themes/default/rss/item.php

    r1393 r1492  
    44        <pubDate><?php echo rss_item_date_with_format('r'); ?></pubDate> 
    55        <guid><?php echo rss_item_url(); ?></guid> 
     6        <?php if (rss_item_has_enclosure()) { ?> 
     7        <enclosure url="<?php echo rss_item_enclosure(); ?>" length="" type="" /> 
     8        <?php } ?> 
    69        <content:encoded><![CDATA[  <?php echo rss_item_content(); ?> ]]></content:encoded> 
    710</item> 
  • branches/postgresql/themes/lilina/web/item.php

    r1484 r1492  
    3737    <div id="sad<?php echo rss_item_id(); ?>" style="display:none"></div> 
    3838    <h5><?php echo rss_item_date(); ?><?php echo rss_item_author(); ?></h5> 
    39     <?php if (rss_item_do_rating()) { ?> 
    40     <div class="rating"> 
    41         <h5><?php echo LBL_RATING; ?></h5> 
    42         <?php echo rss_item_rating(); ?> 
    43         <?php rss_item_rating(); ?> 
     39    <div id="im<?php echo rss_item_id(); ?>"> 
     40        <?php if (rss_item_do_rating()) { ?> 
     41        <div class="rating"> 
     42            <h5><?php echo LBL_RATING; ?></h5> 
     43            <?php echo rss_item_rating(); ?> 
     44            <?php rss_item_rating(); ?> 
     45        </div> 
     46        <?php } ?> 
     47        <?php if (_VERSION_ > "0.5.2" && rss_item_has_enclosure()) { ?> 
     48          <h5><?php echo LBL_ENCLOSURE; ?>&nbsp;[<a href="<?php echo rss_item_enclosure(); ?>"><?php echo LBL_DOWNLOAD; ?></a><?php rss_plugin_hook("rss.plugins.items.enclosure", null); ?>]</h5> 
     49        <?php } ?> 
     50        <?php   if (rss_item_display_tags()) { ?> 
     51        <h5> 
     52            <a href="<?php echo rss_item_tagslink(); ?>"><?php echo LBL_TAG_TAGS; ?></a>:&nbsp; 
     53            <span id="t<?php echo rss_item_id(); ?>"><?php echo rss_item_tags(); ?></span>&nbsp; 
     54            <?php if (rss_item_can_edit_tags()) { ?> 
     55            [<span id="ta<?php echo rss_item_id(); ?>"><a href="#" onclick="_et(<?php echo rss_item_id(); ?>); return false;"><?php echo LBL_TAG_EDIT; ?></a></span>] 
     56            <?php } ?> 
     57        </h5> 
     58        <?php } ?> 
    4459    </div> 
    45     <?php } ?> 
    46     <?php if (_VERSION_ > "0.5.2" && rss_item_has_enclosure()) { ?> 
    47       <h5><?php echo LBL_ENCLOSURE; ?>&nbsp;[<a href="<?php echo rss_item_enclosure(); ?>"><?php echo LBL_DOWNLOAD; ?></a><?php rss_plugin_hook("rss.plugins.items.enclosure", null); ?>]</h5> 
    48     <?php } ?> 
    49     <?php   if (rss_item_display_tags()) { ?> 
    50     <h5> 
    51         <a href="<?php echo rss_item_tagslink(); ?>"><?php echo LBL_TAG_TAGS; ?></a>:&nbsp; 
    52         <span id="t<?php echo rss_item_id(); ?>"><?php echo rss_item_tags(); ?></span>&nbsp; 
    53         <?php if (rss_item_can_edit_tags()) { ?> 
    54         [<span id="ta<?php echo rss_item_id(); ?>"><a href="#" onclick="_et(<?php echo rss_item_id(); ?>); return false;"><?php echo LBL_TAG_EDIT; ?></a></span>] 
    55         <?php } ?> 
    56     </h5> 
    57     <?php } ?> 
    5860    <div class="content" id="c<?php echo rss_item_id(); ?>"> 
    5961        <?php echo rss_item_content(); ?> 
     
    9193    <?php echo rss_feed_title();?></a> 
    9294    <div id="sad<?php echo rss_item_id(); ?>" style="display:none"></div> 
     95    <div id="im<?php echo rss_item_id(); ?>" style="display:none"> 
     96            <?php if (rss_item_do_rating()) { ?> 
     97            <div class="rating"> 
     98                <h5><?php echo LBL_RATING; ?></h5> 
     99                <?php echo rss_item_rating(); ?> 
     100                <?php rss_item_rating(); ?> 
     101            </div> 
     102            <?php } ?> 
     103            <?php if (_VERSION_ > "0.5.2" && rss_item_has_enclosure()) { ?> 
     104              <h5><?php echo LBL_ENCLOSURE; ?>&nbsp;[<a href="<?php echo rss_item_enclosure(); ?>"><?php echo LBL_DOWNLOAD; ?></a><?php rss_plugin_hook("rss.plugins.items.enclosure", null); ?>]</h5> 
     105            <?php } ?> 
     106            <?php   if (rss_item_display_tags()) { ?> 
     107            <h5> 
     108                <a href="<?php echo rss_item_tagslink(); ?>"><?php echo LBL_TAG_TAGS; ?></a>:&nbsp; 
     109                <span id="t<?php echo rss_item_id(); ?>"><?php echo rss_item_tags(); ?></span>&nbsp; 
     110                <?php if (rss_item_can_edit_tags()) { ?> 
     111                [<span id="ta<?php echo rss_item_id(); ?>"><a href="#" onclick="_et(<?php echo rss_item_id(); ?>); return false;"><?php echo LBL_TAG_EDIT; ?></a></span>] 
     112                <?php } ?> 
     113            </h5> 
     114            <?php } ?> 
     115    </div> 
    93116    <div class="content" id="c<?php echo rss_item_id(); ?>" style="display:none"> 
    94117        <?php echo rss_item_content(); ?> 
  • branches/postgresql/themes/lilina/web/js/lilina.js

    r1393 r1492  
    11function toggleItemByID(id) { 
    2  var fld=document.getElementById("c" + id); 
     2 var fld=document.getElementById("im" + id); 
     3 var fld2=document.getElementById("c" + id); 
    34 if (fld.style.display == "none") { 
    45    fld.style.display = "block"; 
     6    fld2.style.display = "block"; 
    57 } else { 
    68    fld.style.display = "none"; 
     9    fld2.style.display = "none"; 
    710 } 
    811}