By HMED on Thursday, 13 August 2015
Posted in General
Replies 12
Likes 0
Views 1.2K
Votes 0
Hi,

i am writing here after the recommandation of Alejandrio from Jreviews,
we have a doubt about the structure or name of the ini langage file, we 'd tryed to translate some phrases but nothing change in front end.

purhapse we missed some thing ?
i believe this is not urgent nor priority question,
i will appreciate if you can help us here
·
Thursday, 13 August 2015 16:20
·
0 Likes
·
0 Votes
·
0 Comments
·
hey jan,

I am really sorry that delay of this reply, can you provide us with your following detail so we can check on this?
#1. Main site Joomla backend access, because I hitting this : Warning Login denied! Your account has either been blocked or you have not activated it yet.
#2. FTP access for your main site
#3. Which page can check for the jreviews stream language output
·
Thursday, 13 August 2015 18:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

1. the admin account was disabled, please try again.
2. the ftp access are in the global site details.

3. please find in the site url the element,
you can take the example of the phrese : "added new listing"
·
Thursday, 13 August 2015 21:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jan,

Now i hitting this :
Warning
You do not have access to the Administrator section of this site.


I've checked on that page you mentioned, I still a little bit lost here, may i know that stream is posted from Jreview?
Check my screenshot : http://screencast.com/t/vH4sH1nYv
·
Friday, 14 August 2015 02:40
·
0 Likes
·
0 Votes
·
0 Comments
·
sorry, the account have admin access now.

login also on the front end and you will see the full stream as mentionned here.
·
Friday, 14 August 2015 02:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey jan,

I am really sorry that delay of this reply,

I've checked in your site, it seems like some of the language file got trigger this language constant also even I renamed the this file `fr-FR.plg_app_user_jreviews.ini`, that language string still can translated :
PLG_JREVIEWS_ACTIVITY_LISTING_NEW="%1$s add new listings %2$s in %3$s"


By the way, I have overridden this language constant in JoomlaFolder/language/overrides/fr-FR.override.ini, it should display correctly now.
·
Monday, 17 August 2015 09:52
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you Arlex,

the phrase is translated now with override, i should add all the 39 phrases in joomla langage ovveride ?
i tryed to translate in the plg_app_user_jreviews.ini but its not changing in the stream !
·
Monday, 17 August 2015 18:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey jan,

You're welcome.

Yes, you can temporary override all 39 language constant in this file JoomlaFolder/language/overrides/fr-FR.override.ini

I suspect some of jreview language string still get trigger somewhere because when I renamed all the Easysocial language file and Jreview language file from JoomlaFolder/language/fr-FR, it still show translated language even I already renamed en-GB folder.
·
Tuesday, 18 August 2015 11:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex

This is Alejandro, the JReviews dev. What would be interesting to know here is what is the correct approach for the developing an App that can be translated normally and what would that "normally" entail (i.e. exact steps to translate).

Since you have access to the client site you can check the file App structure.

1) We have an app XML file that includes the languages tag and of course that file is included in the App package.

	<languages>
<language type="en-GB">en-GB.plg_app_user_jreviews.ini</language>
</languages>


2) We load the language file in the App's __construct method like this:

        Foundry::language()->loadApp('user' ,'jreviews');


3) In theme files we use the JText class to render the language constants.

Is there anything wrong with the approach and if so, what is the correct way to do it?
·
Tuesday, 18 August 2015 19:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Alejandro,

Thanks for heading up on this, regarding with your app language structure is done prefect correctly.

By the way, I investigated again, it seems like this `fr-FR.plg_app_user_jreviews.ini` located on JoomlaFolder/language/fr-FR instead of JoomlaFolder/administrator/language/fr-FR .

After I move this language file in admin language file, it work fine now.
·
Tuesday, 18 August 2015 23:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Great. So to clarify, when translating EasySocial Apps, even if it's for front-end language strings, the correct path to the language file is the Joomla administrator languages folder. In the example of the JReviews Stream App the correct path would be:

SITE_ROOT/administrator/language/fr-FR/fr-FR.plg_app_user_jreviews.ini
·
Tuesday, 18 August 2015 23:44
·
0 Likes
·
0 Votes
·
0 Comments
·
That is correct.
·
Wednesday, 19 August 2015 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post