utilisation de Translation group

More
13 years 6 months ago #27851 by blade3
En fait,

J'ai suivi un tutorial qui disais dans joomla 2.5 je devais faire des catégories et sous-catégorie example:

English
|-- English
Francais
|--Francais

Créer un menu pour chaque langue (3 au total - comprennant le "all" language)

Jusque la tout va bien :-)

Ce qui complique c'Est rendu dans flexicontent V2.0 RC7
J'ai un "translation Group"
que je ne suis pas capable de faire fonctionner..

J'ai 1 item1 qui est dans la sous-catégorie "francais" primary : |--Francais
Category: |--Francais

J'ai bien essayer de "dupliqué" le premier item1 avec le bouton "translate" :

Methode: "Duplicate Original content"
Keep secondary categories: "no"
Keep tags : "no"
Add prefix to title : "[tr ]"
NEW Language : (english)
State : "Do not changed"

primary : |--English
Category: |--English

mais sa ne semble pas bien fonctionner...
Quelqu'un a un tuto pour le changement de langue avec Flexicontent.. ou un totu pour expliquer bien les Translation Groups..

ou bien m'expliquer ce que je ne fais de pas correct :-)

merci,


(If you need that i translate my post tell me :-) )

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

More
13 years 6 months ago #27855 by ggppdk
mmm, the translate button also does not create the permission assets (and you will need to click the initial permission creation, but don't worry of it, just click the initial permissions)

besides that you have some other issue with the "duplicating original content" via the Translate button?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 6 months ago #27861 by blade3
humm... i've tried to press translate button and just "save and close".
I guess this works properly..
the item has been created but in the same language of original
(english). So I've edit this current item for the "french" language and primary / second category
for |- francais

but the connection between the both items are disapeared

o.O" I need course for translate with Flexicontent and joomla 2.5 :-/

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

More
13 years 6 months ago #27863 by ggppdk
mmm, you did not mention, if you have set(selected) the "New language" field before clicking "Save & Close"

I said that this needs improving,

- e.g. to prevent "Save & close" if you don't select "NEW language"
- fix the permission creation to avoid having to reclick "Initial Permission Creation"

- Also locally , i have a Google auto translation implemented, but this is for later, since i need to use a free library for this ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 6 months ago #27866 by blade3
yes i've read this and understand but i don't know where i found the initial permission..
It's not inside the flexicontent "home"


edit:

Bing translator is free.. i guess.. ;-)

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

More
13 years 6 months ago #27868 by ggppdk
i meant there is a bug,

this will be detected , the next time you relogin , the J2.5 ACL Permission Asset will be rechecked , and you will be asked to click to create them, you don't need to do anything now, about this


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 6 months ago #27871 by blade3
haaaaa... i've found the bug... I think..

I suppose that joomla (or flexicontent) use
Code:
substr(strtolower($row["shortcode"]),0,2);
where $row is the result of something like that:
Code:
'SELECT * FROM #__languages WHERE code like "' . $this->language . '"';
.

en-GB is default site language.

So .. if I've 3language : en-GB and en-US and fr-ca.

The traduction works properly now between fr-ca and en-GB items.
Inside fr-ca i can select my en-GB items.

But when I'm inside the en-US the template said:

"Current content item is the Original Content of the Translation Group"

So my theory is realistic?

and this is a problem of Flexicontent, Joomla or in my head?

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

More
13 years 6 months ago #27885 by blade3
after many test,
I've see on the:
/administrator/components/com_flexicontent/views/item/tmpl/default.php

some code like:
Code:
163. $itemlang = substr($this->row->language ,0,2); 164. if (isset($this->row->item_translations)) foreach ($this->row->item_translations as $t) if ($t->shortcode==$itemlang) {$itemlangname = $t->name; break;}

and
Code:
403. if ( $this->row->id && (substr(flexicontent_html::getSiteDefaultLang(), 0,2) == substr($this->row->language, 0,2) || $this->row->language=='*') ) :

i can modify this to
Code:
163. $itemlang = $this->row->language; 164. if (isset($this->row->item_translations)) foreach ($this->row->item_translations as $t) if ($t->shortcode==$itemlang) {$itemlangname = $t->name; break;} 403. if ( $this->row->id && (flexicontent_html::getSiteDefaultLang() == $this->row->language || $this->row->language=='*') ) :


also modify parentclassitem.php on model :
Code:
582. $item_lang = substr($item->language ,0,2);
to
Code:
582. $item_lang = $item->language;

So, I should be modify others models and view but i don't know them. ;-)

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

More
13 years 6 months ago #27891 by ggppdk
Please do not make these changes, these code should not be modified.

I missed the forum post above that you mention WHY you are doing this?

ALSO note the item Language ALL cannot be associated with any other language, because it is meant for ALL languages, this is standard J2.5 behavior too, for e.g. menu items, modules, etc

So if you have a content that you want to associate with other items then set it not to have language ALL, but set it the correct language e.g. English, then you can associate it with other items


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 6 months ago #27892 by blade3
humm..

for example my website have many english language:
    english canada
    english usa
    english UK
And many french language:
    french canada
    french France

And each of country have many differente content, price, features.

Associated menu works with any language(country).
but not flexicontent..

this is why we need get the "language", not only with 2 first value but all of them.

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

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save