Skip to main content
Question

translation on report or sql and inifs

  • Nov 23, 2025 2:58 PM UTC
  • 5 replies
  • 89 views

Forum|alt.badge.img+8

I dont understand why the result is différent on a description field using an api on ifs v10 (field in french) and in a report or in sql.

The menu is project invoice.

 

 

The result is in english.

5 replies

Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • Nov 26, 2025 1:33 PM UTC

The result of PAYMENT_TERM_API.Get_Description(COMPANY,PAY_TERM_ID) is in french in IFS in french and when i call the sames API in Armony solution or SQL in have the result in English.

I don’t understand why.

 

Even more that i have put the translation in the menu Application Base Setup\Enterprise\Company\System Manager Functions\Company Attribute Translations for the company in use, the module ‘ACCRUL’ and the logical unit ‘Payment term’.

 


Forum|alt.badge.img+14
  • Hero (Partner)
  • Nov 26, 2025 2:23 PM UTC

Hi ​@Julien T. :

Have you tried adding the “Accept-Language” property to the REST API header? :

In SQL, you can temporarily switch to French by executing this PL/SQL block before executing your SQL query:

BEGIN
IFSAPP.Log_SYS.Init_Debug_Session_('fr');
END;

Best Regards,

Théo


Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • Nov 26, 2025 2:47 PM UTC

This is the only SQL request on wich i have this problem.

Now when i am doing this request in IFS on SQL, i have the response in french.

 

I have still the problem with SQLDELOPPER and Armony Report.

 

 


Forum|alt.badge.img+14
  • Hero (Partner)
  • Nov 26, 2025 4:38 PM UTC

​@Julien T. ,

Yes, this is normal behavior.

A new ORACLE session is not automatically in French.

Before executing your SQL query in SQL Developer, execute this block: 

BEGIN
IFSAPP.Log_SYS.Init_Debug_Session_('fr');
END;

In Armony, upstream of your script, you can try calling the “IFSSetLanguage” tag.


Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • Nov 27, 2025 7:37 AM UTC

I put this in Armony :

 

  <Value BackColor="transparent" FontName="[DefaultFont]" VAlign="Center" HAlign="Left" FontSize="9" Bold="True" Line.DashStyle.Top="None" IFSSetlanguage= "fr" Condition = "'[Langage]' = 'fr'">
                        <p>Règlement par: [FACTURE.descr_paiement] [FACTURE.desc_condition_paiement]</p>
                    </Value>

 

but the restitution of the field  [FACTURE.desc_condition_paiement] is still in English.