Skip to main content

Paste Ninja Goes Multilingual

Chris Cornutt was nice enough to give Paste Ninja (the premier PHP-powered pastebin app) some exposure by highlighting it on a week or so ago. Thanks, Chris! As a result of the extra publicity, the site saw an increase in traffic as people came to check it out. I hope they liked what they saw... but stay tuned, because there's more features to come!

It was interesting to look through the access logs afterward. There are a lot of pastebins available on the Internet, but the feature set and usability of the application is what will help differentiate it from the rest. The list of countries from which various people visited and the values of their browser's Language-Accept headers peeked my interest, and I realized that I needed to offer Paste Ninja's interface in multiple languages so people could use my service in whichever language they may find the most comfortable. So, Paste Ninja is now multilingual!

The goal is to translate PasteNinja's interface into the top 10 or so languages. I'm obviously not not going to be able to accurately translate all of the necessary text into each language myself, so I've started enlisting some help.

Years ago I studied French and Esperanto, so those were the first two languages I targeted. I then searched out people who were willing to review my work and correct any grammar deficiencies and the like. With the help of Babelfish, Google Translate, and some very creative Internet searching, I was able to produce rough translations in other languages.

If you ever need a professional French translator, Sophie Vialaneix is unbelievably good in every way and comes with my highest recommendation. She was so friendly and professional that it made me wish I had more text for her to review (thanks, Sophie)! Remi Woler from #phpc was wonderful and offered to correct my Dutch (thanks, Remi). My friend and co-worker Bobby Mladenov graciously provided a Bulgarian translation (thanks, Bobby), and Dr. Wing Ming Chan is also graciously providing a Chinese translation (thanks, Wing). Keep their efforts in mind as well when you see text that doesn't read "Grandmother your password here."

The interface is available in other languages as well, such as German, Italian, Polish, Portuguese, Russian, and Spanish. These were produced with translation software and some creative Internet searching, so expect them to be less-than-perfect. I will revise the translations as I find people proficient in them who are willing to review them. If you'd like to volunteer your skills, just leave a comment and let me know!

Oh, and the interface is also available in Pig Latin just for fun. I'm sure Ben Ramsey will be happy to take all the credit for that idea. ;)

Update 12/21/08: David Z├╝lke was kind enough to review the German translation. Thanks, David!

Update 12/23/08: Sacha Poznyak was kind enough to review the Russian translation, Ali Curtis was kind enough to review the Spanish translation, and David Cole was kind enough to review the Portuguese. Thanks, Sacha, Ali and David!

Update 12/31/08: Shahar Fisher was gracious enough to donate his time to review the Hebrew translation. Thank you, Shahar!


Popular posts from this blog

Geolocation Search

Services that allow users to identify nearby points of interest continue to grow in popularity. I'm sure we're all familiar with social websites that let you search for the profiles of people near a postal code, or mobile applications that use geolocation to identify Thai restaurants within walking distance. It's surprisingly simple to implement such functionality, and in this post I will discuss how to do so.

The first step is to obtain the latitude and longitude coordinates of any locations you want to make searchable. In the restaurant scenario, you'd want the latitude and longitude of each eatery. In the social website scenario, you'd want to obtain a list of postal codes with their centroid latitude and longitude.

In general, postal code-based geolocation is a bad idea; their boundaries rarely form simple polygons, the area they cover vary in size, and are subject to change based on the whims of the postal service. But many times we find ourselves stuck on a c…

Composing Music with PHP

I’m not an expert on probability theory, artificial intelligence, and machine learning. And even my Music 201 class from years ago has been long forgotten. But if you’ll indulge me for the next 10 minutes, I think you’ll find that even just a little knowledge can yield impressive results if creatively woven together. I’d like to share with you how to teach PHP to compose music. Here’s an example: You’re looking at a melody generated by PHP. It’s not the most memorable, but it’s not unpleasant either. And surprisingly, the code to generate such sequences is rather brief. So what’s going on? The script calculates a probability map of melodic intervals and applies a Markov process to generate a new sequence. In friendlier terms, musical data is analyzed by a script to learn which intervals make up pleasing melodies. It then creates a new composition by selecting pitches based on the possibilities it’s observed. . Standing on ShouldersComposition doesn’t happen in a vacuum. Bach was f…

Creepy JavaScript Tracking

I recently began allergy shots so my new Monday morning routine includes me sitting in a doctor's office for 30 minutes (I must wait after receiving the shots and be checked by a nurse to make sure there was no reaction). With nothing else better to do while I waited last week, I started playing around with some JavaScript. This is what I came up with:
<html> <head> <title>Test</title> <script type="text/javascript"> window.onload = function () { var mX = 0,  mY = 0, sX = 0,  sY = 0, queue = [], interval = 200, recIntv = null, playIntv = null, b = document.body, de = document.documentElement, cursor = document.getElementById("cursor"), record = document.getElementById("record"), play = document.getElementById("play"); window.onmousemove = function (e) { e = e || window.event; if (e.pageX || e.pageY) { …