This is a migrated thread and some comments may be shown as answers.

Translation

5 Answers 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marc-Andre
Top achievements
Rank 1
Marc-Andre asked on 11 Nov 2009, 03:07 PM
Hi, quick question, I know how to localize individual controls and it seems to work fine for me so far. But since I have to create a Localization provider for every control that I need to translate and find all the strings and translate them all.. I was wondering if there was some kind of compilation somewhere I could download and simply add to my program?

I wish I could download or at least copy and paste information like that (that would prevent all the manual work) :

Imports Telerik.WinControls.UI.Localization

Public Class MyFrenchRadGridLocalizationProvider
    Inherits RadGridLocalizationProvider
    Public Overloads Overrides Function GetLocalizedString(ByVal id As String) As String
        Select Case id
            Case RadGridStringId.FilterFunctionBetween
                Return "Entre"
            Case RadGridStringId.FilterFunctionContains
                Return "Contient"
            Case RadGridStringId.FilterFunctionDoesNotContain
                Return "Ne contient pas"
            Case RadGridStringId.FilterFunctionEndsWith
                Return "Termine par"
            Case RadGridStringId.FilterFunctionEqualTo
                Return "Équal à"
            Case RadGridStringId.FilterFunctionGreaterThan
                Return "Plus grand que"
            Case RadGridStringId.FilterFunctionGreaterThanOrEqualTo
                Return "Plus grand ou équal à"
            Case RadGridStringId.FilterFunctionIsEmpty
                Return "Est vide"
            Case RadGridStringId.FilterFunctionIsNull
                Return "Est nule"
            Case RadGridStringId.FilterFunctionLessThan
                Return "Plus petit que"
            Case RadGridStringId.FilterFunctionLessThanOrEqualTo
                Return "Plus petit ou égal à"
            Case RadGridStringId.FilterFunctionNoFilter
                Return "Sans filtre"
            Case RadGridStringId.FilterFunctionNotBetween
                Return "N'est pas entre"
            Case RadGridStringId.FilterFunctionNotEqualTo
                Return "N'est pas égal"
            Case RadGridStringId.FilterFunctionNotIsEmpty
                Return "N'est pas vide"
            Case RadGridStringId.FilterFunctionNotIsNull
                Return "N'est pas nule"
            Case RadGridStringId.FilterFunctionStartsWith
                Return "Débute par"
            Case RadGridStringId.FilterFunctionCustom
                Return "Personalisé"
            Case RadGridStringId.CustomFilterMenuItem
                Return "Menu filtre"
            Case RadGridStringId.CustomFilterDialogCaption
                Return "Dialogue de filtre"
            Case RadGridStringId.CustomFilterDialogLabel
                Return "Afficher les lignes:"
            Case RadGridStringId.CustomFilterDialogRbAnd
                Return "Et"
            Case RadGridStringId.CustomFilterDialogRbOr
                Return "Ou"
            Case RadGridStringId.CustomFilterDialogBtnOk
                Return "OK"
            Case RadGridStringId.CustomFilterDialogBtnCancel
                Return "Annuler"
            Case RadGridStringId.DeleteRowMenuItem
                Return "Effacer une ligne"
            Case RadGridStringId.SortAscendingMenuItem
                Return "Tri ascendant"
            Case RadGridStringId.SortDescendingMenuItem
                Return "Tri descendant"
            Case RadGridStringId.ClearSortingMenuItem
                Return "Effacer le tri"
            Case RadGridStringId.ConditionalFormattingMenuItem
                Return "Format de colonne conditionnel"
            Case RadGridStringId.GroupByThisColumnMenuItem
                Return "Grouper cette colonne par item"
            Case RadGridStringId.UngroupThisColumn
                Return "Dégrouper cette colonne"
            Case RadGridStringId.ColumnChooserMenuItem
                Return "Filtrer les colonnes"
            Case RadGridStringId.HideMenuItem
                Return "Cacher"
            Case RadGridStringId.UnpinMenuItem
                Return "Décrocher"
            Case RadGridStringId.PinMenuItem
                Return "Accrocher"
            Case RadGridStringId.BestFitMenuItem
                Return "Ajuster"
            Case RadGridStringId.PasteMenuItem
                Return "Coller"
            Case RadGridStringId.EditMenuItem
                Return "Éditer"
            Case RadGridStringId.CopyMenuItem
                Return "Copier"
            Case RadGridStringId.AddNewRowString
                Return "Ajouter une ligne"
            Case RadGridStringId.ConditionalFormattingCaption
                Return "Mise en forme conditionnelle"
            Case RadGridStringId.ConditionalFormattingLblColumn
                Return "Colonne:"
            Case RadGridStringId.ConditionalFormattingLblName
                Return "Nom:"
            Case RadGridStringId.ConditionalFormattingLblType
                Return "Type:"
            Case RadGridStringId.ConditionalFormattingLblValue1
                Return "Valeur 1:"
            Case RadGridStringId.ConditionalFormattingLblValue2
                Return "Valeur 2:"
            Case RadGridStringId.ConditionalFormattingGrpConditions
                Return "Conditions"
            Case RadGridStringId.ConditionalFormattingGrpProperties
                Return "Propriétés"
            Case RadGridStringId.ConditionalFormattingChkApplyToRow
                Return "Appliquer à la ligne"
            Case RadGridStringId.ConditionalFormattingBtnAdd
                Return "Ajouter"
            Case RadGridStringId.ConditionalFormattingBtnRemove
                Return "Effacer"
            Case RadGridStringId.ConditionalFormattingBtnOK
                Return "OK"
            Case RadGridStringId.ConditionalFormattingBtnCancel
                Return "Annuler"
            Case RadGridStringId.ConditionalFormattingBtnApply
                Return "Appliquer"
            Case RadGridStringId.ColumnChooserFormCaption
                Return "Sélecteur de colonnes"
            Case RadGridStringId.ColumnChooserFormMessage
                Return "Glisser une colonne ici pour la cacher"
            Case RadGridStringId.GroupingPanelDefaultMessage
                Return "Regroupement"

            Case Else
                Return MyBase.GetLocalizedString(id)
        End Select
    End Function
