Binder option translation

Confluence User - 10 May, 2020

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,

plugins;translation

3


11 May, 2020
confluenceUser
confluenceUser

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

11 May, 2020
confluenceUser
confluenceUser

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,


11 May, 2020
confluenceUser
confluenceUser

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 [ ] ?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print