New Features
I added two features
- Added A Multi-language Feature (which also makes it easier for translators to contribute)
- Added a new column to know the Highest "GIVER" for each post.
How did you implement it/them?
To add the Multi-language Feature , I had to re-edit all the front-ends codes and replaced it with a $lang array that contained all the specified translations. In the model section of the web app, there is a file called
lang.phpthat processes the way the language is being processed. The deafult language is english, each language is being stored as a cookie, so that the user only needs to change language preference once. I ran a test alternative language in spanish to show how it works. All the language folders are stored in thelangfolder in the root section of the app.To add the new Highest Giver column, I add to order the
active_votessection in order of rshares in DESC order uisng a custom Multi-array sorting private function in the main class (post.php) , then picked the first the user and listed it in the newly changed front-end as the highest giver.
How to contribute?
For translators to contribute, they only have to work on the lang folder in the root of the file structure. There are two files there already, for English and Spanish. They only have to clone a file and re-edit it by inputing their own class while renaming with the necessary language code.
Commit Link : New features
WEB LINK: steem.com.ng
Posted on Utopian.io - Rewarding Open Source Contributors