WorkflowGen.com | Knowledge Base | Documentation | Downloads | Support | RSS

« Does WorkflowGen support HTTPS? | Main | How to add a company logo to the banner »

How to support / create a new Language

Posted on Sunday, September 16, 2007 at 14:40 by Registered CommenterWFG Team in | CommentsPost a Comment

To support a new language locale, you must create the corresponding resource files (.resx) by copying an existing language resource file and translating the terms as required, using a resource file editor such as Visual Studio or Visual Studio Express. 

The naming convention for each file should follow the convention of existing language file names and have the language code added to them (e.g. en-GB, es-MX, fr-CA, etc..).

The resource files are located in the following folders:

Core Modules
These are located in the "[DRIVE]:\Inetpub\wwwroot\wfgen\App_GlobalResources\" folder. 

Workflow Applications
There are additional resource files, by WorkflowGen application, in the folders "[DRIVE]:\Inetpub\wwwroot\wfgen\WfApps\WebApps\[ApplicationName]\App_GlobalResources\".

There is one resource files for each language code, by module or application. 

Example to create a Spanish (Mexico) resource file

  1. Go to the folder \wwwroot\wfgen\App_GlobalResources\
  2. Copy the file Advantys.Workflow.Web.UI.Portal.resx (the default English US resource file of the portal module)
  3. Rename your copy with the Spanish country code Advantys.Workflow.Web.UI.Portal.es-MX.resx
  4. Open the file in a text editor and translate US labels into Spanish
  5. Repeat steps 2 to 4 for all resource files in the core module folder and the workflow applications folders.

Note: do not remove, or alter the content of the "Name" column in the resource file while translating, as these names are bound to the WorkflowGen application controls.  Only alter the "Value" column during the translation.

List of language codes

Language codes should be specified in the format "language-COUNTRY" (COUNTRY is optional is some cases).  You can find a complete list of language codes at the following Microsoft reference site:  http://msdn2.microsoft.com/en-us/library/ms533052(VS.85).aspx


Important Notes when creating or modifying Resource files

  1. The resource files for the languages fr-FR, fr-CA, en-AU, en-CA, en-GB, and de-DE are provided in each update pack, which will overwrite any changes you may have applied to the existing files. 
  2. Upgrading WorkflowGen will bring about new resource file versions that may include changes to label identifiers ("Name") which could be altered, removed, or added. If you make changes to these files or have copied these files to create a language, you will need to make a backup copy of the files prior to any upgrades, study the changes to the resource files from the prior version, and manually re-apply changes.
  3. Root resource files (those without the language-code suffix) should not be deleted.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.
Member Account Required
You must have a member account on this website in order to post comments. Log in to your account to enable posting.