PHP_POWERED Multilingual Support Feature : SHIPPINGLINE HTML PHP TEMPLATE

in #utopian-io9 years ago (edited)

To know about this project, check here

The github address of this project is at https://github.com/Akintunde102/shippingline-html-php-template.

Click here to see a live demo of the site

I just added a multi-language support feature on the site.

Below is a proof of work showing my username encircled in red and my number of corrections and deletions made in 5 different commits. All changes were committed directly to master.

a.PNG

If you noticed, most html templates come without multilingual support. They are literally locked to a single language. So what happens when a business or individual needs to cater for a global audience or customer base.

So what I did was add a Multilingual Support for this template.

Now, every word on the site is processed by a language processing file that leads it to an language folder where each words are imported into site .

These are gif animations explaining my contribution

Language Processing

This is the language processing file. This detects the preferred language of the user which is store on the cookie on the browser to avoid swicthing between languages.
languageProcessingFile.gif

Language Translation

Here is a structure of the english translation containing some "lorem ipsum" codes so that the users of the scripts can easily edit. All words in the scripts have replaced here in the $lang array

This is show how other languages will be written as they are all kept in the "lang/" I created. Meaning translation contributions can now be added easily.
English.gif

Words Replaced With Language Array Elements

The Gif below shows that I had to edit all files to replace each words with the language array element.
full.gif

The new language files are here.

In conclusion, the template now has a multilingual supports with a cookie detection ability to check the language.

I urge you to check my commit details below;

These are links showing some of the new commits
Commit 1

Commit 2



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Giving out free votes to the little guys, I hope you appreciate.

Hey @akintunde I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Your contribution cannot be approved yet because it is not as informative as other contributions. See the Utopian Rules. Please edit your contribution and add try to improve the length and detail of your contribution (or add more images/mockups/screenshots), to reapply for approval.

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

Check my commits ,please.

I just added some more details. I urge you to check my commits too.

Hello @dutch , I have made the necessary corrections. I hereby reapply

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.092
BTC 61834.07
ETH 1747.71
USDT 1.00
SBD 0.39