Technical forums »

General technical issues

Thread poster: Husam Qarawi

Husam Qarawi  Identity Verified
United States
Local time: 21:59
Member (2008)
Arabic to English
+ ...
Aug 15



[Edited at 2019-08-15 17:40 GMT]


 

Alejandra Garcia Romero  Identity Verified
United Kingdom
Local time: 03:59
Member (2015)
English to Spanish
+ ...
Be familiar with the tags/syntax of the programming language(s) Aug 15

Hi Husam,

In order to learn how to translate a text embedded in code, you need to be familiar with the tags and syntax of the programming languages. It takes a bit of time, but that is the first step. Once you get to know them, you will be able to identify the code, the text and the placeholders easily.

For example, in HTML, text is normally enclosed within an opening tag and a closing tag:

<h1>HELLO WORLD<\h1> (h = header)
<p>This
... See more
Hi Husam,

In order to learn how to translate a text embedded in code, you need to be familiar with the tags and syntax of the programming languages. It takes a bit of time, but that is the first step. Once you get to know them, you will be able to identify the code, the text and the placeholders easily.

For example, in HTML, text is normally enclosed within an opening tag and a closing tag:

<h1>HELLO WORLD<\h1> (h = header)
<p>This is an example.</p> (p = paragraph)

In another language such as PHP, text appears within "":

<?php
$cars=array("house","door","window");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
<?>

Here, "house", "door" and "window" would be the text to translate. <?php and ?> are the tags that close the piece of PHP code, $cars is a variable that stores unsorted elements and echo is a command for printing on screen. Basically, when you run that piece of code, you will see this on screen "I like house, door and window".

A really good website for learning code is https://www.w3schools.com. I would recommend you to start with HTML and then move to PHP, Java or Python.

I hope this helps!

Alexia
Collapse


Luximar Arenas Petty
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Advanced search






Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
SDL MultiTerm 2019
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2019 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2019 you can automatically create term lists from your existing documentation to save time.

More info »



Forums
  • All of ProZ.com
  • Termsøk
  • Jobber
  • Forumer
  • Multiple search