Two articles about software localization

General discussion about learning languages
User avatar
emk
Brown Belt
Posts: 1389
Joined: Sat Jul 18, 2015 12:07 pm
Location: Vermont, USA
Languages: English (N), French (B2+)
Badly neglected "just for fun" languages: Middle Egyptian, Spanish.
Language Log: viewtopic.php?f=15&t=723
x 4672
Contact:

Two articles about software localization

Postby emk » Wed Apr 17, 2019 2:29 pm

(This is slightly off-topic for anybody but professional software translators and programmers, but I thought some people here might find it interesting!)

Software localization is the process of translating the human-visible text in a software program. (It also includes fixing number and date formats, and other things along those lines.)

As you might guess, the problem is that languages are tricky. In this older article by the linguists Sean M. Burke and Jordan Lachler, they show all the headaches involved in translating the following bits of text:

I scanned 12 directories.

Your query matched 10 files in 4 directories.

I thought it was a pretty amusing essay:

Then your Russian translator calls on the phone, to personally tell you the bad news about how really unpleasant your life is about to become:

...

He elaborates: In "I scanned %g directories", you'd expect "directories" to be in the accusative case (since it is the direct object in the sentence) and the plural number, except where $directory_count is 1, then you'd expect the singular, of course. Just like Latin or German. But! Where $directory_count % 10 is 1 ("%" for modulo, remember), assuming $directory count is an integer, and except where $directory_count % 100 is 11, "directories" is forced to become grammatically singular, which means it gets the ending for the accusative singular... You begin to visualize the code it'd take to test for the problem so far, and still work for Chinese and Arabic and Italian, and how many gettext items that'd take, but he keeps going... But where $directory_count % 10 is 2, 3, or 4 (except where $directory_count % 100 is 12, 13, or 14), the word for "directories" is forced to be genitive singular -- which means another ending... The room begins to spin around you, slowly at first... But with all other integer values, since "directory" is an inanimate noun, when preceded by a number and in the nominative or accusative cases (as it is here, just your luck!), it does stay plural, but it is forced into the genitive case -- yet another ending... And you never hear him get to the part about how you're going to run into similar (but maybe subtly different) problems with other Slavic languages like Polish, because the floor comes up to meet you, and you fade into unconsciousness.

(Thank you to zoul who linked to this article on another site.)

Mozilla has just released a specification for a new translation format that tries to address these issues. An example:

Image

This is designed to support grammatically correct translations for a wide range of languages, including languages with really unusual grammatical constraints. And it's designed to work even when the original software authors don't understand Russian grammar.
4 x

eido
Blue Belt
Posts: 822
Joined: Tue Jan 30, 2018 8:31 pm
Languages: EN (N), ES (B1), others
x 1277

Re: Two articles about software localization

Postby eido » Wed Apr 17, 2019 2:56 pm

I don't know if you have to be a developer to necessarily understand. I've only ever messed with the HTML in Tumblr themes and I understood ;) It's fascinating they came up with a code for that.
0 x
"He's satisfied with himself. If you have a soul you can't be satisfied."
- Graham Greene (given to me by @reineke)


Return to “General Language Discussion”

Who is online

Users browsing this forum: Eriol, Google [Bot] and 1 guest