End Class


Any idea?

Thanks a lot

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Nov 2009, 09:21 PM
Hello Marc-Andre,

Thank you for contacting us.

Telerik does not provide a compilation of translated localization providers in different languages. However, we encourage our clients to share their localization providers with the community. For that purpose, we have created a special code library section and we give Telerik points for the shared localization providers. From the code library section you can download the localization providers that you find suitable for your application. Additionally, you can share your own providers with the community.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Marc-Andre
Top achievements
Rank 1
answered on 19 Nov 2009, 03:52 AM
Thanks this is great!

Is it possible to get the English strings of all the controls that are localizable? This way I could translate most of them in French. The way I used to translate the controls was to add a breakpoint in the Select Case ID and translate the words as I hit the breakpoint. That is really time consuming.. :)

Thanks!
0
Nikolay
Telerik team
answered on 25 Nov 2009, 09:39 AM
Hello Marc-Andre,

I am attaching the English localization providers that we are using in our RadControls by default. I hope that they will help you in your further development.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael
Top achievements
Rank 1
answered on 28 Nov 2009, 08:36 AM
Hi Nikolay
I have a suggestion for near future/next release if it's possible:
create a new tool for an easy localization, with a friendly user interface, starting from a user selected language and with possibility to create or modify existing one (localization).
Will be much easier rather than editing by hand text files.
Thanks
0
Nikolay
Telerik team
answered on 03 Dec 2009, 09:37 AM
Hi Dan,

Thank you for your feature request.

Indeed, such designer will be a nice addition to our suite. I am logging this request in our issue tracking system. However, I cannot provide you with any specific time frame when we will develop such tool.

I am updating your Telerik points for your feedback.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Marc-Andre
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Marc-Andre
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Share this question
or