Fichier de langue (loading template language files)

More
10 years 10 months ago #44259 by ggppdk
Hello

if path is correct then it could be because you have a syntax error

carefully check that you have open and closed the quotes properly

-- test with only a single line inside the file:
e.g.
MY_TEST_STRING="my test string"

and then inside you template PHP code:
Code:
<?php ... echo JText::('MY_TEST_STRING'); ... ?>


-- 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...

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

More
10 years 10 months ago #44262 by stelis
Suite,

En regardant le code de FLEXIUtilities (fonction : loadTemplateLanguageFile), il y a (ligne 3599) :
Code:
if ( !$user_lang || [i]!isset($languages->$user_lang->code)) return; // Language has been disabled
.

La variable "$languages->$user_lang->code" n'est pas possitionnée et on sort de la fonction !

Prochaine étape : savoir pourquoi la langue est désactivée !

Stelis

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

More
10 years 10 months ago #44265 by ggppdk
Hello

above that line add (temporarily):

echo "user_lang: $user_lang <br/>";
echo "user_lang->code: ".$languages->$user_lang->code." <br/>";

? do you get :
user_lang: fr
user_lang->code: fr-FR


-- 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...

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

More
10 years 10 months ago #44275 by stelis
Bonjour,

Je viens de mettre les traces dans le code, et voilà le résultat :
Code:
user_lang: fr user_lang->code:
.

Stelis

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

More
10 years 10 months ago #44284 by ggppdk

stelis wrote:

Code:
user_lang: fr user_lang->code:
.

Stelis


The language code for French language seems to be empty,
-- please go to Joomla language manager
-- and open the "Content Languages"
-- then check that you have configured French and other language properly (BY comparing to the English default language)
... in your case check the language code is it fr-FR ?


-- 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...

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

More
10 years 10 months ago #44309 by stelis
Bonjour,

Effectivement, le problème venait là !

J'avais pris la version Joomla anglaise et ajouter les fichiers de messages en français. Je n'ai pas pensé qu'il fallait aussi rajouter la langue dans le "contenu".

Le problème est donc réglé.

Merci beaucoup pour votre aide !

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.375 seconds
Save
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