Multilanguage

Hartanto Bonanza Posted in Technical Support 9 years ago

can i use more than one language?

Replies
German Michael Zülsdorff Replied 9 years ago

Just look at this small example of ossn.fr.php

$variable = array (
'image:file' => 'fichier image',
);
ossnregisterlanguages('fr', $variable);

Make sure that BOTH occurences of $variable are the same! If you use '$de' in the first place, you must use '$de' at the bottom line too. Like

ossnregisterlanguages('fr', $de);

If your array variable is '$eric', the bottom line has to be

ossnregisterlanguages('fr', $eric);

Good luck!

French Eric F. Replied 9 years ago

Hi,

I using 2.0b2, by a git clone today.
I think than we don't need anymore to change the core file since 2.0:

Changelog:
23 There is no need to edit core files to register languages its now automatically registered if language is available.

and line contain a variable for this:
ossnregisterlanguage($language, ossn_route()->locale . "ossn.{$language}.php");

So I just change the name ossn.de.php to ossn.fr.php and last line to ossnregisterlanguages('fr', $fr);

After that I've all text change to the text before the "=>" in the file.
So that why I thought that he've something else to change.

Here's a link to an image of what I've in the admin panel, basic settings.
https://www.dropbox.com/s/x18lsvf3atu3o29/result_ossn.jpg

Image insn't working in previous post.

Thanks -

Eric

German Michael Zülsdorff Replied 9 years ago

it depends on the language file you took as a template. check the variable name at line 12: if it is $en, you must initialize your language like ossnregisterlanguages('fr', $en);
basically the variable in line 12 must match the second parameter used with the register function.

French Eric F. Replied 9 years ago

enter image description here

French Eric F. Replied 9 years ago

Hi,

I try to translate in French, I saw than we ust need to change last line of ossn.fr.php to:

> ossnregisterlanguages('fr', $fr);

But when I choose French It doesn't work.
I just do the first test with the translation of the file in locale.

So I try to rename the ossn.de.php to ossn.fr.php and change the last line but I get the same result.
Did I have to change something somewhere else ?

An image of my problem

Thanks -

Eric

Pablo moah Replied 9 years ago

help translater language portuguese PT Brazil help help help

Indonesian Arsalan Shah Replied 9 years ago

please dont use any development release on production sites. What i mean with included is it will be part of 2.0 public release

Nils Magnussen Replied 9 years ago

Thx for quick reply! :) i have upgrade today to 2.0 dev
But i can't find German language file?
I send a request over contact .

Indonesian Arsalan Shah Replied 9 years ago

@Nils Magnussen, German language will be included in Ossn 2.0. Thanks to Zet who translated Ossn to German, if you want to get German language for Ossn 1.8 send us support request.

http://www.informatikon.com/contact
Nils Magnussen Replied 9 years ago

Hi, sorry for the question again. Is there a file to translate in german language or is it only the rename these files in 'de' ?

Premium Version

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)
Learn More

Other Questions