Skip to main content
SuperOffice contains resx files for each language based on the default resx file. For example, if the default resx file is ResourceStrings.resx the translation of this in French would be stored as ResourceStrings.fr.resx, “fr” is the abbreviation of the language. To override the stock resx files, we can create our own resx file and by using the ResXmlFileProvider we can call our own strings. To use our resx file we need to make a minor modification - adding the ResXmlFileProvider - to the config file:
In the ResXmlFileProvider tag, params refer to the name of the resx file that contains our strings. The next step is to create a resx file containing our own strings. Here we have created a resx file for the default language. In the Visuals Studio development environment, we can create a new resx file and add our custom string. 01 The inserted string can be seen in XML as below.
The file above is saved as NewResourceStrings.resx, the default resources which are used if no translation can be found.
The file name NewResourceStrings is used in the web.config file as a parameter to the ResXmlFileProvider component.
The NewResourceStrings.no.resx file for the Norwegian translation looks like this:
When we need to use our custom string in the SIX.web page config, we need to call it by the “name” (customString):
The above code segment has been included inside the SoNavigatorPanels.config file’s controls tag. Once the file has been saved our custom String can be seen. 02