Questions tagged [language-translation]

Translation from one human language to another in coding that ultimately determines the language viewed and used by the user.

Language Translation

Language translation involves rendering one spoken or written human language into another.

Language translation does not involve the process of translating coding languages to other coding languages.

Language translation and computer programming:

Language translation in the context of computer programming involves rendering the human language accessed by the user into another human language. The purpose of this is to make situations in this context available to people who speak different languages.

Language translation in this context can occur at the following levels:

  • Information that is displayed to the user
  • Information that is retrieved from the user
  • Information that is programmed by developers
  • Almost any situation where a user will interact with the application or development of the application.

Translation of human languages in this context can be achieved in two primary ways:

  1. Human translation from one language into another
  2. Automated (robot) translation from one language into another

More on human translation:

Human translation from one language into another can be achieved by a person who is knowledgeable in both languages. Human translations are imperfect and are therefore often reviewed by other translators or interpreters. Human translations of applications are very common in order to provide user interfaces in different languages.

More on automated translation:

Automated translation from one language into another involves a program which uses algorithms and pre-programmed rules of grammar, vocabulary, and linguistics to try to accurately achieve translation. These translations are currently imperfect as these programs poorly understand context, human emotion, and cannot obtain a sense of the languages it translates. These automated translation methods provide many benefits for developers as they can provide one-click translations of websites and in some cases, applications.


More on Human Languages

Examples of human languages:

  • English
  • Spanish
  • Mandarin
  • French
  • Italian
  • Arabic
  • Farsi/Persian
  • Cantonese
  • Russian
  • Japanese
  • Korean
  • German
  • Latin
  • Greek
  • Hebrew
  • Polish

It is important to note that languages are dynamic and therefore change over time and also may have different dialects and varieties.

A dialect of a language is a variety of a language spoken in a certain region or demographic. Dialects may also be referred to as varieties, depending on the cultural context. Dialects/varieties are also subject to change over time. This is most visible in forms of media, such as the written word, collected of a span of time.

Certain languages may have many spoken dialects/varieties, but may not differ in writing. Many languages with dialects/varieties also have a standardized version. Note that just because there is a standardized version in existence, this DOES NOT imply that it is to be considered objectively correct.

Non-exhaustive list of examples of languages that contain multiple dialects:

  • English
  • Arabic
  • German
  • French

English, Arabic, German, and French all have a standardized version of the language that are maintained by linguistic organisations exert authority on this version.

Certain languages may be considered 'dead' languages. This means that the language is no longer or rarely spoken in practical situations and the evolution of said language is thusly slow or has halted. These languages are usually studied in an academic context in order to study written forms of it in collected texts from the past.

Examples of 'dead' languages:

  • Aramaic
  • Sumerian
  • Ancient Greek
391 questions
23
votes
7 answers

How to translate the buttons in qmessagebox?

I have a QMessageBox like this: QMessageBox::question(this, tr("Sure want to quit?"), tr("Sure to quit?"), QMessageBox::Yes | QMessageBox::No); How could I translate the Yes/No word? since there is no place to place a tr()?
Nicholas Yu
  • 333
  • 1
  • 5
  • 7
15
votes
3 answers

How to use Bing Translation API?

I am trying to use the Bing Translation API, but I am confused. There seems to be much possibilities (old and new ones) but I don't understand what I have to do. Can someone please help me? I want to send a HTTP Request like…
14
votes
10 answers

Django translations does not work

I'm trying to get Django's translation system to work, following the tutorial here. Here are my two views (one for direct output, one for template), neither one works. def home(request): output = _("hello") # (lazy) return…
jeff
  • 13,055
  • 29
  • 78
  • 136
14
votes
2 answers

Transliteration from Hindi to English on Android without using Google API

I want to transliterate Hindi text into English in following way Hindi - "आपका स्वागत है" to English - "aapka swagat hain" I don't want to use Google's Translate API or any other translate API. If I use them it will end up giving me the translated…
Manishika
  • 5,478
  • 2
  • 22
  • 28
13
votes
2 answers

geting error/warning for plurals : "The quantity 'one' matches more than one specific number..."

Background I work on an app that has many translations inside it. I have the next English plural strings: added photo added %d photos and the…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
9
votes
2 answers

JSONDecodeError using Google Translate API with Python3

I've searched thoroughly on Stack Overflow but couldn't find an answer to this problem. I'm trying to use the Google Translate API (googletrans 2.2.0) for Python (3.6.2) and am trying to translate a set of non-English documents into English. I am…
9
votes
2 answers

How to parse freedict files (*.dict and *.index)

I was searching for free translation dictionaries. Freedict (freedict.org) provides the ones I need but I don't know, how to parse the *.index and *.dict files. I also don't really know, what to google, to find useful information about these…
DiKorsch
  • 1,240
  • 9
  • 20
7
votes
1 answer

Django translations in Javascript files

I followed the Django doc to internalize the js files, but it does not work. Here's my setup: settings.py: LOCALE_PATHS = (os.path.join(BASE_DIR, 'locale'),) urls.py in root project: from django.views.i18n import JavaScriptCatalog from…
Dev Python
  • 175
  • 2
  • 11
7
votes
3 answers

Quickest way of translating string.xml file

I created an app in english but I have a huge user base of spanish and french users so I thought of translating the app in french and spanish languages , now there are two problems, first problem I am having is that there are over 3000 strings to be…
Daniel S
  • 103
  • 1
  • 8
6
votes
2 answers

Best way to translate database driven content

I've been struggling with this for a while now. One my CMS' is ready to be extended with a translation module. I've been thinking of different methods but haven't figured out what is the best way so far. Basically I have a CMS which uses a template…
6
votes
3 answers

How do I translate Javascript standard error messages in Django?

I've a couple of Django projects using translations and everything works fine except Javascript error messages on forms are not translating. For example, on my Login form, if I simply press enter I will get the JS error message "Please fill in this…
HenryM
  • 5,557
  • 7
  • 49
  • 105
6
votes
3 answers

Is there a method for translating markdown formatted text?

I'm working on a project with a sizable amount of markdown formatted text that I would like to make available in different languages. Has anyone developed a process for producing and managing markdown content in multiple languages? Currently, our…
John Gerken
  • 686
  • 6
  • 13
6
votes
5 answers

Translating Pig Latin into English Using Python 3

As you will see in my code below, I have already made a program that translates from English into Pig Latin. It follows two rules: If the word begins with a vowel, "way" should be appended (example: apple becomes appleway) If the word begins with…
aidandeno
  • 307
  • 1
  • 2
  • 16
6
votes
1 answer

XSL-FO Foreign Characters (Polish) Unicode in APACHE FOP (V. 1.1)

I have the following xsl-fo code, attempting to produce foreign characters. ...
Zibbobz
  • 725
  • 1
  • 15
  • 41
6
votes
2 answers

How does folder name translation work in international Windows 7 versions?

I am running an Italian version of Windows 7. Some folders, such as C:\Users, appear as C:\Users when I run cmd and do an ls from the C: directory. However, when I use Windows Explorer, this Users folder shows up as Utenti. Also, when an install…
1
2 3
25 26