Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge

This commit is contained in:
zotlabs 2017-05-09 19:12:23 -07:00
commit 556407408f
4 changed files with 608 additions and 546 deletions

View File

@ -18,7 +18,49 @@ class Comanche {
$s = str_replace($mtch[0], '', $s); $s = str_replace($mtch[0], '', $s);
} }
} }
/*
* This section supports the "switch" statement of the form given by the following
* example. The [default][/default] block must be the last in the arbitrary
* list of cases. The first case that matches the switch variable is used
* and the rest are not evaluated.
*
* [switch observer.language]
* [case de]
* [block]german-content[/block]
* [/case]
* [case es]
* [block]spanish-content[/block]
* [/case]
* [default]
* [block]english-content[/block]
* [/default]
* [/switch]
*/
$cnt = preg_match_all("/\[switch (.*?)\](.*?)\[default\](.*?)\[\/default\]\s*\[\/switch\]/ism", $s, $matches, PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
$switch_done = 0;
$switch_var = $this->get_condition_var($mtch[1]);
$default = $mtch[3];
$cases = array();
$cntt = preg_match_all("/\[case (.*?)\](.*?)\[\/case\]/ism", $mtch[2], $cases, PREG_SET_ORDER);
if($cntt) {
foreach($cases as $case) {
if($case[1] === $switch_var) {
$switch_done = 1;
$s = str_replace($mtch[0], $case[2], $s);
break;
}
}
if($switch_done === 0) {
$s = str_replace($mtch[0], $default, $s);
}
}
}
}
$cnt = preg_match_all("/\[if (.*?)\](.*?)\[else\](.*?)\[\/if\]/ism", $s, $matches, PREG_SET_ORDER); $cnt = preg_match_all("/\[if (.*?)\](.*?)\[else\](.*?)\[\/if\]/ism", $s, $matches, PREG_SET_ORDER);
if($cnt) { if($cnt) {
foreach($matches as $mtch) { foreach($matches as $mtch) {

View File

@ -78,7 +78,7 @@ code {
white-space: normal; white-space: normal;
} }
.form-group label { label {
font-weight: bold; font-weight: bold;
} }

File diff suppressed because it is too large Load Diff

View File

@ -871,6 +871,7 @@ App::$strings["Connections"] = "Conexiones";
App::$strings["Search your connections"] = "Buscar sus conexiones"; App::$strings["Search your connections"] = "Buscar sus conexiones";
App::$strings["Connections search"] = "Buscar conexiones"; App::$strings["Connections search"] = "Buscar conexiones";
App::$strings["Find"] = "Encontrar"; App::$strings["Find"] = "Encontrar";
App::$strings["item"] = "elemento";
App::$strings["Source of Item"] = "Origen del elemento"; App::$strings["Source of Item"] = "Origen del elemento";
App::$strings["Bookmark added"] = "Marcador añadido"; App::$strings["Bookmark added"] = "Marcador añadido";
App::$strings["My Bookmarks"] = "Mis marcadores"; App::$strings["My Bookmarks"] = "Mis marcadores";
@ -1382,6 +1383,7 @@ App::$strings["Unable to communicate with requested channel."] = "No se puede es
App::$strings["Cannot verify requested channel."] = "No se puede verificar el canal solicitado."; App::$strings["Cannot verify requested channel."] = "No se puede verificar el canal solicitado.";
App::$strings["Selected channel has private message restrictions. Send failed."] = "El canal seleccionado tiene restricciones sobre los mensajes privados. El envío falló."; App::$strings["Selected channel has private message restrictions. Send failed."] = "El canal seleccionado tiene restricciones sobre los mensajes privados. El envío falló.";
App::$strings["Messages"] = "Mensajes"; App::$strings["Messages"] = "Mensajes";
App::$strings["message"] = "mensaje";
App::$strings["Message recalled."] = "Mensaje revocado."; App::$strings["Message recalled."] = "Mensaje revocado.";
App::$strings["Conversation removed."] = "Conversación eliminada."; App::$strings["Conversation removed."] = "Conversación eliminada.";
App::$strings["Expires YYYY-MM-DD HH:MM"] = "Caduca YYYY-MM-DD HH:MM"; App::$strings["Expires YYYY-MM-DD HH:MM"] = "Caduca YYYY-MM-DD HH:MM";
@ -1537,7 +1539,7 @@ App::$strings["Firefox Share"] = "Servicio de compartición de Firefox";
App::$strings["Remote Diagnostics"] = "Diagnóstico remoto"; App::$strings["Remote Diagnostics"] = "Diagnóstico remoto";
App::$strings["Suggest Channels"] = "Sugerir canales"; App::$strings["Suggest Channels"] = "Sugerir canales";
App::$strings["Login"] = "Iniciar sesión"; App::$strings["Login"] = "Iniciar sesión";
App::$strings["Grid"] = "Red"; App::$strings["Activity"] = "Actividad";
App::$strings["Wiki"] = "Wiki"; App::$strings["Wiki"] = "Wiki";
App::$strings["Channel Home"] = "Mi canal"; App::$strings["Channel Home"] = "Mi canal";
App::$strings["Events"] = "Eventos"; App::$strings["Events"] = "Eventos";
@ -1796,7 +1798,7 @@ App::$strings["Set the background image"] = "Ajustar la imagen de fondo";
App::$strings["Set the background color of items"] = "Ajustar el color de los elementos de fondo"; App::$strings["Set the background color of items"] = "Ajustar el color de los elementos de fondo";
App::$strings["Set the background color of comments"] = "Ajustar el color de fondo de los comentarios"; App::$strings["Set the background color of comments"] = "Ajustar el color de fondo de los comentarios";
App::$strings["Set font-size for the entire application"] = "Ajustar el tamaño de letra para toda la aplicación"; App::$strings["Set font-size for the entire application"] = "Ajustar el tamaño de letra para toda la aplicación";
App::$strings["Examples: 87.5%, 14px"] = "Ejemploss: 87.5%, 14px"; App::$strings["Examples: 1rem, 100%, 16px"] = "Ejemplos: 1rem, 100%, 16px";
App::$strings["Set font-color for posts and comments"] = "Establecer el color de la letra para publicaciones y comentarios"; App::$strings["Set font-color for posts and comments"] = "Establecer el color de la letra para publicaciones y comentarios";
App::$strings["Set radius of corners"] = "Establecer el radio de curvatura de las esquinas"; App::$strings["Set radius of corners"] = "Establecer el radio de curvatura de las esquinas";
App::$strings["Example: 4px"] = "Ejemplo: 4px"; App::$strings["Example: 4px"] = "Ejemplo: 4px";
@ -3003,6 +3005,7 @@ App::$strings["Log me out of this site"] = "Salir de este sitio";
App::$strings["Create an account"] = "Crear una cuenta"; App::$strings["Create an account"] = "Crear una cuenta";
App::$strings["Help and documentation"] = "Ayuda y documentación"; App::$strings["Help and documentation"] = "Ayuda y documentación";
App::$strings["Search site @name, #tag, ?docs, content"] = "Buscar en el sitio por @nombre, #etiqueta, ?ayuda o contenido"; App::$strings["Search site @name, #tag, ?docs, content"] = "Buscar en el sitio por @nombre, #etiqueta, ?ayuda o contenido";
App::$strings["Grid"] = "Red";
App::$strings["Your grid"] = "Mi red"; App::$strings["Your grid"] = "Mi red";
App::$strings["View your network/grid"] = "Ver su red"; App::$strings["View your network/grid"] = "Ver su red";
App::$strings["Mark all grid notifications seen"] = "Marcar todas las notificaciones de la red como vistas"; App::$strings["Mark all grid notifications seen"] = "Marcar todas las notificaciones de la red como vistas";