I was trying to create an entity and nothing happened. I tried, and i tried, then i decided to debug the code and discovered that on eck.entity_type.inc, the code is checking if the operation is "Save" to do the needed stuff, or make nothing. The case here is that in other languages, like mine(Portuguese), the word will change and the test will fail everytime.
The solution was simple: put "Save" inside the t().
- if($state['values']['op'] == "Save"){
+ if($state['values']['op'] == t("Save")){
By the way, this module is awesome! Hope to see he growing a lot.
| Comment | File | Size | Author |
|---|---|---|---|
| eck-otherlanguagescompatible.patch | 793 bytes | pedrorocha |
Comments
Comment #1
fmizzell commentedThis is a simple change, thanks. I should get it in soon.
Comment #2
fmizzell commentedAhh, I completely missed the version that you were submitting the issue for. This problem is fixed in 7.x-2.x.
Comment #3
dpjef commentedArgh, just posted the same issue on the forum this afternoon, should have searched more before....
Comment #5
jkempff commentedin 7.x-2.0-alpha1 this still is not fixed.
"The solution was simple: put "Save" inside the t()." works for me.