Double dollar in java code $$() in comment


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 :

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.