Skip to content

Conversation

@jcliment27
Copy link

we've implemented a modular system of translation for Zerobin and it's translation in french.
Now to translate Zerobin people has just to copy the fr.php and fr.js files in the lang directory locate at the root of the application and rename the files for MyLanguage.php MyLanguage.js and translate the equivalent of the english text in their own language. The names of the translation files (except the extension) has to be the same.

To set the language, modify the file config.inc.php.example at the root of the application and set $language='yourlanguage'; (yourlanguage is the name of the translation file without their extension. For french it's 'fr' because files are called fr.php and fr.js) and rename config.inc.php.example to config.inc.php (you can also copy and rename the file)

}
}

/*Take a string in paramater and if a translation exist return the string translated*/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

he she it ....

@rugk
Copy link
Contributor

rugk commented Sep 2, 2016

ZeroBin is not maintained anymore.
You may want to have a look at the (fork and) successor PrivateBin, which can be found here: https://github.com/PrivateBin/PrivateBin/
It already has a French translation. But we would be glad if you could have a look at it and potentially improve it.

More information on: https://privatebin.info/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants