?
avatar Hanmac
Hanmac
22 Jan 2016

because it might be that in some configuration the language packs are added via symlink,
parseLanguageFiles should use FilesystemIterator::FOLLOW_SYMLINKS to find them too.

there is the the location where it might need to be added.
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/language/language.php#L1332

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar Hanmac Hanmac - open - 22 Jan 2016
avatar bertmert
bertmert - comment - 23 Jan 2016

I cannot confirm this issue.

Maybe I didn't understand because of missing test instructions.

What I've done:

  • Installed Joomla! 3.5.0-beta — Staging 2016-01-23 in a folder A
  • Moved directories

/language/
/administrator/language/

to a folder B (outside Joomla directory).

  • Created SymLinks inside A (Joomla)

/language/ pointing to /B/language
/administrator/language/ pointing to /B/administrator/language/

All worked fine.

Installed additional language in backend. All fine.
Could install extensions and found all ini files in directory B.

avatar brianteeman brianteeman - change - 25 Jan 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 25 Jan 2016
Status New Information Required
avatar brianteeman
brianteeman - comment - 25 Jan 2016

I did the same as @bertmert with no problems

Please can you provide further information how to replicate this issue.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8961.

avatar Hanmac
Hanmac - comment - 25 Jan 2016

just as i thought i can reproduce it with staging because not /language/ is the Symlink in my case, but /language/de-DE

see like that:

joomla-cms-staging/language/de-DE -> ../../language/de-DE/
joomla-cms-staging/administrator/language/de-DE -> ../../../administator/language/de-DE/
avatar brianteeman
brianteeman - comment - 25 Jan 2016

I retested creating a symlink just for the specific language folder

lrwxr-xr-x 1 brian1 admin 12B 25 Jan 15:07 en-GB -> ../../en-GB/

Again no problems

On 25 January 2016 at 12:13, Hans Mackowiak notifications@github.com
wrote:

just as i thought i can reproduce it with staging because not /language/
is the Symlink in my case, but /language/de-DE

see like that:

joomla-cms-staging/language/de-DE -> ../../language/de-DE/
joomla-cms-staging/administrator/language/de-DE -> ../../../administator/language/de-DE/


Reply to this email directly or view it on GitHub
#8961 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar Hanmac
Hanmac - comment - 25 Jan 2016

@brianteeman hm maybe i am not concrete enough what the problem is ...
the languages are "found" in most cases, they appear in "Installed - Site" and "Installed - Administrator"

but they do not appear in the User Config or in the Login Formular (if the language is detected, it ask you under which language you want to log in)

avatar brianteeman
brianteeman - comment - 17 Feb 2016

Ah - I can replicate it now

Steps to reproduce
1. install two additional languages
2. move one of those language to a folder above the web root and create a symlink to it
# mv joomla-cms-staging/language/ca-ES/ .
# ln -s ca-ES/ joomla-cms-staging/language/
3. Login to the front end of the web site and edit the user profile
4. Try and change the Frontend language and it will only show english and the language you did not move in the dropdown list of available languages


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8961.

avatar brianteeman brianteeman - change - 17 Feb 2016
Status Information Required Confirmed
avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Feb 2016

Can't reproduce this.

Using the latest staging i moved a language to the site root (in my case pt-PT), them made a symlink to it in the /language/ folder.

Them tested in backoffice and frontend and Portuguese language always appeared.

Have you tested with latest staging? Are you sure you have an active content language for that language?

avatar brianteeman
brianteeman - comment - 18 Feb 2016

Yes. You notice it if you follow my test instructions. It is only in the
places that the folder is parsed such as the user profile
On 18 Feb 2016 6:39 pm, "andrepereiradasilva" notifications@github.com
wrote:

Can't reproduce this.

Using the latest staging i moved a language to the site root (in my case
pt-PT), them made a symlink to it in the /language/ folder.

Them tested in backoffine and frontend and Portuguese language always
appeared.

Have you tested with latest staging?


Reply to this email directly or view it on GitHub
#8961 (comment).

avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Feb 2016

i tested with user profile edit view in frontend. No problems.

avatar brianteeman
brianteeman - comment - 18 Feb 2016

I made a small video to show the problem and how to replicate it on a site with en-gb, fr-fr and pt-pt

https://www.dropbox.com/s/6n9zlfo355lryyd/8961.mp4?dl=0


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8961.

avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Feb 2016

but are you putting it outside the joomla root dir? Do you have php open_basedir configured?

avatar brianteeman
brianteeman - comment - 18 Feb 2016

yes as can be seen in the video

no - its the default mamp setup

On 18 February 2016 at 21:12, andrepereiradasilva notifications@github.com
wrote:

but are you putting it outside the joomla root dir? Do you have php
open_basedir configured?


Reply to this email directly or view it on GitHub
#8961 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Feb 2016

i'm sorry but i can't reproduce this.

I have latest staging with 4 languages installed (en-GB, de-DE, ru-RU, and pt-PT).
Default language en-GB for admin and site.

Defined pt-PT and en-GB as content languages published and with home menu item. Have language filter activated and language switcher module published.

I moved directory from /path/to/www/joomla/language/pt-PT to /path/to/www/pt-PT and created a symlink /path/to/www/joomla/language/pt-PT that points to /path/to/www/pt-PT.

Opened site in english, logged in, and went to profile and them edit profile.
Both en-GB and pt-PT appeared in "Frontend Language (optional)" field has they appear in the language switcher and everyelse.

avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Feb 2016

I tried to create the symlink like you did and it didn't work...

I think you have to do it like this: ln -s /path/to/www/pt-PT/ /path/to/www/joomla/language/pt-PT

avatar brianteeman
brianteeman - comment - 18 Feb 2016

I've messed something up the symlinks were not setup correctly - you were
right on that- it was only creating a folder because I was not using the
full path

Now that I have reset it up and confirmed that the symlink is correct I
cant replicate it any more

@hanmac please can you double check your symlink - maybe you made the same
mistake as me

On 18 February 2016 at 22:04, andrepereiradasilva notifications@github.com
wrote:

I tried to create the symlink like you did and it didn't work...

You ahve to do it like this: ln -s /path/to/www/pt-PT/
/path/to/www/joomla/language/pt-PT


Reply to this email directly or view it on GitHub
#8961 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar brianteeman brianteeman - change - 18 Feb 2016
Status Confirmed Information Required
avatar brianteeman
brianteeman - comment - 18 Feb 2016

Sorry for the confusion


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8961.

avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Feb 2016

@brianteeman no problem

avatar brianteeman brianteeman - change - 22 Mar 2016
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2016-03-22 14:54:00
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Mar 2016
avatar brianteeman brianteeman - close - 22 Mar 2016
avatar brianteeman
brianteeman - comment - 22 Mar 2016

It has been one month since the request for further information and as it cannot be replicated (except when I am being an idiot) I am closing this issue - it can always be reopened if more information is provided


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8961.

Add a Comment

Login with GitHub to post a comment