If using OSSN:
OSSN version: 8.0
Website URL (optional): Justbsocial.eu
If facing any bug:
PHP Version :
Error Log if any:
Browser:
OS (Window/Linux/Android/iOS/Mac): vps ubuntu
Hi all,
I'm building a multilingual social network based on OSSN (Open Source Social Network), and I'm currently working on a feature that filters posts based on language preference.
I’d like to implement automatic language detection for user-generated content (such as wall posts, blog entries, comments, etc.) so that users can choose to only see content in languages they understand.
Has anyone implemented something like this before? Or are there best practices or recommended libraries (preferably PHP-based or lightweight APIs) that work well with OSSN’s structure?
A few specific questions:
Should detection happen on the client side or server side?
Are there any known OSSN hooks or best places in the codebase to inject this logic when posts are created?
Would it be better to store detected language in post metadata (e.g., OssnObject->data)?
Any experience with libraries like Text_LanguageDetect or external APIs like Google's or langdetect?
Appreciate any pointers or examples!
So no translator. User based option to display content in all, or just there own language
Thanks in advance,
Eric
hint to the makers, would be an great asset standard option.
well i got this so far https://github.com/compie67/LanguageFeed
lets join and work together
Hi Eric,
we’re working on something similar right now with OSSN and also trying to make a multilingual setup work. We're not experts either, but here’s what we’ve found so far:
and langdetect They’re not perfect, but okay for basic detection.wall/post/created hook to inject detection when a post is created — we’re still testing that, but it looks promising.Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)