Multi-language Support of Web Applications

Share this post on:

Our PHP framework supports multi-language content. There are two groups of multi-language content: first, static labels, messages, paragraphs, etc; and second, are database content (e.g. products, posts, etc).

Static Content

With a built-in function t with a dictionary.csv file behind, end user (also including search engines and crawlers) are able to view web pages rendered in their preferred langauge.

Function t('...') will iterate over the dictionary and return equivalent phrase in the desired language-region passed in the URI.

Dynamic Content

The web server must follow some rules in database design and/or its returning schema, so the front-end will parse the results as expected.

Share this post on:

Author: tayyebi

Tayyebi works in the role of Director at Gordarg where he is the founder. He is passionate about people, technology, and arts. Mohammad believes in communications, each of us has the power to empower their people with knowledge. He can be seen writing codes, playing music, biking, and reading.

View all posts by tayyebi >