Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class 'notranslate' not working on select2 drop down for google translater #69

Open
govardhanyadavAG opened this issue Nov 3, 2017 · 0 comments

Comments

@govardhanyadavAG
Copy link

govardhanyadavAG commented Nov 3, 2017

while working with google translator on particular dropdown which is of select2 and which has to be not translated with on language change.so, i have done adding the notranslate class as shown in the below mentioned script.

<asp:DropDownList ID="ddlOwner_Workgroup_Id" runat="server" CssClass="select2WithSearch">
                    <asp:ListItem>SELECT</asp:ListItem>
                    <asp:ListItem>hello</asp:ListItem>
                    <asp:ListItem>hi</asp:ListItem>
        </asp:DropDownList>
    <script type="text/javascript">
            $("#<%=ddlOwner_Workgroup_Id.ClientID%>").select2({
                containerCssClass: "notranslate",
                dropdownCssClass: "notranslate"
            });
        </script>

when the page has been rendered the notranslate class has been added for both container and the dropdown. but after changing the language the dropdown still is getting translated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant