1
0
-1

Hi,


I am developping an form store binder to operate with ODBC datasources.

The plugin is operating OK, but I can't manage to get the binder options translated. I keep having @@messages@@.


The message and properties files are respectively in  src\main\resources\messages and src\main\resources\properties as shown below. But the translation doesn't take place when showing the option page.


Could you help ?


Best regards,

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      Or is it due to the fact the json file is not a true json file (not recognised by third party parsers), but starts and ends with [ ] ?

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Anders,


        Yes this is the example I tried to follow. The message and properties files are respectively in src\main\resources\messages and src\main\resources\properties. The properties file is read, as the options are proposed when I choose this binder. But they are not translated, and show up with @@.

        This is the beginning of the property file:

        [

        {

        title : '@@org.joget.clipper.JOdbcStoreBinder.config@@',

        properties :

        [

        {

        name : 'jdbcDatasource',

        label : '@@org.joget.clipper.JOdbcStoreDriver.datasource@@',

        type : 'selectbox',

        options :

        [

        {

        value : 'custom',

        label : '@@form.JOdbcStoreDriver.customDatasource@@'

        },

        {

        value : 'default',

        label : '@@form.JOdbcStoreDriver.defaultDatasource@@'

        }

        ], ...


        And this is the corresponding message file:

        org.joget.clipper.JOdbcStoreBinder.pluginLabel=JODBC Binder (Vincent BAZINET)

        org.joget.clipper.JOdbcStoreBinder.pluginDesc=Used to store form data using ODBC driver. Your datasource needs to be installed in ODBC driver manager.

        org.joget.clipper.JOdbcStoreBinder.config=Configure JODBC Binder

        org.joget.clipper.JOdbcStoreBinder.datasource=Datasource

        form.JOdbcStoreBinder.customDatasource=Custom Datasource

        form.JOdbcStoreBinder.defaultDatasource=Default Datasource

        ...


        The first 2 lines are read OK when installing the plugin. Can it be due to the "org.joget.clipper.JOdbcStoreBinderPlugin.message" versus "form.JOdbcStoreBinder.message" ?

        Regards,


          CommentAdd your comment...
        1.  
          1
          0
          -1

          Hi, did you put the correct path for the messages file? The screenshot is cropped so it doesn't show the full value. Perhaps you can compare to the example in How to develop a JDBC Form Store Binder

            CommentAdd your comment...