2 posts, 0 answers
  1. pierre-jean
    pierre-jean avatar
    144 posts
    Member since:
    Apr 2011

    Posted 19 Nov 2019 Link to this post

    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

  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3993 posts

    Posted 21 Nov 2019 Link to this post

    Hello, Pierre-Jean,

    The provided screenshot illustrates that some of the text in the file dialogs is not localized. However, I was unable to observe such behavior:

    I have attached my sample project for your reference. Could you please specify the exact steps how to reproduce the problem?

    I am looking forward to your reply.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top