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

Forums / Set-up & Installation / Localization for Images with PathPrefix persistence

Localization for Images with PathPrefix persistence

4 posts, 0 answered
  1. David
    David avatar
    22 posts
    Registered:
    04 May 2009
    15 Apr 2010
    Link to this post
    I have a site currently in English that we're working on localization.  I'm looking for guidance on dealing with localized images.

    Our current site has a page URL like:
    www.example.com/promotion/

    that references an image like:
    www.example.com/images/promotion-image.jpg

    When I turn on pathPrefixed localization, the page URL becomes
    www.example.com/en-us/promotion/

    What would be the best way to organize these images to take the localization into account?
    www.example.com/en-us/images/promotion-image.jpg
    www.example.com/images/en-us/promotion-image.jpg
    something else?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Apr 2010
    Link to this post
    Hi David,

    The built-in localization does not work properly with Image and Documents module and there are some bugs with this. Anyway the better option is to have the PathPrefix right after the host name.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. David
    David avatar
    22 posts
    Registered:
    04 May 2009
    20 Apr 2010
    Link to this post
    Yes, I understand that I will use pathprefix, but as I understand it, the path prefix is a URL trick.  As in my example, there's no physical folder named "en-us".

    I want to understand how to best reconcile the path prefixing with managing image folders.  Please look at my examples carefully and let me know which kind of URL I should use for localized images.  I know that these images aren't "localized" as far as the CMS is concerned, but I need to localize and organize them nonetheless.
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Apr 2010
    Link to this post
    Hello David,

    What I can suggest you is to use different libraries for the different images. This way, you can place different images on the different language versions. Does this sound as an option?

    Sincerely yours,
    Georgi
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered