Double dollar in java code $$() in comment

Hello,

I was reading the Axelor source file and I noticed that every time there is a constant that contain a sentence or a translation, there is annotations around him /*$$(*/ and at the end /*)*/ :

static final String BANK_STATEMENT_1 = /*$$(*/
  "%s : Computed balance and Ending Balance must be equal" /*)*/;

Source : https://github.com/axelor/axelor-open-suite/blob/6c7dd9e2c73aa41e08e766bca147a1390af1d4a1/axelor-account/src/main/java/com/axelor/apps/account/exception/IExceptionMessage.java

What is the purpose of this ?

Thanks you

Axelor uses CSV based translation catalogs and provides tools to extract translatable string values from the source code. Those are the markers to consider the text for extraction.

The extractor tool will consider following cases for string extractions:

  • any string value wrapped between /*$$(*/ and /*)*/
  • any string value in I18n.get(...) call
1 J'aime

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.