Bilingual website Two texts, one skeleton

Every Arabic page needs an English page written with the same care. Machine translation published without review produces a copy few readers trust.

Published Naqrah Tech, Muscat5 min read

A frosted glass panel split into two equal halves, joined by a single thin brass line through the centre, on a white surface

In short

A bilingual site needs its own address for each language, reciprocal hreflang annotations that link each page to its twin, and the right text direction on the html element. Arabic is the source text here, and the English is written in its own sentences to carry the same argument. A language switch on the same address, and machine translation that nobody reviews, both weaken the site for visitors and for search engines.

  • Each language has its own address, and each page names its twin and itself.
  • Sections, fields and links appear in the same order in both languages.
  • A fluent reviewer checks the translation before publishing, and never after.

Arabic is the source, English is a second text

Google counts a localized page as a duplicate only when its main content stays untranslated, so the English version needs its body written out in English. We start in Arabic, because local visitors read it first and Arabic sentences force the idea into a precise order. The English then gets its own sentences, so the idea arrives in English after being shaped again for English readers. The result is two texts on one structure: the same headings in the same order, the same sections, the same tables, with sentences that differ because the two languages build an argument in different ways.

The skeleton is what makes the two versions one site. Keep the sections in the same order, keep the number of form fields the same, and point internal links at their counterparts in the other language. If a visitor finds the services section third in Arabic and fifth in English, that visitor will reasonably wonder whether one version is a summary of the other.

Each language gets its own address

Google recommends a different URL for each language version of a page. It also advises against relying on cookies or browser settings to change the language of a page at the same address. That is why our Arabic pages live at the root and the English pages sit under /en/. Each Arabic page has an English twin on its own address, so search engines can index each one and visitors can land on the right one.

Separate addresses also make sharing simple. A manager who wants to send an English page to a partner abroad sends a link, and the partner opens the right version without looking for a switch or guessing what the click will do.

Every page names its twin

The hreflang annotation tells search engines that a page exists in other languages. Google's rules are strict here. Each language version must list itself and every other language version, and the links must be reciprocal. If page X points to page Y, page Y must point back to page X. Google says that tags pointing one way only will be ignored.

x-default marks the fallback page for visitors whose language matches none of the listed versions. It is usually the source version. On our site, every page template declares ar-OM, en and x-default together, so a search engine finds both versions from any page it opens.

A quick check: open the Arabic page's source and search for hreflang. Then do the same on the English page. If an annotation appears on one page and is missing from its twin, fix that mismatch before you spend a minute on keywords.

Language and direction belong on the html element

W3C advises declaring the language on the html element, since the declaration is inherited by everything inside the page. The dir attribute sets the base direction of text, and W3C calls it essential for languages written right to left, Arabic among them. When the whole page runs right to left, the attribute goes on the html element as dir="rtl".

Typography comes next. Test the Arabic line height on a phone, because a line height chosen for English can crowd Arabic letters and cut into their marks. Then write one rule for numerals across both sites. We write numerals in Western form in our articles, and a single written rule stops the two languages from drifting apart page by page.

Toggles and unreviewed machine translation weaken a site

The most common shortcut is a language button in the header that swaps the page in place, sometimes after redirecting visitors according to their browser settings. Google advises against automatic redirects between language versions, because they can keep both visitors and search engines from seeing every version. Google recommends plain links to the other versions. Google also warns against using a visitor's IP address to choose the language, since it calls IP location analysis unreliable and says some site variations may then go uncrawled.

Unreviewed machine translation does a different kind of damage. It produces pages that mirror the original's structure while missing what a reader needs. Google's spam policy on scaled content abuse lists translation among automated transformations applied to scraped content to generate many pages with no value to users. The test that policy applies is the purpose behind the pages and whether they help the people who read them.

Test both versions before you publish

  1. Open the home page in Arabic and then in English. Count the sections in each and check that the order matches.
  2. Open each page's source and search for hreflang. Confirm that every page names its twin and itself, and that the links point both ways.
  3. Open both versions on a phone. Check the direction, and check that the numerals appear in the form your style rule chose.
  4. Ask a fluent English reader to check how the sentences read, and ask a fluent Arabic reader to check the source text before any translation begins.

The first decision in a bilingual project is which language is the source. Write it into the first page of the project brief, then test every new page against that choice. A site built on that rule can grow in both languages without losing its shape. If the site needs building from the foundations on this rule, that sits inside our website development service. For the search side of the same work, read our post on search in Oman.

Sources

  1. Google Search Central: Tell Google about localized versions of your page
  2. Google Search Central: Managing multi-regional and multilingual sites
  3. Google Search Central: Spam policies for Google web search
  4. W3C: Declaring the language of a page
  5. W3C: The dir attribute and right-to-left text

This post is general planning information as of its publication date. Every site needs a review of its own content and audience.

Send us the Arabic text first

We review the structure of your bilingual site with you, and name any page that needs fresh English writing rather than translation.

Or call us on +968 7119 0707, Muscat, Sultanate of Oman