Commit 32bd5c81 authored by Malte Sussdorff's avatar Malte Sussdorff

- Malte

parent 1ab840cb
......@@ -7,14 +7,12 @@
<initial-install-p>t</initial-install-p>
<singleton-p>t</singleton-p>
<version name="5.1.5" url="http://openacs.org/repository/download/apm/acs-templating-5.1.5.apm">
<version name="5.3.1b1" url="http://openacs.org/repository/download/apm/acs-templating-5.3.1b1.apm">
<owner url="http://openacs.org">OpenACS</owner>
<summary>Templating library.</summary>
<release-date>2004-02-28</release-date>
<maturity>3</maturity>
<release-date>2007-04-15</release-date>
<vendor url="http://openacs.org">OpenACS</vendor>
<description format="text/html">
The templating system provides the tag library and support routines
<description format="text/html">The templating system provides the tag library and support routines
that allow developers and graphic designers to work
independently. Templates specify the layout of the page seperately
from the contents of the page. Graphic designers work primarily on the
......@@ -24,9 +22,11 @@ primarily a script that generates the the content part of the template
single layout specification for many physical pages, so the overall
layout of a site can be more easily administered.
</description>
<license>GPL version 2</license>
<maturity>3</maturity>
<provides url="acs-templating" version="5.1.4"/>
<requires url="acs-kernel" version="5.0.0"/>
<provides url="acs-templating" version="5.3.1b1"/>
<requires url="acs-kernel" version="5.3.1b1"/>
<callbacks>
<callback type="before-upgrade" proc="template::apm::before_upgrade"/>
......@@ -35,17 +35,15 @@ layout of a site can be more easily administered.
<parameter datatype="string" min_n_values="1" max_n_values="1" name="DefaultFormStyle" default="standard" description="The default form template to use if a particular form does not explicitly specify the form style to use."/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="DefaultListFilterStyle" default="filters" description="The default list filter template to use if a particular listfilter tag does not explicitly specify the list filter style to use."/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="DefaultListStyle" default="table" description="The default list template to use if a particular list does not explicitly specify the list style to use."/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="RefreshCache" default="as needed" description="When to re-translate templates. Speical values: "/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="RefreshCache" default="as needed" description="When to re-translate templates. Values: never, as needed, always."/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="RichTextEditor" default="rte" description="Use the specified javascript text editor when UseHtmlAreaForRichtextP is activated. Valid arguments are &quot;rte&quot; or &quot;xinha&quot;."/>
<parameter datatype="number" min_n_values="1" max_n_values="1" name="ShowCompiledTemplatesP" default="0" description="Show thecompiled template (for debugging) at .cmp URL"/>
<parameter datatype="number" min_n_values="1" max_n_values="1" name="ShowDataDictionariesP" default="0" description="Offer data dictionaries on .dat/.fmt URL."/>
<parameter datatype="number" min_n_values="1" max_n_values="1" name="SpellcheckDialectsP" default="0" description="Do you care about dialects or not? If this is set to '1' all available dictionary dialects for all available languages will appear as choices in the pull-down menu. If the param is set to '0', only the base-language(s) will be shown. However, it only works with aspell - on ispell you'll simply get a 'yes' and 'no' option, no matter how this param is set, where 'yes' will use ispell's default dictionary. NOTE! You'll need to restart the server for this param to take effect."/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="SpellcheckFormWidgets" default="textarea 0 richtext 0" description="The widgets that you specify here will be spellcheck enabled in all forms (that use ad_form / form builder). Adding a 'nospell' flag to a form element overrides this parameter and disables spellchecking of that element. The format of this parameter is such: 'widget 1 widget 0 ...', where 'widget' stands for one of the form widgets that are possible to spellcheck enable: text, textarea, richtext. '1' after 'widget' indicates that the default should be to spellcheck; '0' means the user has to manually state that spellchecking should be performed on the form element. In order to enable spellchecking via this parameter either the aspell or ispell binary (or both, in which case aspell takes precedence) must be installed on the server. The path to the binary is auto-detected on server startup. If the parameter is left blank, spellchecking will be disabled altogether."/>
<parameter datatype="number" min_n_values="1" max_n_values="1" name="UseHtmlAreaForRichtextP" default="0" description="Should the richtext widget use the htmlArea widget for richtext editing. 1 = yes, 0 = no."/>
<parameter datatype="number" min_n_values="1" max_n_values="1" name="UseHtmlAreaForRichtextP" default="1" description="Should the richtext widget use the htmlArea widget for richtext editing. 1 = yes, 0 = no. We will also check the browser's User-Agent header to find out if htmlArea works with the given browser."/>
<parameter datatype="string" min_n_values="1" max_n_values="1" name="XinhaDefaultPlugins" default="GetHtml CharacterMap ContextMenu FullScreen ListType TableOperations EditTag LangMarks Abbreviation" description="When xinha is specified as richtext editor (see parameter RichTextEditor) then use the following xinha plugins per default."/>
</parameters>
</version>
</package>
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="ar_LB" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="ar_LB" charset="utf-8">
<msg key="12-Hour">12 ساعة</msg>
<msg key="24-Hour">24 ساعة</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="ca_ES" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="ca_ES" charset="ISO-8859-1">
<msg key="12-Hour">12-Hores</msg>
<msg key="24-Hour">24-Hores</msg>
<msg key="12-Hour">12 hores</msg>
<msg key="24-Hour">24 hores</msg>
<msg key="Day">Dia</msg>
<msg key="Element_is_required">s obligatori %label% </msg>
<msg key="Element_is_too_long_Plural">%label% s %excess_no_bytes% carcters massa llarg. </msg>
......@@ -28,6 +28,6 @@
<msg key="Sort_order">Ordre de classificaci</msg>
<msg key="Spellcheck">Revisor ortogrfic</msg>
<msg key="Tag_handler_invalid_number_of_args">El nombre d'arguments per al gestor d'etiquetes no s vlid </msg>
<msg key="Template_parser_error_in_parameter_list">Errada en la llista de parmetres </msg>
<msg key="Template_parser_error_in_parameter_list">Error en la llista de parmetres </msg>
<msg key="Year">Any</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="da_DK" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="da_DK" charset="ISO-8859-1">
<msg key="12-Hour">12 Timer</msg>
<msg key="24-Hour">24 Timer</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.5" locale="de_DE" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d2" locale="de_DE" charset="ISO-8859-1">
<msg key="12-Hour">12-stndig</msg>
<msg key="24-Hour">24-stndig</msg>
<msg key="CSV">CSV</msg>
<msg key="data">Daten</msg>
<msg key="Day">Tag</msg>
<msg key="day">Tag</msg>
<msg key="Element_is_required">%label% muss ausgefllt werden</msg>
<msg key="Element_is_too_long_Plural">%label% ist um %excess_no_bytes% Zeichen zu lang.</msg>
<msg key="Element_is_too_long_Singular">%label% ist um 1 Zeichen zu lang.</msg>
<msg key="Formats">Formate</msg>
<msg key="hours">Stunden</msg>
<msg key="Hours_must_be_between_0_and_23">Stunden mssen zwischen 0 und 23 liegen</msg>
<msg key="HTMLArea_action_cancel">Abbrechen</msg>
<msg key="HTMLArea_ImageAlignment">Ausrichtung</msg>
<msg key="HTMLArea_ImageAlignmentLeft">Linksbndig</msg>
<msg key="HTMLArea_ImageAlignmentMiddle">Zentriert</msg>
<msg key="HTMLArea_ImageAlignmentRight">Rechtsbndig</msg>
<msg key="HTMLArea_ImageAlternateText">Alternativtext fr Bild</msg>
<msg key="HTMLArea_ImageBorderSize">Rand</msg>
<msg key="HTMLArea_ImageBorderSizeToolTip">Randbreite</msg>
<msg key="HTMLArea_ImageSpacing">Abstand</msg>
<msg key="HTMLArea_ImageSpacingVerticalToolTip">Vertikaler Abstand</msg>
<msg key="HTMLArea_ImageURL">URL</msg>
<msg key="HTMLArea_ImageURLToolTip">Bild-URL</msg>
<msg key="HTMLArea_InsertImageTitle">Bild einfgen</msg>
<msg key="HTMLArea_InsertModifyLink">Link einfgen/ndern</msg>
<msg key="HTMLArea_NoAltText">Kein Alternativtext angegeben. Bitte fgen Sie einen Alternativtext hinzu, um die Nutzbarkeit zu verbessern.</msg>
<msg key="HTMLArea_NoURL">Kein URL fr das Bild angegeben</msg>
<msg key="HTMLArea_OpenFileStorage">Ordner ffnen</msg>
<msg key="HTMLArea_SelectFile">Bitte whlen Sie eine Datei</msg>
<msg key="HTMLArea_SelectFileTitle">Datei whlen</msg>
<msg key="HTMLArea_SelectFileUploadTitle">Datei hochladen</msg>
<msg key="HTMLArea_SelectImage">Bitte whlen Sie ein Bild</msg>
<msg key="HTMLArea_SelectImageNothingSelected">Nichts ausgewhlt</msg>
<msg key="HTMLArea_SelectImagePreview">Vorschau</msg>
<msg key="HTMLArea_SelectImageTitle">Bild whlen</msg>
<msg key="HTMLArea_SelectImageUploadNoImage">Bild whlen oder Datei hochladen</msg>
<msg key="HTMLArea_SelectImageUploadTitle">Bild hochladen</msg>
<msg key="HTMLArea_SpecifyUploadFilename">Datei zum Hochladen whlen</msg>
<msg key="Invalid_choice">Ungltige Auswahl</msg>
<msg key="Invalid_currency">Ungltige Whrung</msg>
<msg key="Invalid_decimal_number">Ungltige Dezimalzahl</msg>
......@@ -17,17 +49,35 @@
<msg key="Invalid_keyword">Ungltiges Schlsselwort</msg>
<msg key="Invalid_natural_number">Ungltiger natrlicher Zahlenwert</msg>
<msg key="Invalid_url">Ungltige URL</msg>
<msg key="lt_Checkuncheck_all_rows">Markieren aller Reihen/ Markierung aller Reihen entfernen</msg>
<msg key="lt_Checkuncheck_this_row">Markieren Sie diese Spalte/ Entfernen Sie die Markierung und whlen Sie unten eine Aktion die durchgefhrt werden soll</msg>
<msg key="lt_Dates_must_be_formatted_">Datumsangaben mssen als %format% formatiert sein</msg>
<msg key="lt_day_between_for_month_pretty">Fr den Monat %month_pretty% muss der Tag zwischen 1 und %maxdays% liegen</msg>
<msg key="lt_No_value_supplied_for_-field_pretty-">Kein Wert fr %field_pretty% angegeben</msg>
<msg key="lt_The_-field_pretty-_must_be_non_negative">Das Feld %field_pretty% muss eine positive Zahl beinhalten</msg>
<msg key="lt_When_specifying_a_non">When Sie eine 'page_size' ungleich 0 spezifizieren mssen sie auch entweder 'page_query' oder 'page_query_name' spezifizieren</msg>
<msg key="Meridian">Lngengrad</msg>
<msg key="Minutes">Minuten</msg>
<msg key="minutes">Minuten</msg>
<msg key="Minutes_must_be_between_0_and_59">Minuten mssen zwischen 0 und 59 liegen</msg>
<msg key="Month">Monat</msg>
<msg key="month">Monat</msg>
<msg key="Month_must_be_between_1_and_12">Monat muss zwischen 1 und 12 liegen</msg>
<msg key="Next_with_arrow">Weiter &gt;&gt;</msg>
<msg key="No_row_pretty_plural">Keine %row_pretty_plural% vorhanden</msg>
<msg key="Page">Seite</msg>
<msg key="Page_Size">Gre der Liste</msg>
<msg key="Previous_with_arrow">&lt;&lt; Zurck</msg>
<msg key="required">Angabe erforderlich</msg>
<msg key="Seconds">Sekunden</msg>
<msg key="seconds">Sekunden</msg>
<msg key="Seconds_must_be_between_0_and_59">Sekunden mssen zwischen 0 und 59 liegen</msg>
<msg key="Sort_order">Sortierreihenfolge</msg>
<msg key="Spellcheck">Rechtschreibprfung</msg>
<msg key="Table">Tabelle</msg>
<msg key="Tag_handler_invalid_number_of_args">Ungltige Anzahl von Argumenten fr das Tag-Steuerungsprogramm</msg>
<msg key="Template_parser_error_in_parameter_list">Fehler in der Liste der Parameter</msg>
<msg key="Year">Jahr</msg>
<msg key="year">Jahr</msg>
<msg key="Year_must_be_positive">Jahr muss positiv sein</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="en_AU" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.2.3b2" locale="en_AU" charset="ISO-8859-1">
<msg key="12-Hour">12-Hour</msg>
<msg key="24-Hour">24-Hour</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.5" locale="en_US" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0" locale="en_US" charset="ISO-8859-1">
<msg key="12-Hour">12-Hour</msg>
<msg key="24-Hour">24-Hour</msg>
<msg key="Anyone_on_the_internet">Anyone on the Internet</msg>
<msg key="Anyone_on_this_system">Anyone on this system</msg>
<msg key="Attach_File_Choose_a_file">Please choose a file to attach.</msg>
<msg key="CSV">CSV</msg>
<msg key="data">data</msg>
<msg key="Day">Day</msg>
<msg key="day">day</msg>
<msg key="DefaultSummary">Data for %list_name%</msg>
<msg key="Element_is_required">%label% is required</msg>
<msg key="Element_is_too_long_Plural">%label% is %excess_no_bytes% characters too long.</msg>
<msg key="Element_is_too_long_Singular">%label% is one character too long.</msg>
<msg key="Enhanced_Text">Enhanced Text
</msg>
<msg key="Enter_your_search_text">Enter your search text here</msg>
<msg key="Fixed_width_Text">Fixed-width Text</msg>
<msg key="Format">Format
</msg>
<msg key="Formats">Formats</msg>
<msg key="hours">hours</msg>
<msg key="Hours_must_be_between_0_and_23">Hours must be between 0 and 23</msg>
<msg key="HTML">HTML</msg>
<msg key="HTMLArea_action_cancel">Cancel</msg>
<msg key="HTMLArea_ImageAlignment">Alignment</msg>
<msg key="HTMLArea_ImageAlignmentBottom">Bottom</msg>
<msg key="HTMLArea_ImageAlignmentLeft">Align Left</msg>
<msg key="HTMLArea_ImageAlignmentMiddle">Middle</msg>
<msg key="HTMLArea_ImageAlignmentRight">Align Right</msg>
<msg key="HTMLArea_ImageAlignmentTop">Top</msg>
<msg key="HTMLArea_ImageAlternateText">Alternate Text for Image</msg>
<msg key="HTMLArea_ImageAlternateTextToolTip">Specify alternate Text for Image</msg>
<msg key="HTMLArea_ImageBorderSize">Border</msg>
<msg key="HTMLArea_ImageBorderSizeToolTip">Border Width</msg>
<msg key="HTMLArea_ImageSpacing">Spacing</msg>
<msg key="HTMLArea_ImageSpacingHorizontal">Horizontal</msg>
<msg key="HTMLArea_ImageSpacingHorizontalToolTip">Horizontal Spacing</msg>
<msg key="HTMLArea_ImageSpacingVertical">Vertical</msg>
<msg key="HTMLArea_ImageSpacingVerticalToolTip">Vertical Spacing</msg>
<msg key="HTMLArea_ImageURL">URL</msg>
<msg key="HTMLArea_ImageURLToolTip">Image URL</msg>
<msg key="HTMLArea_InsertImageTitle">Insert Image</msg>
<msg key="HTMLArea_InsertModifyLink">Insert/Modify Link</msg>
<msg key="HTMLArea_NoAltText">No alternate text specified. Please add one to increase accessability.</msg>
<msg key="HTMLArea_NoURL">No URL for Image specified.</msg>
<msg key="HTMLArea_OpenFileStorage">Open Folder</msg>
<msg key="HTMLArea_SelectFile">Please Select File</msg>
<msg key="HTMLArea_SelectFileTitle">Select File</msg>
<msg key="HTMLArea_SelectFileUploadTitle">Upload File</msg>
<msg key="HTMLArea_SelectImage">Please select an image</msg>
<msg key="HTMLArea_SelectImageNothingSelected">Nothing Selected</msg>
<msg key="HTMLArea_SelectImagePreview">Preview</msg>
<msg key="HTMLArea_SelectImageTitle">Select Image</msg>
<msg key="HTMLArea_SelectImageUploadNoImage">Select Image or Upload File</msg>
<msg key="HTMLArea_SelectImageUploadTitle">Upload Image</msg>
<msg key="HTMLArea_SelectUploadBtn">Upload</msg>
<msg key="HTMLArea_SpecifyUploadFilename">Specify a File for Upload</msg>
<msg key="Invalid_choice">Invalid choice</msg>
<msg key="Invalid_currency">Invalid currency</msg>
<msg key="Invalid_decimal_number">Invalid decimal number</msg>
......@@ -17,17 +67,42 @@
<msg key="Invalid_keyword">Invalid keyword</msg>
<msg key="Invalid_natural_number">Invalid natural number </msg>
<msg key="Invalid_url">Invalid url</msg>
<msg key="lt_Checkuncheck_all_rows">Check/uncheck all rows</msg>
<msg key="lt_Checkuncheck_this_row">Check/uncheck this row, and select an action to perform below</msg>
<msg key="lt_Dates_must_be_formatted_">Dates must be formatted as: %format%</msg>
<msg key="lt_day_between_for_month_pretty">The day must be between 1 and %maxdays% for the month of %month_pretty%</msg>
<msg key="lt_No_value_supplied_for_-field_pretty-">No value supplied for %field_pretty%</msg>
<msg key="lt_The_-field_pretty-_must_be_non_negative">The %field_pretty% must be a non-negative integer</msg>
<msg key="lt_When_specifying_a_non">When specifying a non-zero page_size, you must also provide either page_query or page_query_name</msg>
<msg key="Meridian">Meridian</msg>
<msg key="Minutes">Minutes</msg>
<msg key="minutes">minutes</msg>
<msg key="Minutes_must_be_between_0_and_59">Minutes must be between 0 and 59</msg>
<msg key="Month">Month</msg>
<msg key="month">month</msg>
<msg key="Month_must_be_between_1_and_12">Month must be between 1 and 12</msg>
<msg key="Next_with_arrow">Next &gt;&gt;</msg>
<msg key="No_row_pretty_plural">No %row_pretty_plural%.</msg>
<msg key="Only_myself">Only myself</msg>
<msg key="Page">Page</msg>
<msg key="Page_Size">Page Size</msg>
<msg key="Plain_Text">Plain Text</msg>
<msg key="Previous_with_arrow">&lt;&lt; Previous</msg>
<msg key="required">required</msg>
<msg key="reverse_sort_order_of_label">Reverse the sort order of %label%</msg>
<msg key="Seconds">Seconds</msg>
<msg key="seconds">seconds</msg>
<msg key="Seconds_must_be_between_0_and_59">Seconds must be between 0 and 59</msg>
<msg key="Sort_order">Sort order</msg>
<msg key="sort_the_list_by_label">Sort the list by %label%</msg>
<msg key="Spellcheck">Spellcheck</msg>
<msg key="Table">Table</msg>
<msg key="Tag_handler_invalid_number_of_args">Invalid number of arguments to tag handler.</msg>
<msg key="Template_parser_error_in_parameter_list">Error in parameter list</msg>
<msg key="This_Group">This group</msg>
<msg key="This_image_can_be_reused_by">This image can be reused by</msg>
<msg key="This_image_can_be_reused_help">This allows your image to be used in other contexts</msg>
<msg key="Year">Year</msg>
<msg key="year">year</msg>
<msg key="Year_must_be_positive">Year must be positive</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="es_CO" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="es_CO" charset="ISO-8859-1">
<msg key="12-Hour">12-Horas</msg>
<msg key="24-Hour">24-Horas</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.5" locale="es_ES" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0" locale="es_ES" charset="ISO-8859-1">
<msg key="12-Hour">12-Horas</msg>
<msg key="24-Hour">24-Horas</msg>
<msg key="Anyone_on_the_internet">Cualquiera en Internet</msg>
<msg key="Anyone_on_this_system">Cualquiera de este sistema</msg>
<msg key="Attach_File_Choose_a_file">Seleccione el fichero a adjuntar.</msg>
<msg key="CSV">CSV</msg>
<msg key="data">dato</msg>
<msg key="Day">Da </msg>
<msg key="day">da</msg>
<msg key="DefaultSummary">Datos para %list_name%</msg>
<msg key="Element_is_required">%label% es obligatorio</msg>
<msg key="Element_is_too_long_Plural">%label% es %excess_no_bytes% caracteres demasiado largo.</msg>
<msg key="Element_is_too_long_Singular">%label% es un caracater muy largo.</msg>
<msg key="Enhanced_Text">Texto Enriquecido</msg>
<msg key="Enter_your_search_text">Introduzca el texto a buscar</msg>
<msg key="Fixed_width_Text">Preformateado
</msg>
<msg key="Format">Formato
</msg>
<msg key="Formats">Formatos</msg>
<msg key="hours">horas</msg>
<msg key="Hours_must_be_between_0_and_23">La hora debe estar comprendida entre 0 y 23</msg>
<msg key="HTML">HTML
</msg>
<msg key="HTMLArea_action_cancel">Cancelar</msg>
<msg key="HTMLArea_ImageAlignment">Alineacin</msg>
<msg key="HTMLArea_ImageAlignmentBottom">Inferior</msg>
<msg key="HTMLArea_ImageAlignmentLeft">Alinear a la izquierda</msg>
<msg key="HTMLArea_ImageAlignmentMiddle">Centro</msg>
<msg key="HTMLArea_ImageAlignmentRight">Alinear a la derecha</msg>
<msg key="HTMLArea_ImageAlignmentTop">Superior</msg>
<msg key="HTMLArea_ImageAlternateText">Texto Alternativo para la Imagen</msg>
<msg key="HTMLArea_ImageAlternateTextToolTip">Especifique un texto alternativo para la imagen</msg>
<msg key="HTMLArea_ImageBorderSize">Borde</msg>
<msg key="HTMLArea_ImageBorderSizeToolTip">Ancho del Borde</msg>
<msg key="HTMLArea_ImageSpacing">Espaciado</msg>
<msg key="HTMLArea_ImageSpacingHorizontal">Horizontal</msg>
<msg key="HTMLArea_ImageSpacingHorizontalToolTip">Espaciado Horizontal</msg>
<msg key="HTMLArea_ImageSpacingVertical">Vertical</msg>
<msg key="HTMLArea_ImageSpacingVerticalToolTip">Espaciado Vertical</msg>
<msg key="HTMLArea_ImageURL">URL</msg>
<msg key="HTMLArea_ImageURLToolTip">URL de la imagen</msg>
<msg key="HTMLArea_InsertImageTitle">Insertar una imagen</msg>
<msg key="HTMLArea_InsertModifyLink">Insertar/Modificar un enlace</msg>
<msg key="HTMLArea_NoAltText">No se especific texto alternativo. Por favor, indique uno para mejorar la accesibilidad.</msg>
<msg key="HTMLArea_NoURL">No se especific la URL de la imagen.</msg>
<msg key="HTMLArea_OpenFileStorage">Abrir carpeta</msg>
<msg key="HTMLArea_SelectFile">Seleccione un archivo</msg>
<msg key="HTMLArea_SelectFileTitle">Seleccionar archivo</msg>
<msg key="HTMLArea_SelectFileUploadTitle">Subir un archivo</msg>
<msg key="HTMLArea_SelectImage">Seleccione una imagen</msg>
<msg key="HTMLArea_SelectImageNothingSelected">Ninguna seleccin</msg>
<msg key="HTMLArea_SelectImagePreview">Vista Previa</msg>
<msg key="HTMLArea_SelectImageTitle">Seleccionar Imagen</msg>
<msg key="HTMLArea_SelectImageUploadNoImage">Seleccionar imagen o Subir archivo</msg>
<msg key="HTMLArea_SelectImageUploadTitle">Subir Imagen</msg>
<msg key="HTMLArea_SelectUploadBtn">Subir</msg>
<msg key="HTMLArea_SpecifyUploadFilename">Especifique un archivo a subir</msg>
<msg key="Invalid_choice">Eleccin incorrecta</msg>
<msg key="Invalid_currency">Moneda incorrecta</msg>
<msg key="Invalid_decimal_number">Nmero decimal incorrecto</msg>
......@@ -17,17 +68,42 @@
<msg key="Invalid_keyword">Palabra clave incorrecta</msg>
<msg key="Invalid_natural_number">Nmero natural incorrecto</msg>
<msg key="Invalid_url">URL incorrecta</msg>
<msg key="lt_Checkuncheck_all_rows">Seleccionar/deseleccionar todas las filas</msg>
<msg key="lt_Checkuncheck_this_row">Seleccionar/deseleccionar esta fila, y elegir una accin a realizar sobre ella</msg>
<msg key="lt_Dates_must_be_formatted_">Las fechas deben tener el siguiente formato: %format%</msg>
<msg key="lt_day_between_for_month_pretty">El da debe estar comprendido entre 1 y %maxdays% para el mes de %month_pretty%</msg>
<msg key="lt_No_value_supplied_for_-field_pretty-">Falta especificar el valor de %field_pretty%</msg>
<msg key="lt_The_-field_pretty-_must_be_non_negative">%field_pretty% debe ser un entero no negativo</msg>
<msg key="lt_When_specifying_a_non">Al especificar un page_size distinto de 0, debe especificar tambin el page_query o page_query_name</msg>
<msg key="Meridian">Meridiano</msg>
<msg key="Minutes">Minutos</msg>
<msg key="minutes">minutos</msg>
<msg key="Minutes_must_be_between_0_and_59">Los minutos deben estar comprendidos entre 0 y 59</msg>
<msg key="Month">Mes</msg>
<msg key="month">mes</msg>
<msg key="Month_must_be_between_1_and_12">El mes debe estar comprendido entre 1 y 12</msg>
<msg key="Next_with_arrow">Siguiente &gt;&gt;</msg>
<msg key="No_row_pretty_plural">Ningn %row_pretty_plural%.</msg>
<msg key="Only_myself">Slo yo</msg>
<msg key="Page">Pgina</msg>
<msg key="Page_Size">Tamao de Pgina</msg>
<msg key="Plain_Text">Texto Plano</msg>
<msg key="Previous_with_arrow">&lt;&lt; Anterior</msg>
<msg key="required">obligatorio</msg>
<msg key="reverse_sort_order_of_label">Invertir el orden de %label%</msg>
<msg key="Seconds">Segundos</msg>
<msg key="seconds">segundos</msg>
<msg key="Seconds_must_be_between_0_and_59">Los segundos deben estar comprendidos entre 0 y 59</msg>
<msg key="Sort_order">Orden de clasificacin</msg>
<msg key="sort_the_list_by_label">Ordenar la lista por %label%</msg>
<msg key="Spellcheck">Correccin ortogrfica</msg>
<msg key="Table">Tabla</msg>
<msg key="Tag_handler_invalid_number_of_args">Nmero incorrecto de argumentos para el gestor de etiquetas</msg>
<msg key="Template_parser_error_in_parameter_list">Error en la lista de parmetros</msg>
<msg key="This_Group">Este grupo</msg>
<msg key="This_image_can_be_reused_by">La imagen puede ser reutilizada por</msg>
<msg key="This_image_can_be_reused_help">Esto permitir que su imagen pueda ser utilizada en otros contextos</msg>
<msg key="Year">Ao</msg>
<msg key="year">ao</msg>
<msg key="Year_must_be_positive">El ao debe ser un nmero positivo</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="es_GT" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="es_GT" charset="ISO-8859-1">
<msg key="12-Hour">12-Horas</msg>
<msg key="24-Hour">24-Horas</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="eu_ES" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="eu_ES" charset="ISO-8859-1">
<msg key="12-Hour">12-Ordu</msg>
<msg key="24-Hour">24-Ordu</msg>
<msg key="Day">Eguna</msg>
<msg key="Element_is_required">%label% beharrezkoa da</msg>
<msg key="Element_is_too_long_Plural">%label% gehiegizko %excess_no_bytes% karaktere ditu.</msg>
......@@ -25,5 +27,7 @@
<msg key="Seconds">Segunduak</msg>
<msg key="Sort_order">ordena</msg>
<msg key="Spellcheck">Ortografia zuzenketa</msg>
<msg key="Tag_handler_invalid_number_of_args">&quot;tag handler&quot;i argumentu kopuru okerra pasatu zaizkio</msg>
<msg key="Template_parser_error_in_parameter_list">Errorea parametro zerrendan</msg>
<msg key="Year">Urtea</msg>
</message_catalog>
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="fi_FI" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="fi_FI" charset="utf-8">
<msg key="required">pakollinen kenttä</msg>
<msg key="Spellcheck">Tarkista oikeinkirjoitus?</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="fr_FR" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="fr_FR" charset="ISO-8859-1">
<msg key="12-Hour">12 heures</msg>
<msg key="24-Hour">24 heures</msg>
......
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="hu_HU" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="hu_HU" charset="utf-8">
<msg key="No_row_pretty_plural">Nincsenek %row_pretty_plural%.</msg>
<msg key="required">kötelező megadni</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="it_IT" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="it_IT" charset="ISO-8859-1">
<msg key="12-Hour">12 ore</msg>
<msg key="24-Hour">24 ore</msg>
<msg key="Day">Giorno</msg>
<msg key="Element_is_required"> necessario impostare %label%</msg>
<msg key="Element_is_too_long_Plural">%label% ha %excess_no_bytes% caratteri di troppo.</msg>
<msg key="Element_is_too_long_Singular">%label% ha un carattere di troppo.</msg>
<msg key="Formats">Formati</msg>
<msg key="Invalid_choice">Scelta non valida</msg>
<msg key="Invalid_currency">Valuta non valida</msg>
<msg key="Invalid_decimal_number">Errore nella parte decimale</msg>
......@@ -10,12 +17,17 @@
<msg key="Invalid_keyword">Parola chiave non valida</msg>
<msg key="Invalid_natural_number">Numero naturale non valido</msg>
<msg key="Invalid_url">Url non valida</msg>
<msg key="Meridian">Meridiano</msg>
<msg key="Minutes">Minuti</msg>
<msg key="Month">Mese</msg>
<msg key="Next_with_arrow">Successivo &gt;&gt;</msg>
<msg key="No_row_pretty_plural">righe</msg>
<msg key="Previous_with_arrow">&lt;&lt; Precedente</msg>
<msg key="required">obbligatorio</msg>
<msg key="Seconds">Secondi</msg>
<msg key="Sort_order">Ordine</msg>
<msg key="Spellcheck">Controllo grammaticale</msg>
<msg key="Tag_handler_invalid_number_of_args">Numero di argomenti inviati al gestore di tag non valido</msg>
<msg key="Template_parser_error_in_parameter_list">Errore nella lista dei parametri</msg>
<msg key="Year">Anno</msg>
</message_catalog>
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="ko_KR" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="ko_KR" charset="utf-8">
<msg key="Invalid_choice">부적합한 선택</msg>
<msg key="Invalid_currency">부적합한 통화</msg>
......
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="ms_MY" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="ms_MY" charset="utf-8">
<msg key="12-Hour">Jam ke 12</msg>
<msg key="24-Hour">24-Jam</msg>
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="nl_NL" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="nl_NL" charset="ISO-8859-1">
<msg key="12-Hour">12-uur</msg>
<msg key="24-Hour">24-uur</msg>
<msg key="CSV">CSV</msg>
<msg key="data">gegevens</msg>
<msg key="Day">Dag</msg>
<msg key="day">dag</msg>
<msg key="Element_is_required">%label% is verplicht</msg>
<msg key="Element_is_too_long_Plural">%label% is %excess_no_bytes% karakters te lang.</msg>
<msg key="Element_is_too_long_Singular">%label% is n karakter te lang.</msg>
<msg key="Formats">Indelingen</msg>
<msg key="hours">uren</msg>
<msg key="Hours_must_be_between_0_and_23">Uren moeten tussen 0 en 23 liggen.</msg>
<msg key="HTMLArea_action_cancel">Annuleren</msg>
<msg key="HTMLArea_ImageAlignment">Uitlijning</msg>
<msg key="HTMLArea_ImageAlignmentBottom">Bodem</msg>
<msg key="HTMLArea_ImageAlignmentLeft">Lijn links uit</msg>
<msg key="HTMLArea_ImageAlignmentMiddle">Midden</msg>
<msg key="HTMLArea_ImageAlignmentRight">Lijn rechts uit</msg>
<msg key="HTMLArea_ImageAlignmentTop">Bovenkant</msg>
<msg key="HTMLArea_ImageAlternateText">Alternatieve tekst voor afbeelding</msg>
<msg key="HTMLArea_ImageAlternateTextToolTip">Geef alternatieve tekst voor afbeelding</msg>
<msg key="HTMLArea_ImageBorderSize">Rand</msg>
<msg key="HTMLArea_ImageBorderSizeToolTip">Randbreedte</msg>
<msg key="HTMLArea_ImageSpacing">Afbeeldingsmarges</msg>
<msg key="HTMLArea_ImageSpacingHorizontal">Horizontaal</msg>
<msg key="HTMLArea_ImageSpacingHorizontalToolTip">Horizontale marge</msg>
<msg key="HTMLArea_ImageSpacingVertical">Verticaal</msg>
<msg key="HTMLArea_ImageSpacingVerticalToolTip">Verticale marge</msg>
<msg key="HTMLArea_ImageURL">URL</msg>
<msg key="HTMLArea_ImageURLToolTip">Afbeeldings-URL</msg>
<msg key="HTMLArea_InsertImageTitle">Afbeelding invoegen</msg>
<msg key="HTMLArea_InsertModifyLink">Koppeling invoegen of wijzigen</msg>
<msg key="HTMLArea_NoAltText">Geen alternatieve tekst opgegeven. Voer er alstublieft n in om de toegangkelijkheid te vergroten.</msg>
<msg key="HTMLArea_NoURL">Geen URL voor afbeelding opgegeven.</msg>
<msg key="HTMLArea_OpenFileStorage">Map openen.</msg>
<msg key="HTMLArea_SelectFile">Selecteer alstublieft een bestand</msg>
<msg key="HTMLArea_SelectFileTitle">Selecteer bestand</msg>
<msg key="HTMLArea_SelectFileUploadTitle">Bestand opladen</msg>
<msg key="HTMLArea_SelectImage">Selecteer alstublieft een afbeelding</msg>
<msg key="HTMLArea_SelectImageNothingSelected">Niets geselecteeerd</msg>
<msg key="HTMLArea_SelectImagePreview">Voorbeeld</msg>
<msg key="HTMLArea_SelectImageTitle">Selecteer afbeelding</msg>
<msg key="HTMLArea_SelectImageUploadNoImage">Selecteer op te laden afbeelding of bestand</msg>
<msg key="HTMLArea_SelectImageUploadTitle">Afbeelding opladen</msg>
<msg key="HTMLArea_SelectUploadBtn">Opladen</msg>
<msg key="HTMLArea_SpecifyUploadFilename">Geef een bestand op om te opladen</msg>
<msg key="Invalid_choice">Ongeldige keuze</msg>
<msg key="Invalid_currency">Ongeldige valuta</msg>
<msg key="Invalid_decimal_number">Ongeldig decimaal getal</msg>
......@@ -17,17 +56,35 @@
<msg key="Invalid_keyword">Ongeldig sleutelwoord</msg>
<msg key="Invalid_natural_number">Ongeldig natuurlijk getal</msg>
<msg key="Invalid_url">Ongeldige url</msg>
<msg key="lt_Checkuncheck_all_rows">Selecteer/deselecteer alle rijen</msg>
<msg key="lt_Checkuncheck_this_row">Selecteer/deselecteer deze rij en kies hieronder een aktie om uit te voeren</msg>
<msg key="lt_Dates_must_be_formatted_">Datum moet ingegeven worden volgens: %format%</msg>
<msg key="lt_day_between_for_month_pretty">De dag moet tussen 1 en %maxdays% liggen voor de maand %month_pretty%.</msg>
<msg key="lt_No_value_supplied_for_-field_pretty-">Geen waarde opgegeven voor %field_pretty%</msg>
<msg key="lt_The_-field_pretty-_must_be_non_negative">De %field_pretty% moet een niet-negatieve integer zijn.</msg>
<msg key="lt_When_specifying_a_non">Indien u een page_size ongelijk aan nul opgeeft, dan moet u ook page_query of page_query_name opgeven</msg>
<msg key="Meridian">Meridiaan</msg>
<msg key="Minutes">Minuten</msg>
<msg key="minutes">minuten</msg>
<msg key="Minutes_must_be_between_0_and_59">Minuten moeten liggen tussen 0 en 59.</msg>
<msg key="Month">Maand</msg>
<msg key="month">maand</msg>
<msg key="Month_must_be_between_1_and_12">Maand moet tussen 1 en 12 liggen</msg>
<msg key="Next_with_arrow">Volgende &gt;&gt;</msg>
<msg key="No_row_pretty_plural">Geen %row_pretty_plural% beschikbaar</msg>
<msg key="Page">Pagina</msg>
<msg key="Page_Size">Paginagrootte</msg>
<msg key="Previous_with_arrow">&lt;&lt; Vorige</msg>
<msg key="required">verplicht</msg>
<msg key="Seconds">Seconden</msg>
<msg key="seconds">seconden</msg>
<msg key="Seconds_must_be_between_0_and_59">Seconden moeten tussen 0 en 59 liggen</msg>
<msg key="Sort_order">Sortering</msg>
<msg key="Spellcheck">Spellingscontrole</msg>
<msg key="Table">Tabel</msg>
<msg key="Tag_handler_invalid_number_of_args">Ongeldig aantal argumenten meegegeven aan de afhandelingsroutine voor deze tag.</msg>
<msg key="Template_parser_error_in_parameter_list">Fout in parameterlijst</msg>
<msg key="Year">Jaar</msg>
<msg key="year">jaar</msg>
<msg key="Year_must_be_positive">Jaar moet positief zijn</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="nn_NO" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="nn_NO" charset="ISO-8859-1">
<msg key="12-Hour">12-timar</msg>
<msg key="24-Hour">24-timar</msg>
<msg key="Day">Dag</msg>
<msg key="Element_is_required">%label% m vere med</msg>
<msg key="Element_is_too_long_Plural">%label% er %excess_no_bytes% teikn for lang.</msg>
<msg key="Element_is_too_long_Singular">%label% er eit teikn for lang.</msg>
<msg key="Formats">Format</msg>
<msg key="Invalid_choice">Ugyldig val</msg>
<msg key="Invalid_currency">Ugyldig mynteining</msg>
<msg key="Invalid_decimal_number">Ugyldig desimaltal</msg>
......@@ -10,11 +17,17 @@
<msg key="Invalid_keyword">Ugyldig nkkel</msg>
<msg key="Invalid_natural_number">Ugyldig naturleg tal</msg>
<msg key="Invalid_url">Ugyldig url</msg>
<msg key="Meridian">Meridian</msg>
<msg key="Minutes">Minutter</msg>
<msg key="Month">Mnad</msg>
<msg key="Next_with_arrow">Neste &gt;&gt;</msg>
<msg key="No_row_pretty_plural">Ingen %row_pretty_plural%</msg>
<msg key="Previous_with_arrow">&lt;&lt; Frre</msg>
<msg key="required">m vere med</msg>
<msg key="Seconds">Sekund</msg>
<msg key="Sort_order">Sorteringsorden</msg>
<msg key="Spellcheck">Stavesjekk</msg>
<msg key="Tag_handler_invalid_number_of_args">Ugyldig antal argument til tag handler.</msg>
<msg key="Template_parser_error_in_parameter_list">Feil i parameterlista</msg>
<msg key="Year">r</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="no_NO" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="no_NO" charset="ISO-8859-1">
<msg key="12-Hour">12-timar</msg>
<msg key="24-Hour">24-timar</msg>
<msg key="Day">Dag</msg>
<msg key="Element_is_required">%label% m vere med</msg>
<msg key="Element_is_too_long_Plural">%label% er %excess_no_bytes% tegn for lang.</msg>
<msg key="Element_is_too_long_Singular">%label% et tegn for lang</msg>
<msg key="Formats">Formater</msg>
<msg key="Invalid_choice">ugyldig valg</msg>
<msg key="Invalid_currency">Ugyldig myntenhet</msg>
<msg key="Invalid_decimal_number">Ugyldig desimaltall</msg>
......@@ -10,11 +17,17 @@
<msg key="Invalid_keyword">Ugyldig nkkel</msg>
<msg key="Invalid_natural_number">Ugyldig naturlig tall</msg>
<msg key="Invalid_url">Ugyldig url</msg>
<msg key="Meridian">Meridian</msg>
<msg key="Minutes">Minutter</msg>
<msg key="Month">Mned</msg>
<msg key="Next_with_arrow">Neste &gt;&gt;</msg>
<msg key="No_row_pretty_plural">Ingen %row_pretty_plural%.</msg>
<msg key="Previous_with_arrow">&lt;&lt; Forrige</msg>
<msg key="required">m vre med</msg>
<msg key="Seconds">Sekunder</msg>
<msg key="Sort_order">Sorteringsrekkeflge</msg>
<msg key="Spellcheck">Stavesjekk</msg>
<msg key="Tag_handler_invalid_number_of_args">Ugyldig antall argumenter til tag handler.</msg>
<msg key="Template_parser_error_in_parameter_list">Feil i parameterlisten</msg>
<msg key="Year">r</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.5" locale="pt_BR" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="pt_BR" charset="ISO-8859-1">
<msg key="12-Hour">12-Horas</msg>
<msg key="24-Hour">24-Horas</msg>
<msg key="CSV">CSV</msg>
<msg key="data">dados</msg>
<msg key="Day">Dia</msg>
<msg key="day">dia</msg>
<msg key="Element_is_required">%label% requerido</msg>
<msg key="Element_is_too_long_Plural">%label% tem %excess_no_bytes% caracteres alm do permitido.</msg>
<msg key="Element_is_too_long_Singular">%label% tem um caracter alm do permitido.</msg>
<msg key="Formats">Formatos</msg>
<msg key="hours">horas</msg>
<msg key="Hours_must_be_between_0_and_23">As horas precisam estar entre 0 e 23</msg>
<msg key="HTMLArea_action_cancel">Cancelar</msg>
<msg key="HTMLArea_ImageAlignment">Alinhamento</msg>
<msg key="HTMLArea_ImageAlignmentBottom">Fundo</msg>
<msg key="HTMLArea_ImageAlignmentLeft">Alinhar esquerda</msg>
<msg key="HTMLArea_ImageAlignmentMiddle">Meio</msg>
<msg key="HTMLArea_ImageAlignmentRight">Alinhar Direita</msg>
<msg key="HTMLArea_ImageAlignmentTop">Alto</msg>
<msg key="HTMLArea_ImageAlternateText">Texto Alternativo para a Imagem</msg>
<msg key="HTMLArea_ImageAlternateTextToolTip">Specificar Texto alternativo para a Imagem</msg>
<msg key="HTMLArea_ImageBorderSize">Borda</msg>
<msg key="HTMLArea_ImageBorderSizeToolTip">Tamanho da Borda</msg>
<msg key="HTMLArea_ImageSpacing">Espaamento</msg>
<msg key="HTMLArea_ImageSpacingHorizontal">Horizontal</msg>
<msg key="HTMLArea_ImageSpacingHorizontalToolTip">Espaamento Horizontal</msg>
<msg key="HTMLArea_ImageSpacingVertical">Vertical</msg>
<msg key="HTMLArea_ImageSpacingVerticalToolTip">Espaamento Vertical</msg>
<msg key="HTMLArea_ImageURL">URL</msg>
<msg key="HTMLArea_ImageURLToolTip">URL da Imagem</msg>
<msg key="HTMLArea_InsertImageTitle">Inserir Imagem</msg>
<msg key="HTMLArea_InsertModifyLink">Inserir/Modificar Link</msg>
<msg key="HTMLArea_NoAltText">Nenhum texto alternativo foi especificado. Por favor adicione um para aumentar a acessibilidade.</msg>
<msg key="HTMLArea_NoURL">Nenhum URL para a Imagem foi especificado</msg>
<msg key="HTMLArea_OpenFileStorage">Abrir Pasta</msg>
<msg key="HTMLArea_SelectFile">Por Favor Selecione um Arquivo</msg>
<msg key="HTMLArea_SelectFileTitle">Selecionar Arquivo</msg>
<msg key="HTMLArea_SelectFileUploadTitle">Enviar Arquivo</msg>
<msg key="HTMLArea_SelectImage">Por favor selecione uma imagem</msg>
<msg key="HTMLArea_SelectImageNothingSelected">Nada Selecionado</msg>
<msg key="HTMLArea_SelectImagePreview">Prever</msg>
<msg key="HTMLArea_SelectImageTitle">Selecionar Imagem</msg>
<msg key="HTMLArea_SelectImageUploadNoImage">Selecionar Imagem ou Enviar Arquivo</msg>
<msg key="HTMLArea_SelectImageUploadTitle">Enviar Imagem</msg>
<msg key="HTMLArea_SelectUploadBtn">Enviar</msg>
<msg key="HTMLArea_SpecifyUploadFilename">Especifique um Arquivo para Enviar</msg>
<msg key="Invalid_choice">Escolha invlida</msg>
<msg key="Invalid_currency">Moeda corrente invlida</msg>
<msg key="Invalid_decimal_number">Nmero decimal invlido</msg>
......@@ -17,17 +56,35 @@
<msg key="Invalid_keyword">Palavra chave invlida</msg>
<msg key="Invalid_natural_number">Nmero natural invlido</msg>
<msg key="Invalid_url">URL invlida</msg>
<msg key="lt_Checkuncheck_all_rows">Marcar/Desmarcar todos as fileiras</msg>
<msg key="lt_Checkuncheck_this_row">Marque/Desmarque essa fileira e selecione uma ao para executar abaixo</msg>
<msg key="lt_Dates_must_be_formatted_">As datas devem ter o formato: %format%</msg>
<msg key="lt_day_between_for_month_pretty">O dia deve estar entre 1 e %maxdays% para o ms de %month_pretty%</msg>
<msg key="lt_No_value_supplied_for_-field_pretty-">Nenhum valor fornecido para %field_pretty%</msg>
<msg key="lt_The_-field_pretty-_must_be_non_negative">O %field_pretty% deve ser um inteiro no-negativo</msg>
<msg key="lt_When_specifying_a_non">Quando estiver especificando um page_size diferente de zero, voc deve prover page_query ou page_query_name</msg>
<msg key="Meridian">Meridiano</msg>
<msg key="Minutes">Minutos</msg>
<msg key="minutes">Minutos</msg>
<msg key="Minutes_must_be_between_0_and_59">Os minutos devem estar entre 0 e 59</msg>
<msg key="Month">Ms</msg>
<msg key="month">Ms</msg>
<msg key="Month_must_be_between_1_and_12">O ms deve estar entre 1 e 12</msg>
<msg key="Next_with_arrow">Prximo &gt;&gt;</msg>
<msg key="No_row_pretty_plural">No h %row_pretty_plural%.</msg>
<msg key="Page">Pgina</msg>
<msg key="Page_Size">Tamanho da Pgina</msg>
<msg key="Previous_with_arrow">&lt;&lt; Anterior</msg>
<msg key="required">Requerido</msg>
<msg key="Seconds">Segundos</msg>
<msg key="seconds">segundos</msg>
<msg key="Seconds_must_be_between_0_and_59">Os segundos devem estar entre 0 e 59</msg>
<msg key="Sort_order">Organizar</msg>
<msg key="Spellcheck">Verificao ortogrfica</msg>
<msg key="Table">Tabela</msg>
<msg key="Tag_handler_invalid_number_of_args">Nmero invlido de argumentos para o tag manipular</msg>
<msg key="Template_parser_error_in_parameter_list">Erro na lista de parmetros</msg>
<msg key="Year">Ano</msg>
<msg key="year">ano</msg>
<msg key="Year_must_be_positive">O ano deve ser positivo</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="pt_PT" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="pt_PT" charset="ISO-8859-1">
<msg key="No_row_pretty_plural">No %row_pretty_plural%.</msg>
</message_catalog>
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="ro_RO" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="ro_RO" charset="utf-8">
<msg key="12-Hour">12-Ore</msg>
<msg key="24-Hour">24-Ore</msg>
<msg key="Day">Zi</msg>
<msg key="Element_is_required">%label% este necesar</msg>
<msg key="Element_is_too_long_Plural">%label% este mai lung cu %excess_no_bytes% caractere.</msg>
<msg key="Element_is_too_long_Singular">%label% este cu un caracter prea lung</msg>
<msg key="Formats">Formate</msg>
<msg key="Invalid_choice">alegere nevalabilă</msg>
<msg key="Invalid_currency">monedă nevalabilă</msg>
<msg key="Invalid_decimal_number">număr zecimal nevalabil</msg>
......@@ -10,11 +17,17 @@
<msg key="Invalid_keyword">cuvânt cheie nevalabil</msg>
<msg key="Invalid_natural_number">număr natural nevalabil</msg>
<msg key="Invalid_url">url nevalabil</msg>
<msg key="Meridian">Meridian</msg>
<msg key="Minutes">Minute</msg>
<msg key="Month">Lună</msg>
<msg key="Next_with_arrow">Înainte &gt;&gt;</msg>
<msg key="No_row_pretty_plural">Nu sunt %row_pretty_plural%</msg>
<msg key="Previous_with_arrow">&lt;&lt; Înapoi</msg>
<msg key="required">necesar</msg>
<msg key="Seconds">Secunde</msg>
<msg key="Sort_order">Ordinea de aranjare</msg>
<msg key="Spellcheck">Verifică Ortografia</msg>
<msg key="Tag_handler_invalid_number_of_args">Numar nevalabil de argumente pentru tag handler</msg>
<msg key="Template_parser_error_in_parameter_list">Eroare în lista de parametri</msg>
<msg key="Year">An</msg>
</message_catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="sv_SE" charset="ISO-8859-1">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="sv_SE" charset="ISO-8859-1">
<msg key="Invalid_choice">Ogiltigt val</msg>
<msg key="Invalid_currency">Ogiltig valuta</msg>
......
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="zh_CN" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="zh_CN" charset="utf-8">
<msg key="12-Hour">12-小时</msg>
<msg key="24-Hour">24-小时</msg>
......@@ -22,7 +22,7 @@
<msg key="Month"></msg>
<msg key="Next_with_arrow">下一个</msg>
<msg key="No_row_pretty_plural">无%row_pretty_plural%</msg>
<msg key="Previous_with_arrow">一个</msg>
<msg key="Previous_with_arrow">一个</msg>
<msg key="required">必填项</msg>
<msg key="Seconds"></msg>
<msg key="Sort_order">排列顺序</msg>
......
<?xml version="1.0" encoding="utf-8"?>
<message_catalog package_key="acs-templating" package_version="5.1.2" locale="zh_TW" charset="utf-8">
<message_catalog package_key="acs-templating" package_version="5.3.0d1" locale="zh_TW" charset="utf-8">
<msg key="12-Hour">12小時</msg>
<msg key="24-Hour">24小時</msg>
<msg key="Day"></msg>
<msg key="Element_is_required">%label%是必填</msg>
<msg key="Element_is_too_long_Plural">%label% 字長超過 %excess_no_bytes% 字.</msg>
<msg key="Element_is_too_long_Singular">%label% 字長超過一字.</msg>
<msg key="Formats">格式</msg>
<msg key="Invalid_choice">無效的選擇</msg>
<msg key="Invalid_currency">無效的貨幣</msg>
<msg key="Invalid_decimal_number">無效的十進位數</msg>
......@@ -10,11 +17,17 @@
<msg key="Invalid_keyword">無效的關鍵字</msg>
<msg key="Invalid_natural_number">無效的自然數</msg>
<msg key="Invalid_url">無效的url</msg>
<msg key="Meridian">正午時刻</msg>
<msg key="Minutes">分鐘</msg>
<msg key="Month"></msg>
<msg key="Next_with_arrow">下一項 &gt;&gt;</msg>
<msg key="No_row_pretty_plural">無 %row_pretty_plural%.</msg>
<msg key="Previous_with_arrow">&lt;&lt; 前一項</msg>
<msg key="required">必填</msg>
<msg key="Seconds"></msg>
<msg key="Sort_order">排序別</msg>
<msg key="Spellcheck">拼字檢查</msg>
<msg key="Tag_handler_invalid_number_of_args">tag handler 的參數數目錯誤</msg>
<msg key="Template_parser_error_in_parameter_list">參數列表錯誤</msg>
<msg key="Year"></msg>
</message_catalog>
......@@ -37,7 +37,7 @@
<tr>
<noparse>
<formgroup id=@elements.id@>
<td>\@formgroup.widget\@</td><td><label for="@elements.form_id@:elements:@elements.id@:\@formgroup.option\@">\@formgroup.label\@</label></td>
<td>\@formgroup.widget;noquote\@</td><td><label for="@elements.form_id@:elements:@elements.id@:\@formgroup.option\@">\@formgroup.label\@</label></td>
</formgroup>
</noparse>
</tr>
......
......@@ -62,7 +62,6 @@
</tr>
</formgroup>
</table>
</noparse>
</if>
......@@ -97,4 +96,4 @@
</else>
</group>
</multiple>
\ No newline at end of file
<table cellspacing="2" cellpadding="2" border="0">
<multiple name=elements>
<multiple name=elements>
<if @elements.section@ not nil>
<fieldset id="@elements.section@" @elements.sec_fieldset;noquote@><!-- section fieldset -->
<legend @elements.sec_legend;noquote@>@elements.sec_legendtext@</legend>
</if>
<group column="section">
<if @elements.widget@ eq "hidden">
<noparse><formwidget id=@elements.id@></noparse>
</if>
<else>
<if @elements.widget@ eq "submit"><!-- if form submit button wrap it in the form-button class -->
<div class="form-button">
<group column="widget">
<noparse><formwidget id="@elements.id@"></noparse>
</group>
</div>
</if>
<else> <!-- wrap the form item in the form-item-wrapper class -->
<div class="form-item-wrapper">
<if @elements.widget@ in radio checkbox> <!-- radio button groups and checkbox groups get their own fieldsets -->
<fieldset @elements.fieldset;noquote@>
<legend @elements.legend;noquote@>@elements.legendtext@</legend>
</if>
<if @elements.label@ not nil>
<noparse>
<if \@formerror.@elements.id@\@ not nil>
<div class="form-label form-label-error">
<if @elements.widget@ in radio checkbox date inform>
@elements.label;noquote@
</if>
<else>
<label for="@elements.id@">@elements.label;noquote@</label>
</else>
</if>
<else>
<div class="form-label">
<if @form_properties.mode@ eq display or @elements.widget@ in radio checkbox date inform>
@elements.label;noquote@
</if>
<else>
<label for="@elements.id@">@elements.label;noquote@</label>
</else>
</else>
</noparse>
<if @elements.section@ not nil>
<tr class="form-section"><th colspan="2">@elements.section;noquote@</th></tr>
</if>
<if @form_properties.show_required_p@ true>
<if @elements.optional@ nil and @elements.mode@ ne "display" and @elements.widget@ ne "inform">
<div class="form-required-mark">
(#acs-templating.required#)
</div>
</if>
</if>
<group column="section">
<if @elements.widget@ eq "hidden">
<noparse><formwidget id=@elements.id@></noparse>
</if>
</div> <!-- /form-label or /form-error -->
</if>
<else>
<noparse>
<if \@formerror.@elements.id@\@ not nil>
<div class="form-error">
</if>
<else>
<div class="form-label">
</else>
</noparse>
<if @elements.optional@ nil and @elements.mode@ ne "display" and @elements.widget@ ne "inform">
<div class="form-required-mark">
#acs-templating.required#
</div>
</if>
<else>
</div><!-- /form-label or /form-error -->
</else>
<if @elements.widget@ eq "submit">
<tr class="form-element">
<td align="left" colspan="2">
<group column="widget">
<noparse><formwidget id="@elements.id@"></noparse>
</group>
</td>
</tr>
</if>
<else>
<tr class="form-element">
<noparse>
<if \@formerror.@elements.id@\@ not nil>
<div class="form-widget form-widget-error">
</if>
<else>
<div class="form-widget">
</else>
</noparse>
<if @elements.widget@ in radio checkbox>
<noparse>
<formgroup id="@elements.id@">
\@formgroup.widget;noquote@
<label for="@elements.form_id@:elements:@elements.id@:\@formgroup.option@">
\@formgroup.label;noquote@
</label><br/>
</formgroup>
</noparse>
</if>
<if @elements.label@ not nil>
<noparse>
<if \@formerror.@elements.id@\@ not nil>
<td class="form-label-error">
</if>
<else>
<td class="form-label">
</else>
</noparse>
@elements.label;noquote@
<if @form_properties.show_required_p@ true>
<if @elements.optional@ nil and @elements.mode@ ne "display" and @elements.widget@ ne "inform"><span class="form-required-mark">*</span></if>
</if>
</td>
</if>
<else>
<td class="form-label">
&nbsp;
</td>
</else>
<else>
<noparse>
<formwidget id="@elements.id@">
</noparse>
</else>
</div> <!-- /form-widget -->
<noparse>
<formerror id="@elements.id@">
<div class="form-error">
\@formerror.@elements.id@;noquote\@
</div> <!-- /form-error -->
</formerror>
</noparse>
<noparse>
<if \@formerror.@elements.id@\@ not nil>
<td class="form-widget-error">
</if>
<else>
<td class="form-widget">
</else>
</noparse>
<if @elements.help_text@ not nil>
<div class="form-help-text">
<img src="/shared/images/info.gif" width="12" height="9" alt="[i]" title="Help text" border="0">
<noparse><formhelp id="@elements.id@"></noparse>
</div> <!-- /form-help-text -->
</if>
<if @elements.widget@ eq radio or @elements.widget@ eq checkbox>
<noparse>
<table class="formgroup">
<formgroup id="@elements.id@">
<tr>
<td>\@formgroup.widget;noquote@</td>
<td class="form-widget">
<label for="@elements.form_id@:elements:@elements.id@:\@formgroup.option@">
\@formgroup.label;noquote@
</label>
</td>
</tr>
</formgroup>
</table>
</noparse>
</if>
<if @elements.widget@ in radio checkbox> <!-- radio button groups and checkbox groups get their own fieldsets -->
</fieldset>
</if>
</div>
</else>
</else>
</group>
<else>
<noparse>
<formwidget id="@elements.id@">
</noparse>
</else>
<noparse>
<formerror id="@elements.id@">
<div class="form-error">
\@formerror.@elements.id@;noquote\@
</div>
</formerror>
</noparse>
<if @elements.help_text@ not nil and @elements.mode@ ne "display">
<div class="form-help-text">
<img src="/shared/images/info.gif" width="12" height="9" alt="[i]" title="Help text" border="0">
<noparse><formhelp id="@elements.id@"></noparse>
</div>
</if>
</td>
</tr>
</else>
</else>
</group>
</multiple>
</table>
<multiple name="elements">
<if @form_properties.show_required_p@ true>
<if @elements.optional@ nil and @elements.mode@ ne "display" and @elements.widget@ ne "inform" and @elements.widget@ ne "hidden" and @elements.widget@ ne "submit">
<span class="form-required-mark">*</span> #acs-templating.required# <% break %>
</if>
</if>
<if @elements.section@ not nil>
</fieldset> <!-- section fieldset -->
</if>
</multiple>
......@@ -11,7 +11,7 @@
<multiple name=elements>
<if @elements.section@ not nil>
<tr><td colspan=2 bgcolor=#eeeeee><b>@elements.section@</b></td></tr>
<tr><td colspan=2 bgcolor=#eeeeee><b>@elements.section;noquote@</b></td></tr>
</if>
<group column="section">
......@@ -27,14 +27,14 @@
<else>
<!-- If the widget is wide, display it in its own section -->
<if @elements.wide@ not nil>
<tr><td colspan=2 bgcolor=#eeeeee><b>@elements.label@</b></td></tr>
<tr><td colspan=2 bgcolor=#eeeeee><b>@elements.label;noquote@</b></td></tr>
<tr><td colspan=2>
</if>
<else>
<tr><td><b>@elements.label@</b>&nbsp;&nbsp;
<if @elements.help_text@ not nil>
<br>&nbsp;&nbsp;
<font size=-1><noparse><formhelp id=@elements.id@></noparse></font><br>
<font size=-1><noparse><formhelp id=@elements.id;noquote@></noparse></font><br>
</if></td>
</else>
......@@ -42,7 +42,7 @@
<if @elements.wide@ not nil>
<if @elements.help_text@ not nil>
&nbsp;&nbsp;
<font size=-1><noparse><formhelp id=@elements.id@></noparse></font><br>
<font size=-1><noparse><formhelp id=@elements.id;noquote@></noparse></font><br>
</if>
</if><else><td></else>
<noparse>
......@@ -61,7 +61,7 @@
</formgroup>
</table>
<formerror id=@elements.id@><br>
<formerror id=@elements.id;noquote@><br>
<font color="red"><b>\@formerror.@elements.id@;noquote\@</b></font>
</formerror>
</noparse>
......@@ -71,12 +71,12 @@
<if @elements.widget@ eq inform>
<if @elements.wide@ not nil>
<noparse>
<formerror id=@elements.id@><br>
<formerror id=@elements.id;noquote@><br>
<font color="red"><b>\@formerror.@elements.id@;noquote\@</b></font><br>
</formerror>
</noparse>
</if><else><td bgcolor=#EEEEEE></else>
<noparse><formwidget id=@elements.id@></noparse>
<noparse><formwidget id=@elements.id;noquote@></noparse>
</td>
</if>
<else>
......@@ -102,7 +102,7 @@
<td align="right" colspan="2">
<multiple name="elements">
<if @elements.widget@ in "submit" "button">
<noparse><formwidget id=@elements.id@></noparse>
<noparse><formwidget id=@elements.id;noquote@></noparse>
</if>
</multiple>
</td>
......
<multiple name="filters">
<p style="margin-top: 0px; margin-bottom: 12px;">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td colspan="3" class="list-filter-header">
......@@ -17,7 +16,7 @@
<tr>
</else>
<td class="list-filter">
<if @filters.selected_p@ true><span class="list-filter-selected">@filters.label@</span></if>
<if @filters.selected_p@ true><strong><span class="list-filter-selected">@filters.label@</span></strong></if>
<else><a href="@filters.url@" title="@filters.url_html_title@">@filters.label@</a></else>
</td>
<td align="right" class="list-filter">
......@@ -31,5 +30,4 @@
</tr>
</group>
</table>
</p>
</multiple>
<div class="@list_properties.class@">
<noparse>
<if \@@list_properties.multirow@:rowcount@ eq 0>
</noparse>
......@@ -6,50 +7,17 @@
</if>
<else>
</noparse>
<script language="JavaScript" type="text/javascript">
function ListFindInput() {
if (document.getElementsByTagName) {
return document.getElementsByTagName('input');
} else if (document.all) {
return document.all.tags('input');
}
return false;
}
function ListCheckAll(listName, checkP) {
var Obj, Type, Name, Id;
var Controls = ListFindInput(); if (!Controls) { return; }
// Regexp to find name of controls
var re = new RegExp('^' + listName + ',.+');
checkP = checkP ? true : false;
for (var i = 0; i < Controls.length; i++) {
Obj = Controls[i];
Type = Obj.type ? Obj.type : false;
Name = Obj.name ? Obj.name : false;
Id = Obj.id ? Obj.id : false;
if (!Type || !Name || !Id) { continue; }
if (Type == "checkbox" && re.exec(Id)) {
Obj.checked = checkP;
}
}
}
function ListBulkActionClick(formName, url) {
if (document.forms == null) return;
if (document.forms[formName] == null) return;
var form = document.forms[formName];
form.action = url;
form.submit();
}
</script>
<if @bulk_actions:rowcount@ gt 0>
<if @list_properties.bulk_action_method@ not nil>
<form name="@list_properties.name@" method="@list_properties.bulk_action_method@">
</if>
<else>
<form name="@list_properties.name@" method="GET">
</else>
<noparse>
@list_properties.bulk_action_export_chunk;noquote@
</noparse>
</if>
<if @actions:rowcount@ gt 0>
<div class="list-button-bar">
......@@ -59,28 +27,22 @@
</div>
</if>
<table class="list-tiny" cellpadding="3" cellspacing="1">
<if @list_properties.bulk_action_method@ not nil>
<form name="@list_properties.name@" method="@list_properties.bulk_action_method@">
</if>
<else>
<form name="@list_properties.name@" method="GET">
</else>
<noparse>
<multiple name="@list_properties.multirow@">
<if \@@list_properties.multirow@.rownum@ odd>
<div class="list-row odd">
</if><else>
<div class="list-row even">
</else>
</noparse>
<p class="list-row">
<listrow>
</p>
</div>
<noparse>
</multiple>
</noparse>
</table>
<if @bulk_actions:rowcount@ gt 0>
<div class="list-button-bar">
<multiple name="bulk_actions">
......@@ -88,10 +50,12 @@
onclick="ListBulkActionClick('@list_properties.name@', '@bulk_actions.url@'); return false;">@bulk_actions.label@</a></span>
</multiple>
</div>
</form>
</if>
</form>
<noparse>
</else>
</noparse>
</div>
This diff is collapsed.
create sequence ad_template_sample_users_seq start with 5 increment by 1;
create table ad_template_sample_users (
user_id integer primary key,
user_id integer
constraint ad_template_sample_users_pk primary key,
first_name varchar2(20),
last_name varchar2(20),
address1 varchar2(40),
......@@ -24,3 +25,8 @@ insert into ad_template_sample_users values
insert into ad_template_sample_users values
(4, 'Yoruba', 'Diaz', '12 Magic Ave.', NULL, 'Lariot', 'WY');
-- load jiml's notes-like package
@@ template-demo-notes-create.sql
@@ template-demo-notes-sample.sql
......@@ -6,5 +6,7 @@
-- $Id$
--
@@ template-demo-notes-drop.sql
drop table ad_template_sample_users;
drop sequence ad_template_sample_users_seq;
......@@ -2,7 +2,8 @@ create sequence ad_template_sample_users_seq start 5 increment 1;
create view ad_template_sample_users_sequence as select nextval('ad_template_sample_users_seq') as nextval;
create table ad_template_sample_users (
user_id integer primary key,
user_id integer
constraint ad_template_sample_users_pk primary key,
first_name varchar(20),
last_name varchar(20),
address1 varchar(40),
......@@ -25,3 +26,7 @@ insert into ad_template_sample_users values
insert into ad_template_sample_users values
(4, 'Yoruba', 'Diaz', '12 Magic Ave.', NULL, 'Lariot', 'WY');
\i template-demo-notes-create.sql
\i template-demo-notes-sample.sql
......@@ -6,5 +6,7 @@
-- $Id$
--
\i template-demo-notes-drop.sql
drop table ad_template_sample_users;
drop sequence ad_template_sample_users_seq;
......@@ -169,9 +169,3 @@ ad_proc adp_parse_ad_conn_file {} {
}
}
ad_proc -public -deprecated -warn ad_template_return {{file_stub ""}} {
Alias proc (wrapper) for ad_return_template
} {
uplevel 1 "ad_return_template $file_stub"
}
......@@ -9,9 +9,11 @@ ad_library {
namespace eval template {}
namespace eval template::apm {}
ad_proc -public template::apm::before_upgrade {
ad_proc -private template::apm::before_upgrade {
{-from_version_name:required}
{-to_version_name:required}
} {
before upgrade apm callback for acs-templating.
} {
apm_upgrade_logic \
-from_version_name $from_version_name \
......@@ -19,7 +21,7 @@ ad_proc -public template::apm::before_upgrade {
-spec {
4.6.4 5.0d1 {
db_transaction {
# Change 'standard-lars' to 'standard'
set package_id [apm_package_id_from_key "acs-templating"]
......@@ -42,7 +44,7 @@ ad_proc -public template::apm::before_upgrade {
set DefaultFormStyle [parameter::get \
-package_id $package_id \
-parameter DefaultFormStyle]
if { [string equal $DefaultFormStyle "standard-lars"] } {
parameter::set_value \
-package_id $package_id \
......@@ -50,7 +52,41 @@ ad_proc -public template::apm::before_upgrade {
-value "standard"
}
}
}
}
}
}
ad_proc -private template::apm::after_upgrade {
{-from_version_name:required}
{-to_version_name:required}
} {
after upgrade apm callback for acs-templating.
} {
apm_upgrade_logic \
-from_version_name $from_version_name \
-to_version_name $to_version_name \
-spec {
5.3.0d1 5.3.0d2 {
db_transaction {
# mount acs-templating so we can address
# executable tcl scripts under www with a url
set package_id [apm_package_id_from_key acs-templating]
array set main_subsite \
[site_node::get_from_url \
-url "/" \
-exact]
set node_id [site_node::new \
-parent_id $main_subsite(node_id) \
-name acs-templating]
site_node::mount -node_id $node_id -object_id $package_id
# acs-templating needs to inherit permissions from
# the main subsite so users can actually read the
# files under it
# acs_object::set_context_id \
-object_id $package_id \
-context_id $main_subsite(object_id)
}
}
}
......
......@@ -28,22 +28,60 @@ ad_proc -public template::util::currency { command args } {
}
ad_proc -public template::util::currency::create {
{leading_symbol {}} {whole_part {}} {separator {}}
{fractional_part {}} {trailing_money {}} {format "$ 5 . 2"}
{leading_symbol {}}
{whole_part {}}
{separator {}}
{fractional_part {}}
{trailing_money {}}
{format "$ 5 . 2"}
} {
Create a currency form element.
@param leading_symbol The leading symbol for the currency format (default: "$")
@param whole_part The number of digits in the whole part of the value (default: 5)
@param separator The character the separates the whole part from the fractional part
(default ".")
@param fractional_part The number of digits allowed in the fractional part of the
value (default: 2, i.e. US Pennies)
@param trailing_money For those currencies that use a trailing rather than leading
character in their normal representation
@param format The actual format to use in list form
@return The parameters joined in a six-element list
} {
return [list $leading_symbol $whole_part $separator $fractional_part $trailing_money $format]
}
ad_proc -public template::util::currency::acquire { type { value "" } } {
ad_proc -public template::util::currency::acquire {
type
{ value "" }
} {
Create a new currency value with some predefined value
Basically, create and set the currency value
@param type The set_property type to set (only sql_number supported currently)
@return The new currency value set to the predefined value
} {
set currency_list [template::util::currency::create]
return [template::util::currency::set_property $type $currency_list $value]
}
ad_proc -public template::data::validate::currency { value_ref message_ref } {
ad_proc -public template::data::validate::currency {
value_ref
message_ref
} {
form validation for currency type.
Should validate according to locale for example, the following forms: "$2.03"
"Rs 50.42" "12.52L" "Y5,13c"
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning error messages
@return true (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
# a currency is a 6 element list supporting, for example, the following forms: "$2.03" "Rs 50.42" "12.52L" "Y5,13c"
......@@ -71,9 +109,16 @@ ad_proc -public template::data::validate::currency { value_ref message_ref } {
} else {
return 1
}
}
}
ad_proc -private template::data::transform::currency {
element_ref
} {
Transform the previously-validated submitted form data into a six-element currency list
ad_proc -public template::data::transform::currency { element_ref } {
@param element_ref Reference variable to the form element
} {
upvar $element_ref element
set element_id $element(id)
......@@ -84,7 +129,7 @@ ad_proc -public template::data::transform::currency { element_ref } {
}
# a currency is a 6 element list supporting, for example, the following forms: "$2.03" "Rs 50.42" "12.52L" "Y5,13c"
set have_values 0
for { set i 0 } { $i <= 4 } { incr i } {
......@@ -130,7 +175,24 @@ ad_proc -public template::data::transform::currency { element_ref } {
}
}
ad_proc -public template::util::currency::set_property { what currency_list value } {
ad_proc -public template::util::currency::set_property {
what
currency_list
value
} {
Set a currency value to a set value, with that value being of "what"
form. Currently the only "what" supported is sql_number, it being assumed
(somewhat reasonably) that SQL's NUMERIC datatype will be used to store
currency data in the database, regardless of locale.
@param what What kind of value is being passed in (sql_number is the only
format supported)
@param currency_list A currency data type value
@param value The value to set currency_list to
@return currency_list set to value
} {
# Erase leading zeroes from the value, but make sure that 00
# is not completely erased
......@@ -161,12 +223,19 @@ ad_proc -public template::util::currency::set_property { what currency_list valu
}
}
ad_proc -public template::util::currency::get_property { what currency_list } {
ad_proc -public template::util::currency::get_property {
what
currency_list
} {
Return a property of a currency list which was created by a
currency widget.
@param what the name of the property (see code for allowed values)
The most useful properties that can be returned are sql_number (compatible with
SQL's NUMERIC type, historically called NUMBER by Oracle) and display_currency,
which takes the value and formats properly.
@param what The name of the property (see code for allowed values)
@param currency_list a currency widget list, usually created with ad_form
......@@ -235,11 +304,24 @@ ad_proc -public template::util::currency::get_property { what currency_list } {
}
ad_proc -public template::widget::currency {
element_reference tag_attributes {mode edit}
element_reference
tag_attributes
{mode edit}
} {
Render a currency widget.
By default, the currency widget takes the form $ddddd.dd, i.e. US dollars
and cents. You can optionally pass along a format for different currency.
@param element_reference Reference variable to the form element
@param tag_attributes HTML attributes to add to the tag
@param mode If edit, the rendered widget allows input, otherwise the values
are passed along as hidden input HTML tags
@return Form HTML for widget
} {
upvar $element_reference element
if { [info exists element(html)] } {
array set attributes $element(html)
}
......@@ -267,16 +349,15 @@ ad_proc -public template::widget::currency {
set trailing_zero [string range [string repeat "0" $format_property] [string length $value] end]
}
if { $i == 0 || $i == 2 || $i == 4 } {
append output "$format_property<input type=\"hidden\" name=\"$element(name).$i\" value=\"$format_property\" />"
append output "$format_property<input type=\"hidden\" name=\"$element(name).$i\" value=\"$format_property\" >"
} elseif { [string equal $element(mode) "edit"] && ($i == 1 || $i == 3) } {
append output "<input type=\"text\" name=\"$element(name).$i\" maxlength=\"$format_property\" size=\"$format_property\" value=\"$value$trailing_zero\" />\n"
append output "<input type=\"text\" name=\"$element(name).$i\" maxlength=\"$format_property\" size=\"$format_property\" value=\"$value$trailing_zero\" >\n"
} else {
append output "$value$trailing_zero<input type=\"hidden\" name=\"$element(name).$i\" maxlength=\"$format_property\" size=\"$format_property\" value=\"$value\" />"
append output "$value$trailing_zero<input type=\"hidden\" name=\"$element(name).$i\" maxlength=\"$format_property\" size=\"$format_property\" value=\"$value\" >"
}
incr i
}
append output "<input type=\"hidden\" name=\"$element(name).format\" value=\"$element(format)\" />\n"
append output "<input type=\"hidden\" name=\"$element(name).format\" value=\"$element(format)\" >\n"
return $output
}
......@@ -32,7 +32,18 @@ ad_proc -public template::data::validate { type value_ref message_ref } {
return [validate::$type $value_ref $message_ref]
}
ad_proc -public template::data::validate::integer { value_ref message_ref } {
ad_proc -public template::data::validate::integer {
value_ref
message_ref
} {
Validate that a submitted integer contains only an optional sign and
the digits 0-9.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -45,11 +56,21 @@ ad_proc -public template::data::validate::integer { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::naturalnum { value_ref message_ref } {
Validates natural numbers data types
Will trim leading 0 in order to avoid TCL interpreting it as octal in the future
(code borrowed from ad_page_contract_filter_proc_naturalnum)
ad_proc -public template::data::validate::naturalnum {
value_ref
message_ref
} {
Validates natural numbers data types.
Will trim leading 0 in order to avoid TCL interpreting it as octal (code borrowed
from ad_page_contract_filter_proc_naturalnum)
@author Rocael Hernandez <roc@viaro.net>
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -62,7 +83,18 @@ ad_proc -public template::data::validate::naturalnum { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::float { value_ref message_ref } {
ad_proc -public template::data::validate::float {
value_ref
message_ref
} {
Validate that a submitted fla contains only an optional sign, and a whole part
and fractional part.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -76,9 +108,18 @@ ad_proc -public template::data::validate::float { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::boolean { value_ref message_ref } {
Validates boolean data types
ad_proc -public template::data::validate::boolean {
value_ref
message_ref
} {
Validates boolean data types.
@author Roberto Mello <rmello at fslc.usu.edu>
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -108,19 +149,47 @@ ad_proc -public template::data::validate::boolean { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::text { value_ref message_ref } {
ad_proc -public template::data::validate::text {
value_ref
message_ref
} {
Validate that submitted text is valid. Hmmm ... all submitted text is valid,
that's easy!
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
# anything is valid for text
@return True (1)
} {
return 1
}
ad_proc -public template::data::validate::string { value_ref message_ref } {
ad_proc -public template::data::validate::string {
value_ref
message_ref
} {
Validate that a submitted string is valid. Hmmm ... all submitted strings are valid,
that's easy!
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
# anything is valid for string
@return True (1)
} {
return 1
}
ad_proc -public template::data::validate::keyword { value_ref message_ref } {
ad_proc -public template::data::validate::keyword {
value_ref
message_ref
} {
Validate that a submitted keyword consists of alphnumeric or "_" characters.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -133,7 +202,18 @@ ad_proc -public template::data::validate::keyword { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::filename { value_ref message_ref } {
ad_proc -public template::data::validate::filename {
value_ref
message_ref
} {
Validate that a submitted filename consists of alphanumeric, "_", or
"-" characters.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -146,7 +226,17 @@ ad_proc -public template::data::validate::filename { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::email { value_ref message_ref } {
ad_proc -public template::data::validate::email {
value_ref
message_ref
} {
Validate that a submitted email address is syntactically correct.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -159,7 +249,18 @@ ad_proc -public template::data::validate::email { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::url { value_ref message_ref } {
ad_proc -public template::data::validate::url {
value_ref
message_ref
} {
Validate that a submitted url is correct. Accepts an optional http:// or
https:// prefix, path, and query string.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -173,7 +274,10 @@ ad_proc -public template::data::validate::url { value_ref message_ref } {
return $result
}
ad_proc -public template::data::validate::url_element { value_ref message_ref } {
ad_proc -public template::data::validate::url_element {
value_ref
message_ref
} {
Beautiful URL elements that may only contain lower case
characters, numbers and hyphens.
......@@ -185,6 +289,10 @@ ad_proc -public template::data::validate::url_element { value_ref message_ref }
@author Tilmann Singer
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
......@@ -198,23 +306,55 @@ ad_proc -public template::data::validate::url_element { value_ref message_ref }
return $result
}
ad_proc -public template::data::validate::date { value_ref message_ref } {
ad_proc -public template::data::validate::date {
value_ref
message_ref
} {
Validate that a submitted date conforms to the template system's notion
of what a date should be.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if valid, false (0) if not
} {
upvar 2 $message_ref message $value_ref value
return [template::util::date::validate $value message]
}
# It was necessary to declare a datatype of "search" in order for the
# transformation to be applied correctly. In reality, the transformation
# should be on the element, not on the datatype.
ad_proc -public template::data::validate::search { value_ref message_ref } {
ad_proc -public template::data::validate::search {
value_ref
message_ref
} {
It was necessary to declare a datatype of "search" in order for the
transformation to be applied correctly. In reality, the transformation
should be on the element, not on the datatype.
DRB: in practice a template form datatype is defined by the presence of a
validate procdure for that type.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1)
} {
return 1
}
ad_proc -public template::data::transform { type value_ref } {
ad_proc -public template::data::transform {
type
value_ref
} {
Dispatch procedure for the transform method. "tranformation" in template
systemspeak means to convert the submitted data to the custom datatype structure,
usually a list for complex datatypes, just the value for simple datatypes. The
transform method is called after the datatype is validated.
@param type The data type to be transformed.
} {
set proc_name [info procs ::template::data::transform::$type]
......
This diff is collapsed.
......@@ -21,7 +21,11 @@
namespace eval template {}
ad_proc -public template::parse_directives { code } {
ad_proc -public template::parse_directives {
code
} {
Parse out directives embedded in the code parameter.
} {
# remove carriage returns if present
regsub -all {\r|\r\n} $code {\n} code
......@@ -160,6 +164,8 @@ ad_proc -public template::get_datasources { code } {
}
ad_proc -public template::verify_datasources {} {
@return True (1)
} {
return 1
}
......@@ -68,8 +68,6 @@ ad_proc -public template::element::create { form_id element_id args } {
@option label The label for the form element.
@option section The section name for the element.
@option html A list of name-value attribute pairs to include in
the HTML tag for widget. Typically used for additional
formatting options, such as <tt>cols</tt> or
......@@ -84,6 +82,15 @@ ad_proc -public template::element::create { form_id element_id args } {
two-element lists in the form
{ {label value} {label value} {label value} ...}
@option fieldset A list of name-value attribute pairs to include in
the HTML tag for checkboxes and radio FIELDSET.
@option legend A list of name-value attribute pairs to include in
the HTML tag for checkboxes and radio LEGEND.
@option legendtext A text for the LEGEND tag to include in
the checkboxes and radio FIELDSET block
@option value The default value of the element
@option values The default values of the element, where multiple values
......@@ -97,7 +104,7 @@ ad_proc -public template::element::create { form_id element_id args } {
1 or 0, and message is to be displayed to the user when
the validation step fails, that is, if the expression
evaluates to 0. Use the special variable <tt>$value</tt>
to refer to the value entered by the user in that field.
to refer to the value entered by the user in that field.
@option sign specify for a hidden widget that its value should be
signed
......@@ -132,6 +139,7 @@ ad_proc -public template::element::create { form_id element_id args } {
@see template::widget
@see template::data::validate
@see template::form::create
@see template::form::section
} {
set level [template::adp_level]
......@@ -164,6 +172,11 @@ ad_proc -public template::element::create { form_id element_id args } {
# set the form section
set opts(section) $form_properties(section)
if { ![string equal $opts(section) ""] } {
set opts(sec_fieldset) $form_properties(sec_fieldset)
set opts(sec_legend) $form_properties(sec_legend)
set opts(sec_legendtext) $form_properties(sec_legendtext)
}
template::util::get_opts $args
......@@ -183,6 +196,49 @@ ad_proc -public template::element::create { form_id element_id args } {
if { ! [info exists opts(label)] } { set opts(label) $opts(value) }
}
# If the widget is a checkbox or radio widget, set attributes
if { [string equal $opts(widget) radio] || \
[string equal $opts(widget) checkbox] } {
# set fieldset attributes
if { ![info exists opts(fieldset)] } {
set opts(fieldset) [list class $opts(widget)]
}
array set fs_attributes $opts(fieldset)
if { ![info exists fs_attributes(class)] } {
set fs_attributes(class) $opts(widget)
}
set fs_options ""
foreach name [array names fs_attributes] {
if { [string equal $fs_attributes($name) {}] } {
append fs_options " $name"
} else {
append fs_options " $name=\"$fs_attributes($name)\""
}
}
set opts(fieldset) $fs_options
# set legend attributes
if { ![info exists opts(legendtext)] } {
set opts(legendtext) ""
}
if { ![info exists opts(legend)] } {
set opts(legend) {}
}
array set lg_attributes $opts(legend)
set lg_options ""
foreach name [array names lg_attributes] {
if { [string equal $lg_attributes($name) {}] } {
append lg_options " $name"
} else {
append lg_options " $name=\"$lg_attributes($name)\""
}
}
set opts(legend) $lg_options
}
# Remember that the element has not been rendered yet
set opts(is_rendered) f
......
......@@ -40,7 +40,17 @@ ad_proc -public template::data::validate::file { value_ref message_ref } {
return 1
}
ad_proc -public template::util::file::get_property { what file_list } {
ad_proc -public template::util::file::get_property {
what
file_list
} {
Return a property from a file datatype structure.
@param what Which property to return (filename, etc).
@param file_list The file datatype structure.
@return The requested property from the file datatype structure.
} {
switch $what {
filename {
......@@ -55,3 +65,4 @@ ad_proc -public template::util::file::get_property { what file_list } {
}
}
......@@ -19,24 +19,23 @@ ad_proc -public template::forward { url args } {
@see ad_cache_returnredirect
} {
# DRB: The code that was here before didn't preserve the protocol, always
# using HTTP even if HTTPS was used to establish the connection. Besides
# which ad_returnredirect has funky checks for even funkier browsers, and
# is therefore not only the standard way to redirect in OpenACS 4 but
# more robust as well.
# DRB: The code that was here before didn't preserve the protocol, always
# using HTTP even if HTTPS was used to establish the connection. Besides
# which ad_returnredirect has funky checks for even funkier browsers, and
# is therefore not only the standard way to redirect in OpenACS 4 but
# more robust as well.
set cache_p [lindex $args 0]
set cache_p [lindex $args 0]
if { [string equal $cache_p "t"] } {
set persistent_p [lindex $args 1]
if { [string equal $cache_p "t"] } {
set persistent_p [lindex $args 1]
set excluded_vars [lindex $args 2]
ad_cache_returnredirect $url $persistent_p $excluded_vars
} else {
ad_cache_returnredirect $url $persistent_p $excluded_vars
} else {
ad_returnredirect $url
}
ad_script_abort
}
ad_script_abort
}
ad_proc -public template::filter { command args } {
......@@ -45,22 +44,22 @@ ad_proc -public template::filter { command args } {
a reference (not the value) to a variable containing the URL of
the template to parse. The filter procedure may modify this.
} {
variable filter_list
variable filter_list
set arg1 [lindex $args 0]
set arg2 [lindex $args 1]
set arg1 [lindex $args 0]
set arg2 [lindex $args 1]
switch -exact $command {
switch -exact $command {
add { lappend filter_list $arg1 }
add { lappend filter_list $arg1 }
exec {
upvar $arg1 url $arg2 root_path
foreach proc_name $filter_list { $proc_name url root_path }
}
exec {
upvar $arg1 url $arg2 root_path
foreach proc_name $filter_list { $proc_name url root_path }
}
default { error "Invalid filter command: must be add or exec" }
}
default { error "Invalid filter command: must be add or exec" }
}
}
# DRB: The following debugging filters weren't integrated with OpenACS.
......@@ -73,56 +72,55 @@ ad_proc -public template::filter { command args } {
ad_proc -public cmp_page_filter { why } {
Show the compiled template (for debugging)
} {
if { [catch {
set url [ns_conn url]
regsub {.cmp} $url {} url_stub
regexp {^/([^/]*)(.*)} $url_stub all package_key rest
set file_stub "[acs_root_dir]/packages/$package_key/www$rest"
if { [catch {
set url [ns_conn url]
regsub {.cmp} $url {} url_stub
regexp {^/([^/]*)(.*)} $url_stub all package_key rest
set file_stub "[acs_root_dir]/packages/$package_key/www$rest"
set beginTime [clock clicks -milliseconds]
set beginTime [clock clicks -milliseconds]
set output "<pre>[ns_quotehtml \
[template::adp_compile -file $file_stub.adp]]</pre>"
set output "<pre>[ns_quotehtml [template::adp_compile -file $file_stub.adp]]</pre>"
set timeElapsed [expr ([clock clicks -milliseconds] - $beginTime)]
ns_log debug "cmp_page_filter: Time elapsed: $timeElapsed"
set timeElapsed [expr ([clock clicks -milliseconds] - $beginTime)]
ns_log debug "cmp_page_filter: Time elapsed: $timeElapsed"
} errMsg] } {
global errorInfo
set output <html><body><pre>$errorInfo</pre></body></html>
}
} errMsg] } {
global errorInfo
set output <html><body><pre>[ad_quotehtml $errorInfo]</pre></body></html>
}
ns_return 200 text/html $output
ns_return 200 text/html $output
return filter_return
return filter_return
}
ad_proc -public dat_page_filter { why } {
Show the comments for the template (for designer)
} {
if { [catch {
set url [ns_conn url]
regsub {.dat} $url {} url_stub
regexp {^/([^/]*)(.*)} $url_stub all package_key rest
set code_stub "[acs_root_dir]/packages/$package_key/www$rest"
if { [catch {
set url [ns_conn url]
regsub {.dat} $url {} url_stub
regexp {^/([^/]*)(.*)} $url_stub all package_key rest
set code_stub "[acs_root_dir]/packages/$package_key/www$rest"
set beginTime [clock clicks -milliseconds]
set beginTime [clock clicks -milliseconds]
set file_stub [template::get_resource_path]/messages/datasources
set file_stub [template::get_resource_path]/messages/datasources
set output [template::adp_parse $file_stub [list code_stub $code_stub]]
set output [template::adp_parse $file_stub [list code_stub $code_stub]]
set timeElapsed [expr ([clock clicks -milliseconds] - $beginTime)]
ns_log debug " dat_page_filter: Time elapsed: $timeElapsed"
set timeElapsed [expr ([clock clicks -milliseconds] - $beginTime)]
ns_log debug " dat_page_filter: Time elapsed: $timeElapsed"
} errMsg] } {
global errorInfo
set output <html><body><pre>$errorInfo</pre></body></html>
}
} errMsg] } {
global errorInfo
set output <html><body><pre>$errorInfo</pre></body></html>
}
ns_return 200 text/html $output
ns_return 200 text/html $output
return filter_return
return filter_return
}
# Return the auto-generated template for a form
......@@ -135,42 +133,41 @@ namespace eval template {
originally handled inline but doing so screwed up the query
processor.
} {
set url [ns_conn url]
regsub {.frm} $url {} url_stub
regexp {^/([^/]*)(.*)} $url_stub all package_key rest
set __adp_stub "[acs_root_dir]/packages/$package_key/www$rest"
set url [ns_conn url]
regsub {.frm} $url {} url_stub
regexp {^/([^/]*)(.*)} $url_stub all package_key rest
set __adp_stub "[acs_root_dir]/packages/$package_key/www$rest"
# Set the parse level
variable parse_level
lappend parse_level [info level]
# Set the parse level
variable parse_level
lappend parse_level [info level]
# execute the code to prepare the form(s) for a template
adp_prepare
# execute the code to prepare the form(s) for a template
adp_prepare
# get the form template
return [form::template [ns_queryget form_id] [ns_queryget form_style]]
# get the form template
return [form::template [ns_queryget form_id] [ns_queryget form_style]]
}
}
ad_proc -public frm_page_filter { why } {
ad_proc -private frm_page_filter { why } {
Return the form data for a request for .frm
} {
if { [catch {
set beginTime [clock clicks -milliseconds]
set beginTime [clock clicks -milliseconds]
set output [template::frm_page_handler]
set output [template::frm_page_handler]
set timeElapsed [expr ([clock clicks -milliseconds] - $beginTime)]
ns_log debug "frm_page_filter: Time elapsed: $timeElapsed"
set timeElapsed [expr ([clock clicks -milliseconds] - $beginTime)]
ns_log debug "frm_page_filter: Time elapsed: $timeElapsed"
} errMsg] } {
global errorInfo
set output $errorInfo
global errorInfo
set output $errorInfo
}
ns_return 200 text/html "<html>
<body>
<pre>[ns_quotehtml $output]</pre>
</body></html>"
ns_return 200 text/html "<html><body><pre>[ns_quotehtml $output]</pre></body></html>"
return filter_return
return filter_return
}
......@@ -120,6 +120,12 @@ ad_proc -public template::form::create { id args } {
} {
set level [template::adp_level]
# bump the form_count for widgets that use javascript to navigate through
# the form (liberated from my Greenpeace work ages ago)
global ad_conn
incr ad_conn(form_count)
# keep form properties and a list of the element items
upvar #$level $id:elements elements $id:properties opts
......@@ -379,19 +385,53 @@ ad_proc -private template::form::generate { id { style "" } } {
return [template::adp_eval code]
}
ad_proc -public template::form::section { id section } {
Set the name of the current section of the form. A form may be
divided into any number of sections for layout purposes. Elements
are tagged with the current section name as they are added to the
form. A form style template may insert a divider in the form
whenever the section name changes.
@param id The form identifier.
@param section The name of the current section.
ad_proc -public template::form::section {
{-fieldset ""}
{-legendtext ""}
{-legend ""}
id
section
} {
get_reference
set properties(section) $section
Set the current section (fieldset) of the form. A form may be
divided into any number of fieldsets to group related
elements. Elements are tagged with the current fieldset properties
as they are added to the form. A form style template may insert a
divider in the form whenever the fieldset identifier changes.
@param id The form identifier.
@param section The current fieldset identifier
@param fieldset A list of name-value attribute pairs for the FIELDSET tag
@param legendtext The legend text
@param legend A list of name-value attribute pairs for the LEGEND tag
} {
get_reference
set properties(section) $section
set properties(sec_legendtext) $legendtext
# fieldset attributes
set properties(sec_fieldset) ""
array set fs_attributes $fieldset
foreach name [array names fs_attributes] {
if { [string equal $fs_attributes($name) {}] } {
append properties(sec_fieldset) " $name"
} else {
append properties(sec_fieldset) " $name=\"$fs_attributes($name)\""
}
}
# legend attributes
set properties(sec_legend) ""
if { ![string eq $legendtext ""] } {
array set lg_attributes $legend
foreach name [array names lg_attributes] {
if { [string equal $lg_attributes($name) {}] } {
append properties(sec_legend) " $name"
} else {
append properties(sec_legend) " $name=\"$lg_attributes($name)\""
}
}
}
}
ad_proc -private template::form::render { id tag_attributes } {
......@@ -507,6 +547,12 @@ ad_proc -private template::form::render { id tag_attributes } {
set output "<form name=\"$id\" method=\"$properties(method)\"
action=\"$properties(action)\""
### 2/17/2007
### Adding a default class for forms if one does not exist
if {![info exists attributes(class)]} {
append output " class=\"margin-form\""
}
# append attributes to form tag
foreach name [array names attributes] {
if { [string equal $attributes($name) {}] } {
......@@ -518,6 +564,26 @@ ad_proc -private template::form::render { id tag_attributes } {
append output ">"
### 2/11/2007
### Adding Form Fieldset legend and attributes
if { [info exists properties(fieldset)] } {
# Fieldset
append output " <fieldset"
set fieldset_list $properties(fieldset)
foreach {fa_name fa_value} [lindex $fieldset_list 0] {
append output " $fa_name=\"$fa_value\""
}
append output ">"
# Legend
set fieldset_legend [lindex $fieldset_list 1]
append output "<legend>$fieldset_legend</legend>"
} else {
append output "<fieldset><legend></legend>"
}
# Export form ID and current form mode
append output [export_vars -form { { form\:id $id } { form\:mode $properties(mode) } }]
......@@ -771,7 +837,7 @@ ad_proc -public template::form::export {} {
append export_data "
<input type=\"hidden\" name=\"$key\"
value=\"[template::util::quote_html $value]\" />"
value=\"[template::util::quote_html $value]\" >"
}
return $export_data
......
This diff is collapsed.
namespace eval template {}
ad_library {
Provides procedures needed to determine mime type required for the
client browser, as
well as other additional header information.
client browser, as well as other additional header information.
@author Shan Shan Huang (shuang@arsdigita.com)
@creation-date 12 January 2001
@cvs-id $Id$
}
ad_proc -public template::register_mime_type { mime_type file_extension
header_preamble } {
if { [info exists template_extension($mime_type)] } {
nsv_unset template_extension($mime_type)
}
if { [info exists template_header_preamble($mime_type)] } {
unset template_header_preamble($mime_type)
}
nsv_set template_extension $mime_type $file_extension
nsv_set template_header_preamble $mime_type $header_preamble
}
ad_proc -public template::register_mime_type { mime_type file_extension header_preamble } {
sets the template_extension and template_header_preamble nsv's with the
provided data.
} {
if { [info exists template_extension($mime_type)] } {
nsv_unset template_extension($mime_type)
}
if { [info exists template_header_preamble($mime_type)] } {
unset template_header_preamble($mime_type)
}
nsv_set template_extension $mime_type $file_extension
nsv_set template_header_preamble $mime_type $header_preamble
}
ad_proc -public template::get_mime_template_extension { mime_type } {
if { [nsv_exists template_extension $mime_type] } {
return [nsv_get template_extension $mime_type]
} else {
return "adp"
}
@return the template extension associated with mime_type (default "adp")
} {
if { [nsv_exists template_extension $mime_type] } {
return [nsv_get template_extension $mime_type]
} else {
return "adp"
}
}
ad_proc -public template::get_mime_header_preamble { mime_type } {
if { [nsv_exists template_header_preamble $mime_type] } {
return [nsv_get template_header_preamble $mime_type]
} else {
return ""
}
@return the mime_header preamble if exists otherwise ""
} {
if { [nsv_exists template_header_preamble $mime_type] } {
return [nsv_get template_header_preamble $mime_type]
} else {
return ""
}
}
ad_proc -public template::get_mime_type {} {
gets the mimetype from the outputheaders and if missing guesses
text/html
} {
if {[ns_conn isconnected]} {
set mime_type [ns_set iget [ns_conn outputheaders] "content-type"]
} else {
......
......@@ -100,7 +100,7 @@ ad_proc -public template::paginator::create { statement_name name query args } {
if { ([string equal $row_ids {}] && ![nsv_exists __template_cache_timeout $cache_key]) || ([info exists opts(flush_p)] && [string equal $opts(flush_p) "t"]) } {
if { [info exists opts(printing_prefs)] && ![empty_string_p $opts(printing_prefs)] } {
ReturnHeadersNoCache "text/html"
ReturnHeaders "text/html"
ns_write "
<html>
<head>"
......
This diff is collapsed.
......@@ -646,6 +646,8 @@ ad_proc -public template::multirow {
<dd> evaluate code block for each row (like db_foreach)</dd>
<dt> <b>template::multirow upvar datasource [new_name]</b></dt>
<dd> upvar the multirow, aliasing to new_name if provided</dd>
<dt> <b>template::multirow unset datasource</b></dt>
<dd> unset multirow</dd>
<dt> <b>template::multirow sort datasource -lsort-switch -lsort-switch col1 col2</b></dt>
<dd> Sort the multirow by the column(s) specified. The value sorted by will be the the values of the columns specified, separated by the space character. Any switches specified before the columns will be passed directly to the lsort command. </dd>
<dt> <b>template::multirow exists datasource</b></dt>
......
......@@ -22,7 +22,12 @@
namespace eval template {}
namespace eval template::request {}
ad_proc -public template::request { command args } {
ad_proc -public template::request {
command
args
} {
Dispatch procedure for requests.
} {
eval request::$command $args
}
......
......@@ -27,6 +27,8 @@ ad_proc -public template::util::richtext_or_file::create {
{filename {}}
{tmp_filename {}}
{content_url {}}
} {
Create a richtext_or_file datastructure.
} {
return [list $storage_type $mime_type $text $filename $tmp_filename $content_url]
}
......@@ -56,7 +58,19 @@ ad_proc -public template::util::richtext_or_file::format_options {} {
}
}
ad_proc -public template::data::validate::richtext_or_file { value_ref message_ref } {
ad_proc -public template::data::validate::richtext_or_file {
value_ref
message_ref
} {
Validate submitted richtext_or_file by checking that the format is valid, HTML doesn't
contain illegal tags, etc.
@param value_ref Reference variable to the submitted value
@param message_ref Reference variable for returning an error message
@return True (1) if the submitted value is valid, false (0) otherwise
} {
upvar 2 $message_ref message $value_ref richtext_or_file_list
......@@ -84,7 +98,16 @@ ad_proc -public template::data::validate::richtext_or_file { value_ref message_r
return 1
}
ad_proc -public template::data::transform::richtext_or_file { element_ref } {
ad_proc -public template::data::transform::richtext_or_file {
element_ref
} {
Transform submitted data into a valid richtext_or_file data structure (list)
@param element_ref Reference variable to the form element
@return Submitted data in the richtext_or_datafile list form
} {
upvar $element_ref element
set element_id $element(id)
......@@ -226,8 +249,18 @@ ad_proc -public template::util::richtext_or_file::get_property { what richtext_o
}
}
ad_proc -public template::widget::richtext_or_file { element_reference tag_attributes } {
ad_proc -public template::widget::richtext_or_file {
element_reference
tag_attributes
} {
Render a richtext_or_file widget
@param element_reference Reference variable to the form element
@param tag_attributes Attributes to include in the generated HTML
@return Form HTML for the widget
} {
upvar $element_reference element
if { [info exists element(html)] } {
......
This diff is collapsed.
......@@ -85,7 +85,7 @@ db_transaction {
}
# Some five-char aspell dicts (locales) are missing in ad_locales so we
# need to catch those cases and use the locale as the pretty name, ugh ...
if { [catch { lappend wanted_dicts [list [string totitle [ad_locale_get_label $dict]] $dict] }] } {
if { [catch { lappend wanted_dicts [list [string totitle [lang::util::get_label $dict]] $dict] }] } {
lappend wanted_dicts [list "Locale $dict" $dict]
}
}
......
......@@ -49,6 +49,11 @@ ad_proc -public template::data::transform::spellcheck {
-element_ref:required
-values:required
} {
Tranform submitted and previously validated input into a spellcheck datastructure.
@param element_ref Reference variable to the form element.
@param values The set of values for that element.
} {
upvar $element_ref element
......@@ -108,7 +113,7 @@ ad_proc -public template::data::transform::spellcheck {
# form data by richtext validation DAVEB
template::element::set_properties $element(form_id) $element(id) -datatype text
append formtext_to_display "
<input type=\"hidden\" name=\"$element(id).format\" value=\"$format\" />"
<input type=\"hidden\" name=\"$element(id).format\" value=\"$format\" >"
}
# This is needed in order to display the form text noquoted in the "show errors" page ...
......@@ -290,7 +295,7 @@ ad_proc -public template::util::spellcheck::get_element_formtext {
set wordlen [string length $errword]
if { [string equal "miss" $errtype] } {
regsub "\#$errnum\#" $formtext "<input type=\"text\" name=\"${var_to_spellcheck}.error_$errnum\" value=\"$errword\" size=\"$wordlen\" />" formtext
regsub "\#$errnum\#" $formtext "<input type=\"text\" name=\"${var_to_spellcheck}.error_$errnum\" value=\"$errword\" size=\"$wordlen\" >" formtext
} elseif { [string equal "nearmiss" $errtype] } {
regsub -all ", " $erroptions "," erroptions
set options [split $erroptions ","]
......@@ -318,7 +323,7 @@ ad_proc -public template::util::spellcheck::get_element_formtext {
regsub -all {<a [^<]*>} $formtext_to_display "<u>" formtext_to_display
regsub -all {</a>} $formtext_to_display "</u>" formtext_to_display
append formtext_to_display "<input type=\"hidden\" name=\"${var_to_spellcheck}.merge_text\" value=\"[ad_quotehtml $processed_text]\" />"
append formtext_to_display "<input type=\"hidden\" name=\"${var_to_spellcheck}.merge_text\" value=\"[ad_quotehtml $processed_text]\" >"
####
......
......@@ -11,7 +11,17 @@ namespace eval template {}
namespace eval template::widget {}
namespace eval template::tabstrip {}
ad_proc -public template::widget::tab { element_reference tag_attributes } {
ad_proc -public template::widget::tab {
element_reference
tag_attributes
} {
Widget to create one tab in a set of tabs ("tabstrip") in the tabbed UI.
@param element_reference Reference variable to the form element
@param tag_attributes HTML attributes to add to the tag
@return Form HTML for the widget
} {
upvar $element_reference element
......@@ -45,14 +55,24 @@ ad_proc -public template::widget::tab { element_reference tag_attributes } {
namespace eval template::tabstrip {}
# Dispatch proc
ad_proc -public template::tabstrip { command args } {
ad_proc -public template::tabstrip {
command
args
} {
Dispatch procedure for tabstrip.
} {
eval template::tabstrip::$command $args
}
# Create a new tabbed page
# accepts the -base_url tag
ad_proc -public template::tabstrip::create { dlg_name args } {
ad_proc -public template::tabstrip::create {
dlg_name
args
} {
Create a tabstrip, which is a UI tool consisting of a set of clickable tabs.
} {
template::util::get_opts $args
......@@ -105,6 +125,8 @@ ad_proc -public template::tabstrip::create { dlg_name args } {
ad_proc -public template::tabstrip::add_tab {
dlg_name name label template args
} {
Add a tab to the given tabstrip.
} {
# Determine the current tab
set level [template::adp_level]
......@@ -147,7 +169,11 @@ ad_proc -public template::tabstrip::add_tab {
}
ad_proc -public template::tabstrip::set_current_tab { dlg_name tab_name {rel_level 2}} {
ad_proc -public template::tabstrip::set_current_tab {
dlg_name tab_name {rel_level 2}
} {
Set the current tab (to be highlighted as a cue for the user) in the given tabstrip.
} {
set level [template::adp_level]
upvar #$level $dlg_name:properties properties
......
......@@ -50,7 +50,13 @@ namespace eval template::widget {}
namespace eval template::widget::table {}
ad_proc -public template::widget::table::create { statement_name name args } {
ad_proc -public template::widget::table::create {
statement_name
name
args
} {
Create a table widget
} {
upvar "tablewidget:${name}" widget
......@@ -60,16 +66,24 @@ ad_proc -public template::widget::table::create { statement_name name args } {
template::widget::table::prepare $statment_name $name 2
}
# Get the order by clause for the widget, other parameters (?)
ad_proc -public template::widget::table::get_params { name {level 1} } {
ad_proc -public template::widget::table::get_params {
name
{level 1}
} {
Get the order by clause for the widget, other parameters (?)
} {
upvar $level "tablewidget:${name}" widget
set widget(orderby) [ns_queryget "tablewidget:${name}_orderby"]
}
# Create the default column definition if none exists
ad_proc -public template::widget::table::default_column_def { name { level 2} } {
ad_proc -public template::widget::table::default_column_def {
name
{ level 2}
} {
Create the default column definition if none exists
} {
upvar $level "tablewidget:${name}" widget
......@@ -88,8 +102,13 @@ ad_proc -public template::widget::table::default_column_def { name { level 2} }
}
}
# Compose the query, if neccessary, and define the datasources
ad_proc -public template::widget::table::prepare { statement_name name {level 1} } {
ad_proc -public template::widget::table::prepare {
statement_name
name
{level 1}
} {
Compose the query, if neccessary, and define the datasources
} {
upvar $level "tablewidget:${name}" widget
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,7 +2,7 @@ if [llength $l] {
set car [lindex $l 0]
set cdr [lrange $l 1 end]
regsub -all {%([a-zA-z0-9.:_]+)%} $car {@\1@} condition
regsub -all {%([a-zA-Z0-9.:_]+)%} $car {@\1@} condition
foreach {name rules} {
true {"TRUE " "" FALSE not }
false { TRUE not "FALSE " "" and %AND% or and %AND% or}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
www/resources/htmlarea/images/ed_about.gif

87 Bytes | W: | H:

www/resources/htmlarea/images/ed_about.gif

87 Bytes | W: | H:

www/resources/htmlarea/images/ed_about.gif
www/resources/htmlarea/images/ed_about.gif
www/resources/htmlarea/images/ed_about.gif
www/resources/htmlarea/images/ed_about.gif
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment