Comments (3)
Hello again,
After a few more tries, it appears that i18n is working quite randomly.
Home=>English, then Share/Photo Gallery ==> French then Forum ==> French then Notifications ==> English then Private Messages ==> French.
I checked the message files and they contain (as far as I could see) the translation for the not translated screens...
I looked to the request headers in both French and English pages and they both have a parameter Accept-Language set to "fr-FR,fr;q=0.5"
Any idea?
[Edit: I restarted the apache and php-fpm services to deal with cache problems as described on https://lingohub.com/blog/2013/07/php-internationalization-with-gettext-tutorial/ but it didn't change anything)
from fcms.
Found the problem. It's due to the Photo Gallery: replacing in inc/gallery_class.php, line 49
T_bindtextdomain('messages', '.././language');
by
T_bindtextdomain('messages', ROOT.'language');
just as the comment just above this line says:
// TODO - this could be fixed by using ROOT
fixes the problem.
I'll do a PR on this. Actually, I had also 2 other problems: exceptions when there is no poll and where there is no family tree (and the plugin is selected). I fixed the first one and probably the second one is the same kind of fix so I'll do also PRs on those bugs.
but I don't really get what it means...
from fcms.
Duplicate
from fcms.
Related Issues (20)
- Duplicate 'categories' HOT 1
- Cropped images HOT 8
- Calendar: Better anniversaries HOT 1
- Mostly lost recipes HOT 4
- ERROR --> Invalid user id. - 0 HOT 1
- document upload fails on docx
- ERROR CODE
- PHP Error Function get_magic_quotes_gpc() is deprecated HOT 2
- Move auth logic to Laravel
- Move templates to Laravel Blade
- Misc: Update tests to use Laravel testing
- Misc: Docker image for fcms HOT 6
- Missing home page messages HOT 3
- Calendar: Allow calendar entry without specific date HOT 1
- Photos: Do not crop regular or full size photos
- Update rss
- Filename conflict on Windows
- create siblings fails HOT 1
- FCMS cannot be installed and run normally in higher versions of PHP.
- MARIADB error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcms.