jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Pages: [1] 2

Author Topic: Text Formatting dissapeared  (Read 21623 times)

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Text Formatting dissapeared
« on: September 11, 2013, 02:01:50 pm »

Hello all,

I'm using Joomla 2.5.14 with K2, JCE 2.3.2.4 and jDiction 0.9.9.7. on website museedutrompeloeil.fr ( go to museum -> tromple l'oeil to see the problem....)

When I translate a K2 element, the text gets unformated when I save it (all tags dissapear : <p><H2><H3> etc...) so all I get is a continueus paragraphe.

I have tried all editors : JCE, Tiny MCE, Code Mirror, Non WYSIWYG, all with same result... Tags are blown away upon save or save & exit. Is This an XML problem for K2 ???

Where am I going wrong ?

Thanks

PS: It would be nice to be able to translate the additional fields in K2 in future version of jDiction... would be pleased to become future paid member. :)
« Last Edit: September 11, 2013, 02:16:02 pm by enzo2424 »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #1 on: September 11, 2013, 02:35:59 pm »

I think thats a problem in the jdiction.xml for k2, I attached a new version maybe this fixes the problem if so please give feedback.
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #2 on: September 11, 2013, 08:59:01 pm »

Thank you Harald,

Unfortunately, text formatting is still getting zapped upon save.

I'll PM you access so you can take a peek.

Thank you again :)
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #3 on: September 11, 2013, 09:50:27 pm »

Hmm I updated your jdiction version from 0.9.9.7 to 0.9.9.10^^

But this doesn't help... Are you sure you are using the new xml file?

maybe you install a file browsing component so I could check it my self.
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #4 on: September 12, 2013, 01:19:29 am »

Sent you another MP :)

Thank you for your help !
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #5 on: September 12, 2013, 02:01:28 pm »

the fact that you did a backup of jdiction.xml as jdiction.xml.old is maybe good but in this case both files got loaded and the old file overrides the first one...

I deleted the file now it works.
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #6 on: September 12, 2013, 10:49:11 pm »

 :-[ :-[ :-[
I thought I was doing things the right way ! Sorry 'bout losing your time.

Thank you very much for having taken care of my problem.

In the future, will jDiction be able to translate the additional fields in K2 ?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #7 on: September 13, 2013, 07:42:10 am »

I didn't looked at it but should be possible
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #8 on: September 13, 2013, 10:11:43 am »

K2 additional fields is a powerful tool, allowing the user to create pseudo additonal fields.

Actually, what happens is that all the info is concatenated into one string.
This string is in (prefix)_k2_items table, in the extra_fields column. Extra field 'names' are in the (prefix)_k2_extra_fields table.

This allows for special page setups, as on my site, but also for many other uses. In my case, Extra fields are the main reason for my adopting K2 as contents manager instead of using standard Joomla content component. Much more functionality (not to mention better image resizing, easier video insertions, gallery et al...)
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #9 on: September 13, 2013, 10:29:31 am »

the Problem is not to add extrafields or translate  a json_encoded table (if its json encoded). The Problem is to find a generic way to support k2 and other components at the same time.
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #10 on: September 13, 2013, 12:43:10 pm »

I'm not sure that it's possible to have generic solution to all components/modules with one "auto-magic" plugin. There are as many components as there are different logics behind them (sobipro comes to my mind!, Virtue mart and Hikashop too !:) )

Maybe it might be easier to just have "component-specific" add-ons to jDiction Component.
For example, between the jDiction Component tabs 'Tools' and 'Check', one could find 'Component compatibility" where user could find a library of xml files that they could upload to site (better yet, that would upload the xml file straight to the proper directory!)
This gives the user the choice of which components he would like to have transations for.( And in the same time, no need for jDiction to do the search of what components are or are not installed.)
Maybe this is semi-manual, but seems the simplest path to go. And I'm sure that users are smart enough to figure out which components they want to translate. :)

Another possibility is to simply follow the database tables, after all, absolutely all the website information is in there. But how to go about such a feat is way beyond the grasp my comprehension.

Unfortunately, I'll be of little help to you. I'm, at best, a php 'tinkerer'.
If I can be of any help, please mail me, I'd be glad to help (maybe for documentation or translation of ini file to french language for example....)

Thank you again for all your (RAPID) help and thank you for jDiction - a marvelous tool.

I'll certainly apply for a paid membership when that comes to be.

Best regards,
Vincent
« Last Edit: September 13, 2013, 12:46:59 pm by enzo2424 »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #11 on: September 13, 2013, 12:56:27 pm »

That there will be no solution for all is clear ;-)

But there must be an API for the components.
A list of all supported components will happen but 3rd party components will be supported after 1.0 release... there are much other things todo.
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #12 on: September 14, 2013, 11:13:11 am »

I went and took a peek at the xml file that is in K2.
I see that you have commented out the Extra Fields.
I suppose that it's not working or is this for beta-testing ?

Also, I've noted a bug :

When translating K2 item, if I user translate button while in the K2 Item (the blue translate button) I cannot save translation, it gets wiped away.
However, if I use the Red translate icon (K2 Item not opened) Then everything goes well.
I suppose that this has to do with K2 Item opened or not, maybe related to K2 Item save status ?
« Last Edit: September 14, 2013, 11:16:34 am by enzo2424 »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Text Formatting dissapeared
« Reply #13 on: September 14, 2013, 01:06:17 pm »

The xml files is a translation from joomfish and maybe joomfish supports extrafields, I don't kown...

The Saving should work in both views... strange
Logged
Joomla! 5.0 Release Manager
Vote at JED

enzo2424

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Text Formatting dissapeared
« Reply #14 on: September 15, 2013, 09:13:51 am »

How can I translate site description and site title in the General settings? It would be nice that homepage has translated version for Google.

Also, I think that the strange save behaviour was due to my navigator (chrome) bugging. Now works
Logged
Pages: [1] 2