Telerik Forums
UI for WinForms Forum
2 answers
114 views

Hello I need to localize the filedialog componenet to french

I have created the frenchlocalization class and it works partially, as you can see from the attached screenshot some of the elements are properly translated but all the buttons and some labels are not translated

I don't see what I am missing:

here below the code and the class

-----------------------------------------------------

            Select Case MyPreference.ifLanguage
                Case "fr" : FileDialogsLocalizationProvider.CurrentProvider = New FrenchLocalization.MyFrenchFileDialogsLocalizationProvider()
            End Select

-------------------------------------------------------

    Public Class MyFrenchFileDialogsLocalizationProvider
        Inherits FileDialogsLocalizationProvider
        Public Overloads Overrides Function GetLocalizedString(ByVal id As String) As String
            Select Case id
                Case FileDialogsStringId.OK
                    Return "OK"
                Case FileDialogsStringId.Yes
                    Return "Oui"
                Case FileDialogsStringId.No
                    Return "Non"
                Case FileDialogsStringId.Cancel
                    Return "Annuler"
                Case FileDialogsStringId.Back
                    Return "Arrière"
                Case FileDialogsStringId.Forward
                    Return "Avant"
                Case FileDialogsStringId.Up
                    Return "en Haut"
                Case FileDialogsStringId.NewFolder
                    Return "Nouveau Dossier"
                Case FileDialogsStringId.SearchIn
                    Return "Chercher dans"
                Case FileDialogsStringId.SearchResults
                    Return "Résultats de recherche dans"
                Case FileDialogsStringId.ExtraLargeIcons
                    Return "Très grandes icônes"
                Case FileDialogsStringId.LargeIcons
                    Return "Grandes icônes"
                Case FileDialogsStringId.MediumIcons
                    Return "Icônes moyennes"
                Case FileDialogsStringId.SmallIcons
                    Return "Petites icônes"
                Case FileDialogsStringId.List
                    Return "Liste"
                Case FileDialogsStringId.Tiles
                    Return "Titres"
                Case FileDialogsStringId.Details
                    Return "Détails"
                Case FileDialogsStringId.NameHeader
                    Return "Nom"
                Case FileDialogsStringId.SizeHeader
                    Return "Taille"
                Case FileDialogsStringId.TypeHeader
                    Return "Type"
                Case FileDialogsStringId.DateHeader
                    Return "DModifié le"
                Case FileDialogsStringId.FileSizes_B
                    Return "bytes"
                Case FileDialogsStringId.FileSizes_GB
                    Return "GB"
                Case FileDialogsStringId.FileSizes_KB
                    Return "KB"
                Case FileDialogsStringId.FileSizes_MB
                    Return "MB"
                Case FileDialogsStringId.FileSizes_TB
                    Return "TB"
                Case FileDialogsStringId.OpenFileDialogHeader
                    Return "Ouvrir le fichier"
                Case FileDialogsStringId.OpenFolderDialogHeader
                    Return "Ouvrir le dossier"
                Case FileDialogsStringId.SaveFileDialogHeader
                    Return "Enregistrer sous"
                Case FileDialogsStringId.FileName
                    Return "Nom de fichier:"
                Case FileDialogsStringId.Folder
                    Return "Dossier:"
                Case FileDialogsStringId.SaveAsType
                    Return "Enregistrer comme type:"
                Case FileDialogsStringId.OpenFolder
                    Return "Ouverture du dossier"
                Case FileDialogsStringId.FileFolderType
                    Return "Dossier de fichier"
                Case FileDialogsStringId.Cut
                    Return "Couper"
                Case FileDialogsStringId.Copy
                    Return "Copier"
                Case FileDialogsStringId.CopyTo
                    Return "Copier vers"
                Case FileDialogsStringId.Delete
                    Return "Supprimer"
                Case FileDialogsStringId.Edit
                    Return "Modifier"
                Case FileDialogsStringId.MoveTo
                    Return "Déplacer vers"
                Case FileDialogsStringId.Open
                    Return "Ouvrir"
                Case FileDialogsStringId.Paste
                    Return "Coller"
                Case FileDialogsStringId.Properties
                    Return "Propriétés"
                Case FileDialogsStringId.Rename
                    Return "Renommer"
                Case FileDialogsStringId.Save
                    Return "Enregistrer"
                Case FileDialogsStringId.View
                    Return "Vue"
                Case FileDialogsStringId.CheckThePath
                    Return "Vérifier le chemin et réessayer."
                Case FileDialogsStringId.ConfirmSave
                    Return "Confirmer enregistrer sous"
                Case FileDialogsStringId.FileExists
                    Return "existe déjà."
                Case FileDialogsStringId.FileNameWrongCharacters
                    Return "Un nom de fichier ne peut pas contenir les caractères : \ / : * ? "" < > |"
                Case FileDialogsStringId.InvalidExtensionConfirmation
                    Return "Etes-vous sûr de vouloir le changer?"
                Case FileDialogsStringId.InvalidFileName
                    Return "Le nom du fichier n'est pas valide."
                Case FileDialogsStringId.InvalidOrMissingExtension
                    Return "Si vous changez l'extension d'un fichier, ce dernier peut devenir inutilisable."
                Case FileDialogsStringId.InvalidPath
                    Return "Le chemin n'existe pas."
                Case FileDialogsStringId.OpenReadOnly
                    Return "Ouvrir en lecture seule"
                Case FileDialogsStringId.ReplacementQuestion
                    Return "Voulez-vous le remplacer?"
                Case Else
                    Return String.Empty
            End Select
        End Function
    End Class

