OS Property support center

Extra Field text area in non-English language

  • Stanislav
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #70990 by Stanislav
Hello,
I've installed OS Property 2.9.2 in multilingual Joomla site( English and Russian). I made an extra field with text area for a property. When I edit property and try to enter text to that extrafield both in English and Russian and save property I see that in Russian text area text appears in English, the same as in English textarea. I tried to enter Rissian text to Russian textarea again but after saving I see English again. I looked to database and in _osrs_property_field_value table I see my English text in "value" column but no data in "value_ru" column. In another extrafields with singletext there are no problems, text saved in both languages. Could you please direct me where to look, maybe I did something wrong.

Please Log in or Create an account to join the conversation.

  • Stanislav
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #71074 by Stanislav
Replied by Stanislav on topic Extra Field text area in non-English language
Hello again,
just my thoughts: I suppose it should be related to the identification of the element which contains text in Russian. For example, I watched the HTML source code of the page with Pproperty editing in Administrator interface. The default editor is Tiny MCE and for example my Extra Field is called Services(it's alias is "services"). So if I point to English textarea block I see something like:
"body id="tinymce" class="mce-content-body " contenteditable="true" data-id="services" dir="ltr""
and further goes my text. The Russian textarea contains:
body id="tinymce" class="mce-content-body " contenteditable="true" data-id="mce_10" dir="ltr""
So I noted the difference in "data-id" and as long as the data from Property editing page goes like form data by POST I suppose the problem maby somewhere in those ID's, so that the part which receives POST data and then puts to the database normally inserts data with ID "services", but doesn't know what to do with data with ID "mce_10" or whatever. Then I thought that the cause of the problem is when the Property Editing page is being generated some part doesn't puts correct ID's to some elements of extrafields inputs. And this is related only to extrafields with textarea type. Lists and simple text types work fine. E.g. I have an text extrafield with alias "swimmingpoolsize", so this extrafiled has code "input id="swimmingpoolsize" class="input-medium" type="text" maxlength="255" name="swimmingpoolsize" value="4 x 6" size="20"" for English input and "input id="swimmingpoolsize_ru" class="input-medium" type="text" maxlength="255" name="swimmingpoolsize_ru" value="4 x 6" size="20"" for Russian element, so there I can notice the difference in name and id. But the mentioned is just my thoughts, I am not sure about it. Anyway I kindly ask for help because I can't start filling the Properties while I have such trouble.

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan