| Project: | Drupal Commerce |
| Version: | 7.x-1.x-dev |
| Component: | Internationalization |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
i am translating some fieldnames to german.
So the Field "Order Total" needs to be calles "Gesamtsumme".
When i try to edit the field i get the following error:
Notice: Undefined index: instance in chosen_form_field_ui_field_edit_form_alter() (Zeile 54 von /var/customers/webs/jokas/onlineshop.pragerundwild.de/profiles/commerce_kickstart/modules/contrib/chosen/chosen.module).
Notice: Undefined index: description in token_form_field_ui_field_edit_form_alter() (Zeile 755 von /var/customers/webs/jokas/onlineshop.pragerundwild.de/profiles/commerce_kickstart/modules/contrib/token/token.module).
Notice: Undefined index: #description in token_form_field_ui_field_edit_form_alter() (Zeile 755 von /var/customers/webs/jokas/onlineshop.pragerundwild.de/profiles/commerce_kickstart/modules/contrib/token/token.module).
Maybe there is a way to fix it?
Comments
#1
without the option to translate the "total order" field it make no sense to have a multilingual shop.
#2
I am unable to reproduce this bug even using the beta2 version.
#3
I don't get the error messages, but there is still an issue with "Order total". The string is found by the translation interface (field:commerce_order_total:commerce_order:label), but there is no form for german translation, only english. The source language of my site is german, but for this field the system doesn't offer me the german translation. It "thinks", the string is already german...
#4
Same issue here, trying to translate Order Total field.
It's related with http://drupal.org/node/1121722#comment-6094934
I also have the Notice undefined index messages:
Notice: Undefined index: instance en chosen_form_field_ui_field_edit_form_alter() (línea 54 de /var/www/kabula/portal_ks2demo/sites/all/modules/chosen/chosen.module).Notice: Undefined index: description en token_form_field_ui_field_edit_form_alter() (línea 759 de /var/www/kabula/portal_ks2demo/sites/all/modules/token/token.module).
Notice: Undefined index: #description en token_form_field_ui_field_edit_form_alter() (línea 759 de /var/www/kabula/portal_ks2demo/sites/all/modules/token/token.module).
I have Commerce Kickstart 2. It happens with demo and no demo content installed.
#5
#6
The Undefined index issues can be solved with two patches.
For chosen module: #1720846: Fixing widget type check
For token module : #1720576: When you programmatically create a field with the option "locked => TRUE", there can be errors.
#7
But I still have the issue with wrong label "Order total" for German source language.
I can't translate it to "Gesamtsumme" because the field is locked.
The built-in "Order total" can be translated like it should be, the fields "Order total" not. I attached two screenshots to explain it.
#8
I had the same problem for weeks and it was driving me mad - had a single language site (non-English) and couldn't translate "Order total".
At least for me the key for solving it was explicitly setting the source language for the i18n module to "English". By default it's set to the default language of your site, which was not English in my case. It has to be English though because otherwise the translation interface interprets some of the English source strings as the default (non-English) language, so you can't enter a translation for that language anymore.
You'd need i18n and i18n_field modules for this solution to work.
You can find further information here:
http://drupal.org/node/1451132#comment-5984944
#9
Same issue here on a fresh installation of Drupal Commerce 7.x-1.4 (no Commerce Kickstart).
#10
Solution ?
Billing Information + Shipping Information translate don't work too !
#11
I have the same issue in "Order Total" field.
I also have other fields that can't to be translated.
Any idea?
#12
Take a look at this thread:
http://drupal.org/node/1121722
#13
Tks @cn313. I will study.
#14
same issue here, waiting for a patch or solution.
Using Commerce Kickstart 7.x-2.0
#15
Reformatting link: #1121722: Translate all field instances on an entity at once through i18n_object_wrapper::translate()
#16
This solution has worked for me
http://.../en/admin/config/regional/i18n/strings
and set "Source language" en "English"
Thanks
#17
I use this patch, it works for me.
#18
Duplicate of #1121722: Translate all field instances on an entity at once through i18n_object_wrapper::translate()
#19
#17 solved my problem!!!
@jsacksick, I don't see this solution in the patch inside the issue: http://drupal.org/node/1121722
So I don't think this issue is a duplicate.
#20
It's a duplicate, this issue isn't relevant, neither the patch, #17 is definetly not the good solution for this. Wrapping the $instance['label'] in a t is hackish.
#21
Yes but is the only solution I found!!!