Nadya | Tech Support Engineer
Telerik team
 answered on 08 Nov 2023
1 answer
90 views

This is the strangest error, and I can't understand why it's happening, or how to fix it.

I am trying to use the RadSaveFileDialog, and it doesn't appear.

That's it.

The code is stopped at the 'ShowDialog' call, as expected, but no dialog is visible. Because it's inside the Telerik code, I can't see what's causing it to fail.

Does anyone have any ideas where to look to fix this? The old-style SaveFileDialog from Windows works just fine, but it doesn't have all the nice theming that the Telerik one does.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2023
1 answer
80 views

Hello!  I am using the ExplorerControl for an application where I want to limit the user to selecting files and folders - they should otherwise be completely unable to modify the filesystem.  Is there a way to disable the feature where the user selects a file or folder, then selects it again, and the file entry changes to let them edit the name of the selected item?



This occurs with both a mouse and touchscreen selection; I'd like to disable both of these cases.   To clarify, this is distinct from the "rename" feature of the Windows context menu, which normally appears on mouse right-click (and can be disabled by handling that event).

Thanks for your help!

--Ed

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Aug 2021
1 answer
93 views

How can I find out the selected layout  (list, small icon, etc.) chosen by the user at the point the dialog is closed?

Thanks

Steve

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Apr 2021
2 answers
73 views

Hi,

How can I prevent the DragDrop operation in the File Open and File Save dialogs?

Thanks

Steve

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Apr 2021
4 answers
419 views

Hi,

I'm using the latest Telerik assemblies (2019.2.508.40) and when I utilize the new RadOpenFileDialog it doesn't seem to capture the theme on the form (when executing ShowDialog()). It opens with the normal RadForm look (blue). My theme set on the form is Fluent. I checked the properties on the RadOpenFileDialog, but am not seeing a ThemeName property.

 

RadOpenFileDialog openFileDialog = new RadOpenFileDialog();
DialogResult result = openFileDialog.ShowDialog();

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Feb 2021
1 answer
82 views
If I have quick access items listed on the Windows File Explorer, is there any way to get them to show up on RadOpenFolderDialog?
Nadya | Tech Support Engineer
Telerik team
 answered on 08 Dec 2020
2 answers
157 views

1.  Is there a way that I can set the top level folder they can access. So lets say I have a directory structure  C:\Files\ExplorerFile\Ticket\4\Testing/  I set the explorer to open at C:\Files\ExplorerFile\Ticket\4\  They can navigate down and create new folders but I do not want them to go up past \4.

 

2. The default is set to Move but you can hold ctrl or shift to make it a copy.  Is there a way to set it to default to copy, or turn off the move function?

3. Is there a way to set the control o if you double click a file that it will open rather then right click and open?

Nadya | Tech Support Engineer
Telerik team
 answered on 11 Jun 2020
3 answers
70 views

I am happy Telerik created these dialogs for aesthetic reasons.

Is there a way to restrict access to file operations (Delete, copy, et. al.)?? I want to restrict file functions that can be performed via these dialogs. For example, I want to prevent someone from copying files from a USB when selecting a folder or selecting a file.

 

Thanks,

 

Jim

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Feb 2020
5 answers
143 views

Hi team,

is there any way to read what is selected (single or multi select) when I click on folder/file in Explorer control?
Basically, I want to update my textbox with that what is selected.

Thx,
Oliver

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Dec 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?