Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author oferwald

    (@oferwald)

    Hi,

    Can you post the html before and after the translation here? make sure to use the code tagging so it will be readable

    Thread Starter Ward

    (@yward)

    Before:
    <div class="title">Filter by price</div><form method="get" action="https://mywebsite.com/"><div class="price_slider_wrapper"><div class="price_slider ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all" style=""><div class="ui-slider-range ui-widget-header ui-corner-all" style="left: 0%; width: 100%;"></div><span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0" style="left: 0%;"></span><span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0" style="left: 100%;"></span></div><div class="price_slider_amount" data-step="10"> <input type="text" id="min_price" name="min_price" value="20" data-min="20" placeholder="Min price" style="display: none;"> <input type="text" id="max_price" name="max_price" value="140" data-max="140" placeholder="Max price" style="display: none;"> <button type="submit" class="button">Filter</button><div class="price_label" style=""> Price: <span class="from">20EGP</span> — <span class="to">140EGP</span></div><div class="clear"></div></div></div></form>

    After:
    <div class="title">تصفية حسب السعر</div><form method="get" action="https://mywebsite.com/ar/"><div class="price_slider_wrapper"><div class="price_slider ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all" style=""><div class="ui-slider-range ui-widget-header ui-corner-all"></div><span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0"></span><span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0"></span></div><div class="price_slider_amount" data-step="10"> <input type="text" id="min_price" name="min_price" value="سعر دقيقة" data-min="20" placeholder="Min price" style="display: none;"> <input type="text" id="max_price" name="max_price" value="سعر ماكس" data-max="140" placeholder="Max price" style="display: none;"> <button type="submit" class="button">منقي</button><div class="price_label" style=""> السعر: <span class="from">0EGP</span> — <span class="to">0EGP</span></div><div class="clear"></div></div></div></form>

    The problem appears to be that for some reason “value” attribute is being translated.

    • This reply was modified 6 years, 7 months ago by Ward. Reason: remove my website url
    Plugin Author oferwald

    (@oferwald)

    Hi,

    I don’t see any no_translate attribute in your code.

    Thread Starter Ward

    (@yward)

    hello @oferwald

    I apologise for the late reply. Yes this code is the plain code, However I’ve added the no_translate tag here:

    
    <div class="price_slider_wrapper no_translate">

    but to no avail.

    My solution was to add a whole new div before this code with the no_translate class before the old code.

    Thanks for your support regardless, I’ll mark this as solved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Breaks price filter widget’ is closed to new replies.