Jump to content

How can I insert new words to langauge pack?


patrick81

Recommended Posts

I'm just wondering... is there a way to add new words to language? For example, I go to Tools -> Translations -> Modify translations (any flag) and I see a list of words but I want to add a new word there because i'm planning to add a new words to my website and have them translated ready. Any idea how? Please help me! :mellow:

 

If i'm not clear, please ask. :)

 

Thanks guys

Patrick

Link to comment
Share on other sites

  • 8 months later...

For this to work you need to edit the relevant tpl files.

 

Depending on which words you are trying to insert, as an example, if you want to add a new word in your product page for product which goes on sale and the offer is only good within 24 hours- go product.tpl and insert

{l s='OFFER GOOD FOR 24 HOURS!'}

 

and i have deleted the On sale which was there by default. (You can also comment out the expression you don't need.)

 

 

{if $product->on_sale}
					<img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/>
					<span class="on_sale">{l s='OFFER GOOD FOR 24 HOURS!'}</span>

 

this expression will appear in the Back office >Tools>Translation -- for Front Office translation ( product expressions) and you can edit the translation.

 

Hope it helps.

Edited by halennoor (see edit history)
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...