AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Componente / Componente externo
  • Overview
  • How to?
  • Translating a component used in an application
  • Translating and updating the component
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Translating the external components
Overview
In WINDEV, WEBDEV or WINDEV Mobile, an external component is a set of elements that performs a specific action (send faxes, emails, etc.). External components can be redistributed to other WINDEV, WEBDEV or WINDEV Mobile developers.
Developers will then be able to easily include the feature from the component in their applications. The component will be included in and distributed with the application.
For multilingual applications, it may be useful to translate the external component used. Indeed, let's imagine a component that supports French and English included in a project that supports French and Spanish.
By default, the mechanism for preferred languages proposes English instead of Spanish.
In order for the external component to use the application language, the different elements of the components must be translated. This technique requires the use of WDMSG. WDMSG is an optional tool for WINDEV, WEBDEV and WINDEV Mobile used to extract and reintegrate all the messages to be translated.
How to?

Translating a component used in an application

To translate a component used in an application:
  1. Install (if necessary) WDMSG on the development computer.
  2. The component used by the project must be translatable: the component's author must have authorized the translation of the component and its elements..
    To do so, check "Permitir traducción del componente" when generating the component. For more details, see Generating a component.
    To find out whether the components used can be translated, open the description of the component ("General" tab).
  3. Use WDMSG to extract elements from the component (and, if necessary, from your project): in the "Proyecto" pane, in the "Traducir" group, pull down "Traducir" and select "Extract messages".. A wdmsg file containing the messages to translate is created.
  4. Translate the messages (or contact a translator). For more details on WDMSG, see Using WDMSG.
  5. Reintegrate translations: in the "Proyecto" pane, in the "Traducir" group, pull down "Traducir" and select "Reintegrate messages".. Several files are automatically created during the reintegration:
    • <Nom du composant>.WDIT: This file contains the various component messages in the original language, and their translations.. This file is found on the development computer only.
    • <Nom du composant>.WDKT: This file contains the various translations of the component into the desired language.. This file will be used at runtime to display the translated messages in the desired language.
  6. The application can be deployed.

Translating and updating the component

The version of the component changes when the component is updated in the project.
When updating the component, the WDKT file is automatically recreated from the existing translations found in the WDIT file. Indeed, the version of the component must be synchronized with the version of the WDKT file. To do so, WDMSG must be installed on the computer.
The component is ready to be used.
  • If all the resources of the component have been translated, the elements of the component will be displayed in the desired language.
  • If some resources have not been translated, they will appear in the original language of the component. In this case, it will be necessary to perform another extraction with WDMSG to translate the missing resources.
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 04/10/2024

Señalar un error o enviar una sugerencia | Ayuda local