• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Where can I find instructions to apply the translation to Spanish in my OPenSpecimen 4.1 installation?

    I want to use the translation to Spanish that I was collaborating with.

    I downloaded the files to use from transiflex.

    How I must use them in my instalation?

    There is a protocol to follow?

    Thanks for any help you can give to me!

    Another question:

    I see that the translations are not reviewed.
    Who is responsible for this review?
    Can I also collaborate on this aspect?

    Thank’s in advance

    Gustavo de la Fuente
    Hospital Garrahan - Argentina

    Hello Gustavo,

    To use translated files please follow below steps

    1. en.js - Rename Spanish version file to en_es.js and put into below path into source code

    <os_source_directory>/www/app/modules/i18n/

    1. messages.properties - Rename Spanish version file to message_es.properties and put into below path

    <os_source_directory>/WEB-INF/resources/errors/

    1. Build the source code and deploy the war file.

    Let us know how it goes.

    Once you are done with above for UI translation later we will see for email templates.

    ->> Who is responsible for this review? Can I also collaborate on this aspect?
    Currently, you are the only user of the Spanish version. It would be great if you collaborate for review as well.

    Hello wgaikwad, thank you 4 your reply.

    I followed your instructions and then … adjust them according to what I saw.

    Why?

    I rename Spanish version file to en_es.js and then…I saw the preexisting files and the name they had:

    en_US.js
    zh_CH.js

    and copied the file en-es.js to es_AR.js (I left both files)

    Here is how the directory was when I built de source code and deploy de war file:

    E:\openspecimen-4.1\www\app\modules\i18n>dir
    El volumen de la unidad E es Nuevo vol
    El número de serie del volumen es: CA3E-8384

    Directorio de E:\openspecimen-4.1\www\app\modules\i18n

    17/08/2017 03:50 p. m. .
    17/08/2017 03:50 p. m. …
    06/06/2017 10:25 a. m. 97.254 en.js
    06/06/2017 10:25 a. m. 174 en_AU.js
    11/08/2017 03:56 p. m. 117.924 en_es.js
    06/06/2017 10:25 a. m. 165 en_US.js
    11/08/2017 04:20 p. m. 117.924 es_AR.js
    06/06/2017 10:25 a. m. 68.644 zh_CN.js

    In the other directory, I renamed the Spanish version file to message_es.properties and then…I saw the preexisting files and the name they had:

    messages_en_US.properties
    messages_zh_CN.properties

    and then I copied message_es.properties to messages_es_AR.properties
    and to messages_es.properties (I left the 3 files…)

    Here is how the directory vas when I built de source code and deploy de war file:

    E:\openspecimen-4.1\WEB-INF\resources\errors>dir
    El volumen de la unidad E es Nuevo vol
    El número de serie del volumen es: CA3E-8384

    Directorio de E:\openspecimen-4.1\WEB-INF\resources\errors

    17/08/2017 03:53 p. m. .
    17/08/2017 03:53 p. m. …
    06/06/2017 10:25 a. m. 67.080 messages.properties
    06/06/2017 10:25 a. m. 234 messages_en_AU.properties
    06/06/2017 10:25 a. m. 130 messages_en_SG.properties
    06/06/2017 10:25 a. m. 305 messages_en_US.properties
    11/08/2017 03:56 p. m. 73.451 messages_es.properties
    11/08/2017 03:56 p. m. 73.451 messages_es_AR.properties
    06/06/2017 10:25 a. m. 45.738 messages_zh_CN.properties
    11/08/2017 03:56 p. m. 73.451 message_es.properties

    Finally I built from source code an deployed the new .war

    ¿whats are the followinf steps?

    Thanks again!!

    Gustavo de la Fuente

    Hello Gustavo,

    Sorry for the confusion.

    1. You don’t need to keep all three files. Just keep es_AR.js and messages_es_AR.properties

    2. Set the application locale to es_AR from UI menu, Settings -> Common -> Locale

    3. Refresh the page, you will see the UI is in Spanish.

    Let us know how it goes.

    Thanks,
    Vinod

    Thank you very much Vinod!!!

    I work perfectly !!! Many thanks!! What is the next step?

    Gustavo