Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

INFO: International language support in FileView

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView.Net/WPF
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Thu Apr 10, 2008 3:22 am    Post subject: INFO: International language support in FileView

Localizable strings are used by FileView in a few places such as the menu item captions of the background context menu and column headers in detail mode.

FileView supports 5 international languages. English, German, French, Italian, Polish and Norwegian. The default language is English. To use other languages , use SetCulture method of FileView.StringResources class. The IsCultureSupported method of FileView.StringResources can be used to determine if a specified language is supported.

You may use the following code to change the language of the FileView

[C#]

StringResourceManager rm = fileView.StringResources;

//Set to german
if (rm.IsCultureSupported(new CultureInfo("de")));
{
//Use 'en' for english, 'it' for italian, 'pl' for polish, 'no' for norwegian
rm.SetCulture(new CultureInfo("de"));
}

fileView.RefreshView();


[VB]

Dim rm As StringResourceManager = fileView.StringResources

'Set to german
If (rm.IsCultureSupported(New CultureInfo("de"))) Then
'Use 'en' for english, 'it' for italian, 'pl' for polish, 'no' for norwegian
rm.SetCulture(New CultureInfo("de"))
End If

fileView.RefreshView()


If a certain language is not supported, then you can set the localized strings in that language yourself using field members of StringResourceManager for providing your own translations.
For example, You may use the following code to set the string for "New Folder"

[C#]

StringResourceManager rm = fileView.StringResources;
rm[StringResourceManager.STR_FOLDER] = "<Your Translation Here>";

fileView.RefreshView();


[VB]

Dim rm As StringResourceManager = fileView.StringResources
rm(StringResourceManager.STR_FOLDER) = "<Your Translation Here>"

fileView.RefreshView()
Back to top
Display posts from previous:   
Forum Index -> FileView.Net/WPF All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group