Is it possible to use a dictionary item on country names?
or perhaps in a future version add a Dictionary item name field like on payment and delivery methods?
perhaps a similar property on currencies too, if you don't want to use the ISO code in frontend, but e.g. Danish krone instead of DKK or € instead of EUR ..
You can easily use dictionary items for country names. Just create dictionary items and use the country name as alias. Then you can select the dictionary item by the name of the country.
I have tried to create different dictionary items with alias cnDenmark, denmark and Denmark .. but it doens't seem to work in Tea Commerce section?
I want to translate the country names in backend and the confirmation e-mail also use the right language for the country name.. but payment and delivery methods also have a field / property for this to insert a dictionary item alias.. which contries doesn't have.
To change it in the Tea Commerce admin you have to edit the TeaCommerce/teaCommerceAdminOrder.xslt. To change the confirmation mail you edit the TeaCommerce/teaCommerceEmailTemplate.xslt
but it doesn't seem to be a solution to translate the country nodes in Tea Commerce section, like it's you have done with Payment and Shipping methods.
Where in Payment and Shipping methods in has a field Dictionary item name to specify the dictionary item alias:
That is not possible, no. But if your client really needs it feel free to write us at [email protected] and we can give you an estimate on what it would take.
Okay, that it not important right now.. and the language will be in Danish ... perhaps other languages later.. so I can just name the countries in Tea Commerce section in Danish for now..
but perhaps in a future version you can add the property field "dictionary item name" on countries and currencies like payment and shipping methods have now, so it's possible to using dictionary items on countries and currencies, if they don't use a sign or ISO code for the currency name.
Change country names
Is it possible to use a dictionary item on country names?
or perhaps in a future version add a Dictionary item name field like on payment and delivery methods?
perhaps a similar property on currencies too, if you don't want to use the ISO code in frontend, but e.g. Danish krone instead of DKK or € instead of EUR ..
Bjarne
Hi Bjarne,
You can easily use dictionary items for country names. Just create dictionary items and use the country name as alias. Then you can select the dictionary item by the name of the country.
/Rune
Hi Rune
I have tried to create different dictionary items with alias cnDenmark, denmark and Denmark .. but it doens't seem to work in Tea Commerce section?
I want to translate the country names in backend and the confirmation e-mail also use the right language for the country name.. but payment and delivery methods also have a field / property for this to insert a dictionary item alias.. which contries doesn't have.
Bjarne
Hi Bjarne,
To change it in the Tea Commerce admin you have to edit the TeaCommerce/teaCommerceAdminOrder.xslt.
To change the confirmation mail you edit the TeaCommerce/teaCommerceEmailTemplate.xslt
Both of them will support your dictionary items.
/Rune
Okay, in xslt it uses the country property - the selected from the dropdown in frontend.
How can I add the right country dictionary item here? e.g. <xsl:value-of select="umbraco.library:GetDictionaryItem('cnDenmark')"/>
and in cart step 2 it is something like:
but it doesn't seem to be a solution to translate the country nodes in Tea Commerce section, like it's you have done with Payment and Shipping methods.
Where in Payment and Shipping methods in has a field Dictionary item name to specify the dictionary item alias:
Bjarne
Hi Bjarne,
Something like this.
/Rune
Hi Rune
Thanks, it works.. then the dictionary item of the country name must match the country node name in Tea Commerce section to work?
Is there any way to translate the country node names in Tea Commerce section? right now it is in English both when the backend use Danish and English.
Bjarne
Hi Bjarne,
That is not possible, no. But if your client really needs it feel free to write us at [email protected] and we can give you an estimate on what it would take.
/Rune
Hi Rune
Okay, that it not important right now.. and the language will be in Danish ... perhaps other languages later.. so I can just name the countries in Tea Commerce section in Danish for now..
but perhaps in a future version you can add the property field "dictionary item name" on countries and currencies like payment and shipping methods have now, so it's possible to using dictionary items on countries and currencies, if they don't use a sign or ISO code for the currency name.
Bjarne
is working on a reply...