News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Problem with custom fields translation

Started by eneru, 23.10.2015 13:12:53

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eneru

Hi everyone and thanks for Your useful component,

I tried to search google and this forum for a similar problem but I found nothing that could point me to the right solution.
I think I found a Bug in custom fields.

- I'm running Jdownloads version: 3.2.39 on
- Joomla 3.4.5
- Apache/2.2.22 (Debian)
- PHP: 5.4.45-0+deb7u1
- MySQL: 5.5.44-0+deb7u1
- Site is on a production environment but not exposed to the public
- No Cache
- No gzip compression
- Site is multilanguage using Falang ( it-IT, en-GB)
- Installed language packs (Admin+Site): it-IT, en-GB
- Content languages: it-IT, en-GB


I need 3 custom fields (1 short text, 2 data fields)
I configured them correctly, modified "Download Details" layout to show them.
Everything is working fine.


The problem is that I need to provide translations to those fields,
so I modified my custom fields title to this format

{en-GB}english text{/en-GB}{it-IT}italian text{/it-IT}


That resulted in:
- FRONTEND(view=download): 3 of 3 Custom field titles are in the same format as the backend configuration values
                                             {en-GB}english text{/en-GB}{it-IT}italian text{/it-IT}

- BACKEND(view=download&layout=edit): in the "Custom Data Fields" dropdown, the short text field title is the same as FRONTEND
                                                              the other 2 data field titles are translated correctly.

- FRONTEND(view=form&layout=edit): no option to edit custom data fields


Thanks to everybody!!

[gelöscht durch Administrator]
  •  

ColinM

Hi
I think the problem here is that Falang is not able to 'look inside' jDownloads content.  There is at present no jD plugin fro Falang.  Actually I believe it is only since Joomla! 3.4 that Falang has supported Joomla! 3.

Would be a good idea to suggest jD supports Falang, and maybe you could offer to help test it.

Colin
Colin M
  •  

eneru

Hi ColinM thank You for the reply,

Maybe You're right, but a couple of things make me think that the problem is somewhere else.

The first is that the FaLang component translates specific configured items and falls back to core joomla language manager for everything else, or so I assumed using this component
So in this case I think that the FaLang Component is used only as a Language Switcher (that forward the requests to Joomla language manager)

I noticed the following behaviour:
- everything (inside the JD content) is translated correcty in both languages, so I assume that in this case the content is provided by JD, passed than to joomla that translates using languages/xx-XX/xx-XX.com_jdownloads.ini and everything works like a charm.

- the label of the checkbox which is used for selecting every item in a layout that uses checkboxes (i don't know how it is managed internally) but it is configured in the same way as custom field labels, and this is translated correctly. (attached)


Of course if You need help in testing I'll be glad to help You


[gelöscht durch Administrator]
  •  

Arno

#3
Hi Eneru,
maybe we have here a bug.

Please note that jD supported at first the Joomla integrated multi language functionality.
For this we must add the {en-GB}english text{/en-GB}{it-IT}italian text{/it-IT} structure for all editable configuration text fields.

But you use Falang!
So maybe must you use instead the special 'Falang' translation also here. You can also translate the configuration in Falang. So you can define here different values for each language (for the custom field labels). Have you tried this? 

EDIT:
QuoteI'm running Jdownloads version: 3.2.39 on
- you should always first install the newest version before you create a post here.

I have just tested your problem with the custom fields but can not confirm this with a Joomla installation without Falang.
I will test it later with another installation and Falang.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •