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
Labels |
Added:
?
|
Status | New | ⇒ | Information Required |
I did the same as @bertmert with no problems
Please can you provide further information how to replicate this issue.
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/
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-DEsee 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/
@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)
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
Status | Information Required | ⇒ | Confirmed |
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?
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).
i tested with user profile edit view in frontend. No problems.
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
but are you putting it outside the joomla root dir? Do you have php open_basedir configured?
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/
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.
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
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/
Status | Confirmed | ⇒ | Information Required |
Sorry for the confusion
@brianteeman no problem
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-03-22 14:54:00 |
Closed_By | ⇒ | brianteeman |
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
I cannot confirm this issue.
Maybe I didn't understand because of missing test instructions.
What I've done:
/language/
/administrator/language/
to a folder B (outside Joomla directory).
/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.