Jump to content

Ajax popup translate to czech


Holohugo

Recommended Posts

Hello :)

When customer add a product into their cart, an ajax popup appear. There is an overal cart title with translation for 1 product, and for more than 1 product (products) and function for it.

In czech language, we have three states. We have:

  • 1 Produkt
  • 2 - 4 Produkty
  • 5 Produktů

Can this function be changed to show first translation for 1 product, second for 2 to 4, and third to 5 and so? :)

<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
{l s='There are [1]%d[/1] items in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
</span>
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
{l s='There is 1 item in your cart.' mod='blockcart'}
</span>

 

Thank you for any help :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...