Missing Tranlsation

Posts: 18
Joined: 02/03/2008

As always, im starting with a BIG thank you for all of you for this module.

My problem is with the translation of some strings.
The translation seems to exist but for some reason it is not used
The string i have problem with are:
In the first page of Cart : Continue Shopping
First page of Checkout: Shipping, Review order
In the review order page: Submit order

By the way, im using alpha7

Thank you

Posts: 85
Joined: 02/14/2008
Bug FinderGetting busy with the Ubercode.Internationalizationizer

Not entirely sure, but if you are using i18n http://www.ubercart.org/comment/12229/Re-Translation could solve your problem.
"Continue Shopping" should be the variable "uc_continue_shopping_text" I guess. Still didn't do it, would be nice if someone who is through would post the list of all text variables used by Ubercart Smiling

Posts: 18
Joined: 02/03/2008

thank you but it dint work for me (atleast with the uc_continue_shopping_text) maybe i am missing something in the way.

Posts: 18
Joined: 02/03/2008

i just found that in another ubercart beta7 installation some of those links are successfully translated.
But still cant find you why not working on mine. I havent touch the core or anything.

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

The difference is that in one install the value has already been saved through a settings form but not in the other. These links' values may be adjusted through settings forms, so unless you need multilingual values you can adjust them in their forms. Otherwise, you'll have to get i18n working to translate stored variables (I believe that's what TR linked to).

Posts: 18
Joined: 02/03/2008

ok this is what i did
My problem was with the transaltion of
Continue Shopping (In the first page of Cart), Review order (First page of Checkout: Shipping) and Submit order (In the review order page)

thank you..you got me going and give more attention to that solution and now it is working (to be honest i dont realy like the solution but what do i know Smiling )

What i did...

On my sites/default/settings.php i have add the lines

$conf['i18n_variables'] = array(
'uc_continue_shopping_text',
'uc_checkout_review_button',
'uc_checkout_submit_button',
);

Then
on http://inkjetshops.gr/en/admin/store/settings/cart i set Continue shopping link is: Continue shopping
on http://inkjetshops.gr/el/admin/store/settings/cart i set Continue shopping link is:

same thing on
http://inkjetshops.gr/el/admin/store/settings/checkout/edit
http://inkjetshops.gr/en/admin/store/settings/checkout/edit

For shipping i havent found a solution. if anyone knows plz post it

thank you again

Posts: 85
Joined: 02/14/2008
Bug FinderGetting busy with the Ubercode.Internationalizationizer

Thanks for your write-up krunar, so it is working.

Looking through the code (uc_order_order_pane.inc) in line 355 is

. check_plain($item['title']) .

($item['title'] is in your case 'Shipping' stored in the DB)
This means: no way for a straight translation Sad

My workaround is:
- Create for every language shipping methods with titles in the target language
(you will have probably anyway different rates for your country and abroad)
- go to workflow-ng and add to every shipping method another condition: (with and) Check an order's shipping country (for one method you select Greece, for the other one all other countries)

=> after the customer enters the delivery information uc_quotes fetch the "translated" shipping method according to the country conditions. Not exactly a translation, but should in most cases produce the right result.

Hope this helps, Al

Posts: 18
Joined: 02/03/2008

thank you for the tip. but to be honest i dont plan to implement this.
they will have to leave with the "shipping" Evil
haha