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?
Comment | File | Size | Author |
---|---|---|---|
#17 | Total_order_translation-1776644-17.patch | 612 bytes | steveoriol |
#7 | Order_total_Built-in_interface.jpeg | 122.84 KB | krabbe |
#7 | Order_total_fields.jpeg | 143.47 KB | krabbe |
Comments
Comment #1
achikas CreditAttribution: achikas commentedwithout the option to translate the "total order" field it make no sense to have a multilingual shop.
Comment #2
theo_ CreditAttribution: theo_ commentedI am unable to reproduce this bug even using the beta2 version.
Comment #3
krabbe CreditAttribution: krabbe commentedI 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...
Comment #4
amorales@drupal.org.es CreditAttribution: amorales@drupal.org.es commentedSame 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:
I have Commerce Kickstart 2. It happens with demo and no demo content installed.
Comment #5
amorales@drupal.org.es CreditAttribution: amorales@drupal.org.es commentedComment #6
krabbe CreditAttribution: krabbe commentedThe 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.
Comment #7
krabbe CreditAttribution: krabbe commentedBut 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.
Comment #8
majusz CreditAttribution: majusz commentedI 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
Comment #9
kreatIL CreditAttribution: kreatIL commentedSame issue here on a fresh installation of Drupal Commerce 7.x-1.4 (no Commerce Kickstart).
Comment #10
jackdaniel9 CreditAttribution: jackdaniel9 commentedSolution ?
Billing Information + Shipping Information translate don't work too !
Comment #11
astutonetI have the same issue in "Order Total" field.
I also have other fields that can't to be translated.
Any idea?
Comment #12
cn313 CreditAttribution: cn313 commentedTake a look at this thread:
http://drupal.org/node/1121722
Comment #13
astutonetTks @cn313. I will study.
Comment #14
makokis CreditAttribution: makokis commentedsame issue here, waiting for a patch or solution.
Using Commerce Kickstart 7.x-2.0
Comment #15
lsolesen CreditAttribution: lsolesen commentedReformatting link: #1121722: Improve DX of instance translation
Comment #16
vacho CreditAttribution: vacho commentedThis solution has worked for me
http://.../en/admin/config/regional/i18n/strings
and set "Source language" en "English"
Thanks
Comment #17
steveoriolI use this patch, it works for me.
Comment #18
jsacksick CreditAttribution: jsacksick commentedDuplicate of #1121722: Improve DX of instance translation
Comment #19
gianfrasoft CreditAttribution: gianfrasoft commented#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.
Comment #20
jsacksick CreditAttribution: jsacksick commentedIt'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.
Comment #21
gianfrasoft CreditAttribution: gianfrasoft commentedYes but is the only solution I found!!!
Comment #22
bojanz CreditAttribution: bojanz commentedJust a note, I was able to translate the order total string with the "i18n_field" module enabled without a problem.
Comment #23
gianfrasoft CreditAttribution: gianfrasoft commentedHi, @bojanz,
please take a look at this: https://drupal.org/node/1451132#comment-7511113
and this: https://drupal.org/node/1451132#comment-7512015
As I said there:
Comment #24
jiaxin CreditAttribution: jiaxin commentedi've encounter the same issue, and i find the following solution works fine:
Comment #25
Marko B CreditAttribution: Marko B commentedI am having similar problem with Shipping label in commerce-order-handler-area-order-total that is included in view,
just can't be translated as it is not showing in TI. Guess is it a bug.
<tr class="component-type-flat-rate-usd-internet even"><td class="component-title">Shipping</td><td class="component-total">$9.90</td> </tr>
Comment #26
Marko B CreditAttribution: Marko B commentedFor the problem I have, seems it was due to flat rate shipping module. So this patch here should help
https://www.drupal.org/node/1480654
Comment #27
gmrmedia CreditAttribution: gmrmedia commented#16 works for me ;)
Comment #28
Mehrdad201 CreditAttribution: Mehrdad201 commentedSolution #24 worked for me.
Thanks jiaxin
Comment #29
ivanhelguera CreditAttribution: ivanhelguera commentedGeez, remember that searching for translation strings *is case sensitive*.
I had everything actually working, but the translation system was not finding the strings because I typed in "order total" instead of "Order total".
Comment #30
ANDiTKO CreditAttribution: ANDiTKO at Netstudio commented#24 worked for me
Comment #31
phosgen CreditAttribution: phosgen commentedThere now is a working module that works like a charm in renaming the labels for all locked fields.
Rename Locked Fields
https://www.drupal.org/project/rflocked
Comment #32
StijnBousard CreditAttribution: StijnBousard commentedSolution #17 worked for me.
Thanks steveoriol
And for those looking to translate "Billing information", I refer tot solution #6 of https://www.drupal.org/node/1451132#comment-5699958
Comment #33
smurfxx CreditAttribution: smurfxx commented#17 worked for me.
I wonder why an issue of 2012 is still not be fixed at the end of 2018... A simple string.
Comment #34
drupalfan2 CreditAttribution: drupalfan2 as a volunteer commentedI have this problem in Commerce 7.x-1.17! This problem still exists!
I tried a lot of solutions but the only solution that worked was #24.
In my themes template.php file: