by nicolaspayette » Fri Oct 05, 2007 1:38 pm
Hi!
I know you guys are planning a better integration of bilingualism in the next OCS2 release, but unless you tell me it's going to be out next week, I'm looking for a quick fix. Nothing too fancy: just being able to show the announcements in the users language would do the trick.
I'm thinking of loading a different CSS file depending on the user's language. E.g., for a French user, you would have:
div.english { display: none; }
in the CSS, and vice versa. Then, in each announcement, I would use divs like:
<div class='english'>Some text in English.</div>
<div class='french'>Du texte en français.</div>
Do you think that could work? And could you point me to the PHP file where the <link rel="stylesheet" href=".../common.css" type="text/css" /> line is generated and tell me which variable to check against for the user's language?
And if you have any other suggestions, they would be more then welcome.
Merci d'avance!
Nicolas