+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Arabic Culture URL

Arabic Culture URL

7 posts, 0 answered
  1. Enas
    Enas avatar
    0 posts
    Registered:
    25 Feb 2016
    24 Oct
    Link to this post

    I am working on a website which is multilingual . once I am adding the AR or AR-SA the calendars are transformed to be in Hijri . I am trying to use another culture but the problem is that I am unable to hide the culture extension from the URL . for example /ar-jo/ to be replaced with /ar/ or /Arabic/

    please advise

  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    24 Oct in reply to Enas
    Link to this post

    Hi Enas,

    I faced with the same problem. That what I did:

    I used "AR" language and created a new extension method for string formatting with a Gregorian calendar. You can find it here: http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/arabic-site-news-listing-to-show-date-in-gregorian

    And then I used this extension method in all necessary widget templates. Let me know if you have any questions about that

     

  3. Enas
    Enas avatar
    0 posts
    Registered:
    25 Feb 2016
    24 Oct
    Link to this post
    Thank you for your reply . I am new to Sitefinty , I am wondering where shall I place this file , in order to be able to use the method within the news widget?
  4. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    24 Oct in reply to Enas
    Link to this post

    Are you developer?

    Just add class inside you VS project and then compile everything. 

    Then you need to go to widget template for news widget and edit this template. You can read how to edit widget templates here: http://docs.sitefinity.com/overview-widget-templates

     

  5. Enas
    Enas avatar
    0 posts
    Registered:
    25 Feb 2016
    24 Oct in reply to Victor Leontyev
    Link to this post
    Yes I am , so I can add it directly under my project and edit the template normally ?

     

    Thanks in advance .

  6. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    24 Oct in reply to Enas
    Link to this post

    Sure, you can add it inside your Sitefinity project and compile it. 

    And then you can use this extension method in widget templates (don't forget to add necessary using in widget template)

    If you have problems how to open Sitefinity project, how to compile or how to edit widget template, you can write me directly by email:  victor.leontev _at_ gmail _dot_ com 

  7. Enas
    Enas avatar
    0 posts
    Registered:
    25 Feb 2016
    24 Oct in reply to Victor Leontyev
    Link to this post
    Thank you for your support dear. will try it and let you know if I faced any issue
7 posts, 0 answered