Language Versions

I've implemented a language version feature, ready to support additional languages at any time, based on URL modification. Importantly, this solution does not rely on cookies or sessions commonly used in such cases. Currently, besides English, there is a Polish version accessible through the /pl modifier.

For better programming practices, I've placed this modifier at the end of the URL, contrary to the usual convention (e.g., /projects becomes /projekty/pl).

At any given moment, the system is aware of the connections between parent and child, as well as child and parent. If a user adds the language modifier to the URL, the system checks for its corresponding connection and redirects the user to the language version of the current view.

This ensures that each page can have its own slug. When the system doesn't recognize the language's child, it reverts to its parent.

For example:

/projekty/pl opens the Portfolio page in Polish. If the modifier is removed, /projekty automatically redirects to /projects.

The same mechanism works in reverse. If /projects is provided with the language modifier, it automatically redirects to /projekty/pl.

Another example

/about <=> /o-mnie

/about/pl redirects to /o-mnie/pl, while /o-mnie alone (without the language modifier) redirects to /about.

Scroll to Top
Wordpress I've lately been using:
  • Wordpress
  • PHP
  • CSS
  • jQuery

Summary: Font-end and Back-end developer, also designer with 25+ years of experience. Currently based in Poland. Eligible to work in the US (US Social Security Number holder) for any employer on W2 / 1099 basis. Utilizes both technical skills and designing aptitude. Lived and worked in Europe, Australia and North America.

PHP CMS HTML5 CSS3 RWD OOP MySQL PDO JS jQuery JSON GIT Bitbucket GitHub Gulp