-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of modulare translation system and french traduction #108
base: master
Are you sure you want to change the base?
Conversation
move at beginning french function in index.php and some french translation
} | ||
} | ||
|
||
/*Take a string in paramater and if a translation exist return the string translated*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
he she it ....
ZeroBin is not maintained anymore. More information on: https://privatebin.info/ |
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)