Does anyone know of a tutorial for how to set up and use MigxMultiLang?
It sounds very promising (not a fan of Babel) but I'm not really sure how to go about it.
[ed. note: muzzstick last edited this post 11 years, 10 months ago.]
-
☆ A M B ☆
- 24,524 Posts
If you follow the instructions very carefully it works as expected. The first few times I set it up I kept missing the part about the custom pdoFetch class, and forgetting about the [[++original_culture_key]] and [[++original_site_url]] settings. You need to use that [[++original_site_url]] tag in your template's base meta tag to get the relative URLs to your .css and image files to work. Otherwise you get the language subdirectory in the URL.
Thanks guys.. Bruno I had seem the page on Github but I think I'm getting confused.
I have 2 languages I want to use - English and Chinese (en and zh)
English is the default one and Chinese is secondary.
I have changed the pdo.Fetch class
I have created the migxmultilang tables with migx
I have set up the languages on the languages tab, I then went to the 'Form Manager' tab and clicked 'Import configurations'.
I set use default form tabs to yes.
I then closed that window and then clicked 'create TVs'.
From what I think understand I don't need to create another translation as I only have 2 languages.
I click the edit button for the appropriate resource.
I then right click on the resource in the window and click edit.
I can now see the fields.
I right click on one of them and choose edit.
It's here where I get stuck......
The instructions say to fill out the values for each language but which values does it mean? Am I in the right place?
I can't find the 'published' option anywhere either.
Susan, I didn't realise I didn't have to replace the [[++site_url]] with [[++original_site_url]] either so thanks for that.
Cheers
-
☆ A M B ☆
- 24,524 Posts
I have a demo site up with a very basic installation, I'll PM you with a login so you can see what is going on.
I've been working on a "guest" login for this, but permissions for read-only views of installed extras isn't possible. So I'll need to either work up some interesting plugins, or just make some step-by-step descriptions with a lot of screen shots.
[ed. note: sottwell last edited this post 12 years ago.]
Cheers Susan! I'll have another play with it today!
Fantastic, I got it working! Thanks very much for the demo site.
My next question is, what about other TVs on a resource?
Say I have a simple text TV which I fill in normally with the default language, how do I get that into the translation window?
At first, I would create a duplicate of the example-configuration.
Go to the migxMultiLang - CMP to tab 'Form Manager'
and duplicate the example-configuration
Give it a new name, for exampe 'myformconfig'
Make sure, you have checked 'Use as Default Formtabs for all other templates'
and you have unchecked that checkbox on the example-config.
Then go and create your Textarea- or whatever- TV as you normally would do.
Now you need to add that TV also to the Tranlations-Form by editing your new created form-configuration.
You can edit the existing Formtab and add your TV-field there or you can create a new Tab for your new TV.
You just need to fill the fieldname - its the name of your TV
and the inputTV - this is also the name of your TV
-
☆ A M B ☆
- 24,524 Posts
It takes a bit of getting used to, but modifying fields in MIGx is easy once you do get used to it. I've used a standard MIGx gallery setup, and added fields for multi-language galleries.
Sorry - been out of action for a few days.
Cheers Bruno, I think I've got it
Susan, I'm not sure how migxmultilang knows to translate which fields in your gallery?
I suspected it would be adding a tag for the cultureKey like [[+title_[[++cultureKey]]]] but I can only see this used in the 'alt' description.