Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Abu Ali Muhammad sharjeel 13 posts 74 karma points
    Jun 17, 2014 @ 02:40
    Abu Ali Muhammad sharjeel
    0

    Changing the Url but translation is not working on browser

    Hi, 

    I am using Umbraco version 7.1.4,

    I also used LanguageSelector macro but still on address bar url is being changed but page is showing the same default language.

    Is there any solution?

  • dimi309 245 posts 579 karma points
    Jun 17, 2014 @ 07:03
    dimi309
    100

    Hello,

    Please make sure you read the documentation and follow the steps described there. For example, you need to replace the properties on your templates with the PropertyTranslation macro. Also, you may need to use the SetPageCulture macro as mentioned on page 7 of Polyglot_v2.0_Documentation.pdf.

    Best regards,

    Dimitri

  • Abu Ali Muhammad sharjeel 13 posts 74 karma points
    Jun 17, 2014 @ 11:31
    Abu Ali Muhammad sharjeel
    0

    Thanks, It is a great pulg-in.

    Is there any function to get translated value in the variable?

  • dimi309 245 posts 579 karma points
    Jun 17, 2014 @ 15:30
    dimi309
    0

    I guess you need something like PropertyReferenceTranslation?

    You can have a look at how I use it in the TranslatedNavigation macro:

     

    https://github.com/dimitrikourk/Polyglot/blob/v2/Dimi.Polyglot/UmbracoRazorScripts/TranslatedNavigation.cshtml

     

     

Please Sign in or register to post replies

Write your reply to:

Draft