jDownloadsownloads.com

Advertisement
Advertisement:

Author Topic: Multilingual Downloads  (Read 4112 times)

0 Members and 1 Guest are viewing this topic.

Offline theguy

  • Newbie
  • *
  • Posts: 16
Multilingual Downloads
« on: 14.10.2014 09:10:23 »
Hi all,

I'm setting up a new download area on a clients site and would to know what are my options regarding multilingual support.
I could not find any information regarding this option in the documentation or on Google.

I've got two languages and each have many categories and files associated to them. If I create duplicated folders and files I'm left with a really messy and hard to manage system.
Is there a way to make the downloads area multilingual? Maybe by using Falang?

O.k. Found your documentation regarding Falang. I've installed the latest version on my site and copied all 4 xml elements to Falang contentelements directory but they are not showing on the back-end  ???
Update:
Found the problem. I've copied the Joomfish files and had to edit them to Falang. So now they do appear in my translation options but I get this error message when I try to translate categories:
No valid database connection: DB function failed with error number 1146
Table 'guywalde_romlddb.hildn_jdownloads_cats' doesn't exist SQL=SELECT c.cat_id as id, c.cat_id, c.cat_title as title, c.cat_title, c.metadesc, c.metakey, c.cat_description, c.checked_out, c.checked_out_time, jfc.id as jfc_id, jfc.value as titleTranslation, jfc.modified as lastchanged, jfc.published as published, jfc.language_id, jfl.title as language, jfc.reference_id as jfc_refid FROM hildn_jdownloads_cats as c LEFT JOIN hildn_falang_content as jfc ON c.cat_id=jfc.reference_id AND jfc.reference_field='cat_title' AND jfc.reference_table='jdownloads_cats' AND jfc.language_id=1 LEFT JOIN hildn_languages as jfl ON jfc.language_id=jfl.lang_id ORDER BY c.cat_title LIMIT 0, 20


Update:
Changed the file table name and the fields according to the table in my DB. The fields are showing up but when I try to translate it I get a blank page. Other translations like "Downloads" works fine.
This is my jdownloads_cats.xml file:
<?xml version="1.0" ?>
<falang type="contentelement">
<name>jDownloads Categories</name>
<author>Arno Betz</author>
<version>2.5.9</version>
<description>Definition for the jDownloads component - Categories</description>
<reference>
<table name="jdownloads_categories">
<field type="referenceid" name="id" translate="0">ID</field>
<field type="titletext" name="title" translate="1">Title</field>
<field type="textarea" name="metadesc" translate="1">Meta Description</field>
<field type="textarea" name="metakey" translate="1">Meta Keys</field>
<field type="htmltext" name="description" translate="1">Description</field>
</table>
</reference>
</falang>

Another issue I've encountered, I've tried setting up the system as multilingual by creating 2 folders, one for each language. Then I successfully uploaded files to the first language folder but the same files that where uploaded to the second language folder where not detected by the system. In addition, I've created two menu items, one for each language, set to "List all categories". The first one loads fine but the second one tries to load the first one's link once I click on  a folder. I think I'm doing it wrong...
Update:
I think I know what's the source of the error page. The site was built as a multilingual site using Joomla's core functions. Now that I need to use Jdownloads I had to install Falang as well. But, Falang will not load my categories and it throws an error because of the /en that's added at the end of my url. Tried using Falang's language switcher but it won't let me select my second language. I guess it because I haven't got any translations for that language in Falang. I can't translate my entire site form the beginning. I'm using Virtuemart as well and things are getting messy... Please help me here.

Thank you in advance,

Guy.
« Last Edit: 14.10.2014 12:04:32 by theguy »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: Multilingual Downloads
« Reply #1 on: 14.10.2014 13:49:43 »
Hi,
sad to say but in the new series is JoomFish or FaLang are in the moment not official supported. See pic from the new version descriptions (download area).
The reason is that many data fields are added (some others renamed) in the new series. Also table names are renamed. So the 'contentelements' files are not compatible in the moment. 

I think that to make this compatible with the new version is not so much work and when you have a little bit experiences you should self can do this.
You must only compare the table and field names...

Quote
The site was built as a multilingual site using Joomla's core functions.
But when you have created a new multilingual site with the Joomla's core functions , why will you use (only for jD?) FaLang?
jDownloads supported the Joomla core functions for multilanguage content.

Quote
Tried using Falang's language switcher but it won't let me select my second language. I guess it because I haven't got any translations for that language in Falang.
This can be a little tricky, use google to find a FaLang or JoomFish installation video.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline theguy

  • Newbie
  • *
  • Posts: 16
Re: Multilingual Downloads
« Reply #2 on: 14.10.2014 15:25:30 »
Hi Arno,

Thank you so much for your quick response.

