French language error: SyntaxError

Hi everyone,

I run a SuiteCRM 7.9.7 with a French language pack from Crowdin (https://crowdin.com/project/suitecrmtranslations/fr#).

I encounter some problem of ReferenceError when trying to remove a Target List from a Campaign or delete a custom field in the Studio, only when on French language, not in English.

I would like to know how I could correct these errors, in which files.

Thank you all :slight_smile:

ReferenceError: remove_existing_target is not defined
SyntaxError: unterminated string literal

Hi everyone,

I still have the same problem, even with the last SuiteCRM 7.9.14 and last version of Crowdin French language pack.

I found that, when on the Campaign Wizard, if I click on the “Create” button to create a new target list, the same problem occurs : the button do nothing and, in the browser web console I got the following message :
ReferenceError: add_target is not defined

I know it is related to the language package (everything work when in English language) but I would like to just know how to debug that.

Please help
Thanks :slight_smile:

Confirmed.
This is caused by an escaped single quote at \include\language\fr_FR.lang.php
The affected lines:

//prospect list type dom
    'prospect_list_type_dom' => array(
        'default' => 'DĂ©faut',
        'seed' => 'Financement',
        'exempt_domain' => 'Liste d\'exclusion par domaine',
        'exempt_address' => 'Liste d\'exclusion par adresses E-mails',
        'exempt' => 'Liste d\'exclusion par ID',
        'test' => 'Test',
    ),

If i changed to a “dirty” fix in the language file it works (required an admin/ Repari/ Repair and rebuild).

//prospect list type dom
    'prospect_list_type_dom' => array(
        'default' => 'DĂ©faut',
        'seed' => 'Financement',
        'exempt_domain' => 'Liste d´exclusion par domaine',
        'exempt_address' => 'Liste d´exclusion par adresses E-mails',
        'exempt' => 'Liste d´exclusion par ID',
        'test' => 'Test',
    ),

Now this needs a proper fix and it must be done in the code not in the language files, as the translation its OK (french language requires several escaped single quotes!)

Maybe you can start by opening a new issue on github https://github.com/salesagility/SuiteCRM
(include all details on your installation and a link to this forum topic)

Ok thanks :slight_smile:
I’ll try to find all the Reference Error I can before opening an issue on GitHub.

Issue created here:
https://github.com/salesagility/SuiteCRM/issues/5344

1 Like