A quick follow up to my previous article on creating a Clarion7 addin this is an example of how to provide translations of your own addins (based on the example provided I think by Lee and Charles on the newsgroups, thanks!).
The magic line to add to your addin file is this:
1 |
<StringResources file="Resources\StringResources.resources"> |
Then for each language you intend to support you create a new resource file with the correct name e.g. StringResources.nl.resources for dutch.
In the download you will find the C# project files as well as the addin itself. Also included is a BitmapResources.resources file containing all the Silk icons from famfamfam which I thought were pretty neat to use as menu icons 🙂
Download: | ![]() |
---|---|
Version: | 0.1 |
Updated: | June 3, 2011 |
Size: | 618.58 KB |
Downloads: | 1,111 |
Download: | ![]() |
---|---|
Version: | 0.1 |
Updated: | June 2, 2009 |
Size: | 1.82 MB |
Downloads: | 704 |
This is the addin file in case you want a quick look:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<AddIn name = "AccessoryMenu" author = "" url = "" description = "Common menu for all addin writers!"> <Manifest> <Identity name="AccessoryMenu.Addin" version="0.3"/> <Dependency addin = "SharpDevelop" version = "2.1"/> </Manifest> <BitmapResources file="Resources\BitmapResources.resources"/> <StringResources file="Resources\StringResources.resources"/> <Path name = "/SharpDevelop/Workbench/MainMenu/Help"> <MenuItem id = "Accessory" label = "${res:Addin.Menu.Accessory}" type ="Menu" insertbefore = "SDKHelp"> <MenuItem id = "About" label = "${res:Addin.Menu.About}" icon = "Icons.Silk.plugin" link = "http://www.c3pa.com/"/> </MenuItem> </Path> </AddIn> |