As for Falang, I would REALLY prefer NOT to use it but I was under the impression it's the only way to create a multilingual download area.
Can you please explain a little further on how to create a multilingual download area? Or provide a link with explanations? From previous posts I've read there's not way to associate files to more then one category so I guess it will have to involve duplicated files right?

One more thing thou, as I wrote before, I have a weird bug with the non-default language when trying to access a category.
If you'll take a look at the following link:
http://rom.guywalderonline.com/index.php/en/downloads
You'll see I've got two categories, one in Hebrew which I've set to "All" language and another in English which was set to "English" language.
When I try to access the category I get a 404 error page and the from the page URL I can see it tries to access the Hebrew (Default language) page.
How can I please fix that?

Update:
After going over almost all of the multilingual posts in your forum I've found a solution for this "bug" by renaming both menu items, Hebrew and English, to the same alias.
Now all is left is to understand how to setup a multilingual download area. I hope the answer is not by having duplicated categories and files...  :-\

I tried to create a category for only one language (English) and it worked only that in the drop down menu I can still see ALL categories regardless of the language assigned to it. See attached screen shot.

Regards,

Guy.
« Last Edit: 14.10.2014 17:59:10 by theguy »

Offline theguy

  • Newbie
  • *
  • Posts: 16
Re: Multilingual Downloads
« Reply #3 on: 19.10.2014 10:35:47 »
Bump... Can anyone please provide some instructions as for how to manage a multilingual Jdownloads download area?
I wouldn't like to have duplicated data on my server as the files for both languages are the same and so are the categories.
If the only option is duplicated data, can someone please provide a working categories Falang xml file so I'll try to use it for translations?
I've made the changes from the given Joomfilsh xml file but it's not working. I can see the categories listed but when I try to edit one I get a blank page...

Thanks in advance,

Guy.

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: Multilingual Downloads
« Reply #4 on: 19.10.2014 12:58:29 »
Hi,
the way should be nearly the same as when you create a multilanguage content website with Joomla. For Joomla exist many tutorial to this topic.

Quote
I wouldn't like to have duplicated data on my server as the files for both languages are the same...
You can select a file from a other download, so that always only one file is required. See pic.

FaLang...
I will seen what i can do here.

Edit: I will post here in the next hour a first version contentelements files.  ;)


 
« Last Edit: 19.10.2014 13:50:10 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: Multilingual Downloads
« Reply #5 on: 19.10.2014 17:41:44 »
Hi,
here is the first version from the contentelements files for JoomFish / FaLang. This files will be also a part from the next beta version.
But the functionality is not tested yet. So you should test it first on a not productive website (or locally).

All files are basicly for Joomfish so maybe must you change in every xml file this definition:
Code: [Select]
<joomfish type="contentelement">to
Code: [Select]
<falang type="contentelement">
Special Hint:

in jDownloads 2.5/3.2 is use a special method to make this new series compatible to the Joomal 'multilanguage' function.
So is used in many data fields (in Configuration and User Groups Limits) a special structure for texts.
See example in pic. Please delete (when you will works with JoomFish or FaLang) all this special language definitions.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline theguy

  • Newbie
  • *
  • Posts: 16
Re: Multilingual Downloads
« Reply #6 on: 19.10.2014 20:25:27 »
Hi Arno,

Thank you for the time a effort you've put in this.
I'll test your xml files and update you as for how this was going.
I've taken a quick look to the jdownloads_categories.xml file you've posted and it's very similar to the changes I've made to it. Hope this will work.
Your option to select an existing file for a new download will be of good use in case I won't be able to use Falang for this task.

I'll keep you posted as for how things went.

Thank you,

Guy.

 

Offline theguy

  • Newbie
  • *
  • Posts: 16
Re: Multilingual Downloads
« Reply #7 on: 21.10.2014 08:48:21 »
Hi Arno,

Your categories XML file worked like magic. Thank you SO much for that.
I've tried the other option as well and selected an existing file for a new download for the secondary language.
This worked fine as well BUT, the bug with both languages categories appearing in the drop down category selection remained so I stayed with Falang for now.

Again, thank you for your 5/5 star support and for this wonderful extension.

Regards,

Guy.

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: Multilingual Downloads
« Reply #8 on: 21.10.2014 10:55:44 »
Hi Guy,
Quote
This worked fine as well BUT, the bug with both languages categories appearing in the drop down category selection remained so I stayed with Falang for now.
Maybe a bug. I will check this here today.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline jooomlaa

  • Newbie
  • *
  • Posts: 8
  • <mediaDESIGN>
    • www.media-web.de
Re: Multilingual Downloads
« Reply #9 on: 03.03.2015 15:00:55 »
my set of falang xml
<mediaDESIGN>
Joomla! competence

 

Advertisement