Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By maabik
#826511
Hello,
I am using the cloud version of PM (3.3.0- Enterprise Edition), i need to translate an internal message error from English to French language.
The multipleFile accepts only pdf files, once the user uploads a file with different extension, a message is shown:
The message that I need to translate is displayed once the user uploads a file with an extension different from pdf:
“Invalid file format, please upload a file with one of the following formats {.pdf}”

Kind Regards
#826530
The phrase hasn't been translated, so you need to translate it.

You need to go to Admin > Languages and select the language in the list. Then click on the Export button to download the PO file.

Then open the PO file will a plain text editor and look for this part:
Code: Select all
# TRANSLATION
# LABEL/ID_UPLOAD_INVALID_DOC_TYPE_FILE
#: LABEL/ID_UPLOAD_INVALID_DOC_TYPE_FILE
msgid "Invalid file format, please upload a file with one of the following formats {0}"
msgstr "Invalid file format, please upload a file with one of the following formats {0}"

Translate it. For example:
Code: Select all
# TRANSLATION
# LABEL/ID_UPLOAD_INVALID_DOC_TYPE_FILE
#: LABEL/ID_UPLOAD_INVALID_DOC_TYPE_FILE
msgid "Invalid file format, please upload a file with one of the following formats {0}"
msgstr "Formato invalido de archivo. Por favor, suba un archivo con uno de los formatos siguientes {0}"

Save the PO file. Then, go to Admin > Languages and click on Import to upload the changed PO file.
#826556
Amarilisis wrote: Tue Sep 17, 2019 6:40 pm Yo trabajo con la versión PM 3.2.3 - Enterprise Edition Yo trabajo con la versión PM 3.2.3 - Enterprise Edition y en esta versión ese texto no existe en el archivo PO. y en esta versión ese texto no existe en el archivo PO.
En versiones mas recientes, puedes traducir la frase en el archivo PO, pero la frase no es marcada para traducirla en la version 3.2.3.
Tienes que editar el archivo workflow/public_html/lib/pmdynaform/build/js/PMDynaform.js y cambiar la línea 24061 en el codigo:
Code: Select all
                    message = "Invalid file format " + (file ? 'for "' + file.name + '"': '') + ", please upload a file with one of the following formats {" + typeAllow + "}";
Despues de cambiarlo, debes borrar el cache de ProcessMaker y borrar el cache de tu navigador web.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]