JRapid Texts
From JRapid
(Difference between revisions)
(Created page with 'Messages shown in the UI for validation, error, confirmation and more can be customized through the use of the jrapid.texts() function. <pre class="brush:javascript"> jrapid.tex...') |
|||
Line 1: | Line 1: | ||
- | Messages shown in the UI for validation, error, confirmation and more can be customized through the use of the jrapid.texts() function. | + | Messages shown in the UI for validation, error, confirmation and more can be customized through the use of the jrapid.texts() function. Add a call to this function in the Main.js file in your WebContent/Main/js folder, or any JavaScript file that is loaded by the UI, and redefine the messages as shown in the example below. |
+ | |||
+ | |||
+ | ==Example== | ||
+ | Change messages to spanish. | ||
<pre class="brush:javascript"> | <pre class="brush:javascript"> | ||
Line 106: | Line 110: | ||
} ); | } ); | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | ==See also== | ||
+ | |||
+ | * [[labels]] |
Current revision as of 13:37, 29 September 2011
Messages shown in the UI for validation, error, confirmation and more can be customized through the use of the jrapid.texts() function. Add a call to this function in the Main.js file in your WebContent/Main/js folder, or any JavaScript file that is loaded by the UI, and redefine the messages as shown in the example below.
Example
Change messages to spanish.
jrapid.texts( { form: { opening: 'Abriendo form', loading: 'Cargando form...', asyncTitle: 'Ejecutando asincronamente', apply: { timeoutConfirm: 'Han pasado {0} segundos. \n\n' + 'Verifique su conexion a internet.\n\n' + '¿Desea seguir esperando?', applying: 'Aplicando cambios', networkError: 'Error de Red', success: 'Guardado', error: 'No se pudo guardar/aplicar', refreshListingError: 'No se pudo refrescar el listado', saveNeeded: 'Es necesario guardar antes de continuar, ¿guardar ahora?' } }, listing: { opening: 'Abriendo listado', loading: 'Cargando listado...', loadError: 'No se pudo cargar el listado', loadSuccess: 'Listado cargado', pagingMsg: 'Paginando', pagingError: 'No se pudo cambiar la página del listado', orderingMsg: 'Ordenando', orderingError: 'No se pudo ordenar el listado', deleteMsgSingle: 'Esta seguro que desea eliminar este elemento?', deleteMsgMultiple: 'Esta seguro que desea eliminar estos elementos?', deleteError: 'No se pudo eliminar' }, crosstab: { opening: 'Abriendo tabla' }, experience: { customize: 'Modifique experience' }, message: { title: 'Mensaje de JRapid', parseError: 'Parse Error', excType: 'Exception Type', detailMsg: 'Detail Msg', excErrorCode: 'Error Code', excErrorNumber: 'Error Number', excMessage: 'Message', excRootCause: 'Root Cause', close: 'Close' }, console: { error: 'Error', confirm: 'Confirm', prompt: 'Prompt', opening: 'Abriendo', networkError: 'Error de red', embedding: 'Embebiendo', filtering: 'Filtrando' }, load: { error: 'No se pudo leer', success: 'Formulario cargado OK', loading: 'Cargando' }, validationMsgs: { required: '{0} es requerido', date: '{0} debe ser una fecha', datetime: '{0} debe ser una fecha y horario', time: '{0} debe ser un horario', timequantity: '{0} debe ser una cantidad de tiempo', timerange: '{0} debe ser un período de tiempo', email: '{0} debe ser una dirección de email', short: '{0} debe ser un número entero', integer: '{0} debe ser un número entero', long: '{0} debe ser un número entero', float: '{0} debe ser un número', double: '{0} debe ser un número', maxRows: 'Cantidad máxima de filas: {0}' }, conditionals: { checkIfMsg: 'Valor invalido', checkUniqueMsg: 'El valor de este campo no es único. ' }, suggest: { error: 'Error inesperado al intentar sugerir' }, multiline: { adding: 'Agregando' }, collection: { choose: 'Seleccione', add: 'Agregar' }, upload: { title: 'Subir archivo' }, application: { browserNotSupported: 'ADVERTENCIA: JRapid no soporta el navegador {0}', cache: { enabled: 'Cache habilitado.', disabled: 'Cache deshabilitado.' } } } );