Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Thu Apr 10, 2008 4:42 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 the following languages : English, German, French, Italian, Spanish, Polish and Norwegian. The default language is English. To use other languages , use SetCulture method of FileView.StringResourceManager class. The IsCultureSupported method of FileView.StringResourceManager 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++]
CStringResourceManager rm = m_fileVw.GetStringResources();
//Set to german
if (rm.IsCultureSupported(0x0407))
//Use 0x0409 for english, 0x0407 for German, etc...
// See documentation of SetCulture method for complete list of values
rm.SetCulture (0x0407) ;
m_fileVw.RefreshView();
[VB6]
Dim rm As StringResourceManager
Set rm = fileVw.StringResources
'Set to german
If (rm.IsCultureSupported(&H407)) Then
'Use &H409 for english, &H407 for German, etc
'See documentation of SetCulture method for complete list of values
rm.SetCulture (&H407)
End If
fileVw.RefreshView
If a certain language is not supported, then you can set the localized strings in that language yourself the SetString method of StringResourceManager for providing your own translations.
For example, You may use the following code to set the string for "New Folder"
[C++]
CStringResourceManager rm = m_fileVw.GetStringResources();
rm.SetString(_T("STR_FOLDER"), _T("<Your Translation Here>"));
m_fileVw.RefreshView();
[VB6]
Dim rm As StringResourceManager
Set rm = fileVw.StringResources
rm.SetString "STR_FOLDER", "<Your Translation Here>"
fileVw.RefreshView |
|