Make my website bilingual

More
8 years 11 months ago - 8 years 10 months ago #66872 by hervemlam
Hello,

Now that my website is well and growing, I'd like to make it bilingual (English/French). Big good project, isn't it? :unsure:
Has any of you already experimented this?

I've found one or two Joomla tutorials for that, and I'm going to follow them.

However, I certainly will have Flexi questions on the topic.
For instance, this one:
How can I translate the labels of my fields, as well as the Opening text for Field?

Thanks for your help and advice.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Last edit: 8 years 10 months ago by hervemlam. Reason: Solved

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

More
8 years 11 months ago - 8 years 11 months ago #66874 by bytekulturmaya
For the Flexi Fields (Label) you can easy write a uniq name (like NAME_LABEL) and then go to
Extensions > Language(s) >Overrides
select the Site language you want, and make a new overrite. for the "Language Constant" you now can use the NAME_LABEL... that works very well (you also should make the override for the admin - then it shows the label nice when you editing the site throu the backend)

for the categories you can use Falang, thats very easy -

or, i'm not 100% sure if it works, but you also should be able to use an override in the flexi templates and also use the joomla translations
Code:
<?php $cattitle=$this->escape($this->category->title); echo JText::_($cattitle); ?>
Last edit: 8 years 11 months ago by bytekulturmaya. Reason: tipp for backend laben

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

More
8 years 11 months ago #66875 by micker
Replied by micker on topic Make my website bilingual
use native multilangue (joomla)
flexicontent is compatible

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
8 years 11 months ago #66969 by hervemlam
Replied by hervemlam on topic Make my website bilingual
Hello,

bytekulturmaya wrote: For the Flexi Fields (Label) you can easy write a uniq name (like NAME_LABEL) and then go to
Extensions > Language(s) >Overrides
select the Site language you want, and make a new overrite. for the "Language Constant" you now can use the NAME_LABEL... that works very well (you also should make the override for the admin - then it shows the label nice when you editing the site throu the backend)

Thanks. Looks fine.

or, i'm not 100% sure if it works, but you also should be able to use an override in the flexi templates and also use the joomla translations

Code:
<?php $cattitle=$this->escape($this->category->title); echo JText::_($cattitle); ?>

Haven't checked yet with JText and this kind of code, but I'll have to. (For Opening text for instance, it may be the only way.)

Also, what about tags? I can't see a language property in the tags! Do I have to duplicate them in both languages? Or is there a "magical plug-in" to add the language property to the tags?

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
8 years 11 months ago #66971 by ggppdk
Replied by ggppdk on topic Make my website bilingual
Hello

Also, what about tags? I can't see a language property in the tags!


we will transition flexicontent TAGs to Joomla tags in near future, currently language properyty is not supported in FLEXIcontent tags


-- 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
8 years 10 months ago #67161 by hervemlam
Replied by hervemlam on topic Make my website bilingual
Hello,

Just to inform you of what I did - if anybody's interested.

a) Field > Viewing > Thumbnails > Opening text for Field =
Code:
<span id="my_field" class="flexi label field_my_field"><script type="text/javascript">document.write(Joomla.JText._('MY_FIELD'));</script></span><br />

b) Extensions > Language(s) > Overrides
MY_FIELD=Label of my field
INFO_MY_FIELD=Description of my field that I want to appear on my mouse over

c) In a PHP file (index.php of my template for instance):
In the <?php part of the beginning:
Code:
JText::script('MY_FIELD'); JText::script('INFO_MY_FIELD');
And at the end just before the </body> tag:
Code:
<script type="text/javascript">document.getElementById('my_field').setAttribute('title', Joomla.JText._('INFO_MY_FIELD'));</script>

You can see an example of my result here: japprecie.raidghost.com/en/kaleo-a-b

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
8 years 10 months ago #67167 by micker
Replied by micker on topic Make my website bilingual
desoler je ne comprend pas ton code ... cela sert à quoi ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
8 years 10 months ago #67210 by hervemlam
Replied by hervemlam on topic Make my website bilingual
Ca sert à ne pas mettre en dur mes libellés :
-dans l'étiquette de mes champs
-et dans la bulle d'aide (celle qu'on obtient en passant la souris sur l'étiquette, autrement dit la propriété 'title' en HTML).

Ceci dans le but de rendre mon site bilingue tout en gardant le même code.

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
8 years 10 months ago - 8 years 10 months ago #67212 by micker
Replied by micker on topic Make my website bilingual
les étiquette et les infos bonne idée on va ajouter une fonction pour cela plustard
a suivre
github.com/FLEXIcontent/flexicontent-cck/issues/724

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 8 years 10 months ago by micker.

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

More
8 years 10 months ago #67252 by hervemlam
Replied by hervemlam on topic Make my website bilingual
Bonne idée. Si ça peut permettre de faire ça plus facilement que les trucs un peu tordus (j'avoue) que j'ai dû mettre en place pour parvenir à mes fins, alors ça va dans le bon sens !
I love FLEXIcontent! Merci à tous ceux qui le font !

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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