How to Make a Multilingual QR Code

QR code (Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached. A QR code uses four standardized encoding modes (numeric, alphanumeric, byte/binary, and kanji) to store data efficiently; extensions may also be used.

A QR Code makes it convenient for people to open WebPages in their mobile phone browser without having to type long URLs. They can just point the mobile camera to the printed QR code and the corresponding website will automatically open in their phone’s browser.

Multilingual QR Codes Detect Phone’s Language

Wikipedia unveiled a new tool called QRpedia that adds language-detection capabilities to these static QR codes. when a user scans a QR code image for a Wikipedia article, the code detects the default language of the mobile phone and automatically redirects him to the Wikipedia article in that language.

Add Multilingual QR Codes to your Website
you would like to add Wikipedia style language-detection QR codes to your own web pages, here’s the relevant JavaScript code. Just copy-paste this code into your website template where you would like the the QR code image to appear and the code does the rest.


1.  <script language=javascript>

2. var esc = window.encodeURIComponent ? window.encodeURIComponent : escape;

3. var url = 'http://ctrlq.org/qrcode/l/?l=en&u=' + document.location.href;

4. var cht = 'http://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + esc(url);

5. document.write("<img alt='QR Code' src='" + cht + "' />");

6. </script>

If your website content is in a language other than English, change the “en” value to another language code (like es for español or fr for français). Also, the above code generates a 200×200 QR Code but you may change the default height x width values to something else that suits your site’s layout
Now scan the QR code image above and it should open this blog but only after translating it from English to your phone’s language.
Here’s what happens behind the scenes. The language detection part is handled by the QR code URL – it determines the user’s phone language after reading the request header sent by the mobile browser and then redirects the user to to translated page. The language translation is handled by Google Translate while the QR image itself is generated using the Google Charts API.

2 thoughts on “How to Make a Multilingual QR Code

  • December 27, 2018 at 10:34
    Permalink

    This is definitely attention-grabbing, You might be a quite knowledgeable blog writer. I signed up with the rss and also crunch intended for within the search for added of your respective fantastic post. As well, I’ve contributed your internet site during my social support systems This is definitely attention-grabbing, You might be a quite knowledgeable blog writer. I signed up with the rss and also crunch intended for within the search for added of your respective fantastic post. As well, I’ve contributed your internet site during my social support systems

    Reply
  • December 29, 2018 at 21:28
    Permalink

    I most certainly will promptly take the rss feed while i can not to discover your current e-mail ongoing weblink and also e-newsletter assistance. Complete you could have almost any? Generously i want to realize in order that I might subscribe. Thanks.. private tuition

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *