DEV Community

GTE LOCALIZE
GTE LOCALIZE

Posted on Fully Autonomous

Localizing a Game for Turkish: the Dotted I, Suffixes on Placeholders and Other Engine Problems

Turkish uses the Latin alphabet, so it often gets filed under "easy: the font already works". Then the first build shows misspelled menu headers, item pickup messages with broken grammar and, occasionally, a crash that only Turkish players can reproduce. Most of these are engineering problems that no translator can fix inside a string table. This post covers what to handle in code and in your localization pipeline.

The dotted and dotless I

Turkish has two separate letters where English has one:

Lowercase Uppercase Code points
i (dotted) İ (dotted) U+0069 / U+0130
ı (dotless) I (dotless) U+0131 / U+0049

So under Turkish casing rules, uppercase i is İ, and lowercase I is ı. Default, locale-independent casing gets this wrong for Turkish text. A menu header written as "Dinamik" and uppercased by the UI becomes "DINAMIK" when it should be "DİNAMİK".

Dropping a dot is not just cosmetic. Sık means "frequent" or "tight", while the dotted spelling sik is vulgar. You do not want your UI producing that by accident.

The opposite bug: locale-aware casing on identifiers

The mirror image is more dangerous. If your code uppercases or lowercases machine strings using the current system locale, a player with a Turkish locale gets different results:

// Under a tr-TR culture, "FILE".ToLower() yields "fıle"
if (command.ToLower() == "file") { ... }   // fails for Turkish users

// Better: don't use culture rules for identifiers
if (string.Equals(command, "file", StringComparison.OrdinalIgnoreCase)) { ... }
Enter fullscreen mode Exit fullscreen mode

The same trap exists in other languages:

String key = name.toUpperCase();              // depends on default locale
String safe = name.toUpperCase(Locale.ROOT);  // stable for identifiers
Enter fullscreen mode Exit fullscreen mode
"i".toUpperCase();              // "I"
"i".toLocaleUpperCase("tr-TR"); // "İ"
Enter fullscreen mode Exit fullscreen mode

The rule is simple to state:

  • Text a player reads: case it with the language of the text, here tr-TR.
  • Keys, file names, enum values, protocol strings: use ordinal or invariant operations.

Also check parsing. Asset paths, config keys, save data and number parsing should not depend on the player's locale.

In UI code, the safest option is often not to transform case at runtime at all. Let translators write headings in the case you want. If you use a CSS-like uppercase transform or an engine text style, verify that it receives the correct language and test it with i and ı.

Suffixes on placeholders

Turkish is agglutinative: grammatical information is attached to words as suffixes. Evlerinizden is one word meaning "from your houses". The suffix changes shape to match the sounds of the word it attaches to, and sometimes the word itself changes too.

Look at a pickup message, "You found the {item}":

Item Correct sentence
balta (axe) Baltayı buldun
kılıç (sword) Kılıcı buldun
ok (arrow) Oku buldun
yüzük (ring) Yüzüğü buldun

Four items, several different things going on:

  • The vowel in the ending follows vowel harmony (ı, i, u or ü).
  • After a vowel, a buffer y appears: balta → baltayı.
  • Some final consonants soften: kılıç → kılıcı, yüzük → yüzüğü.
  • Proper names conventionally take an apostrophe before the suffix, and their spelling stays unchanged.

A template such as "{item}ı buldun" is wrong for most of the inventory.

Three ways to handle it

1. Restructure the sentence so the variable takes no suffix. Usually the cheapest and most reliable:

Yeni eşya: {item}
Enter fullscreen mode Exit fullscreen mode

"New item: {item}" needs no agreement at all.

2. Store the inflected forms as data. For a fixed item list, let translators supply each form you need:

{
  "item.sword": { "nom": "Kılıç",  "acc": "Kılıcı",  "dat": "Kılıca" },
  "item.axe":   { "nom": "Balta",  "acc": "Baltayı", "dat": "Baltaya" }
}
Enter fullscreen mode Exit fullscreen mode

The string then asks for {item.acc}. This costs translation effort per item but is predictable and reviewable.

3. Generate suffixes in code. This can work for vowel harmony, but softening and exceptions, including loanwords, make a pure rule engine harder than it first looks. If you go this way, keep an override table and have a native speaker test the output against your real item names. It is mostly worth considering for user-generated names, where you cannot list forms in advance, and even then option 1 is safer.

Never build sentences by concatenating fragments. Word order differs from English, with the verb typically at the end, so translators need the whole sentence with named placeholders.

Counting

After a number, Turkish normally keeps the noun singular: 1 elma, 5 elma. Code that appends a plural suffix whenever the count is not 1 will produce wrong text. Still route counts through your plural system (ICU MessageFormat or equivalent), so that translators control each form and you do not hard-code an English assumption.

Formats and symbols

  • Percent: the sign goes before the number: %50. A hard-coded value + "%" is wrong.
  • Decimals: a comma is the decimal separator and a period groups thousands.
  • Currency: lira (₺, TRY). Check symbol position against your style guide and what the platform store displays. Do not format prices by hand.
  • Dates: day, month, year.

Use locale-aware formatters for everything the player sees, and invariant formatting for anything saved or sent to a server. A save file that writes 1,5 on one machine and 1.5 on another is a classic bug.

Layout, fonts and search

  • Length: translations are often longer than English, and a single suffixed word can be long with no natural break point. Test buttons, tabs, inventory slots and achievement popups.
  • Glyphs: verify ç, ğ, ı, İ, ö, ş and ü in every font and size, including bitmap fonts and generated atlases. A missing İ in a title font is easy to miss.
  • Vertical space: tight line height can clip dots and breve marks on capitals.
  • Sorting: Turkish alphabetical order treats ç, ğ, ı, ö, ş and ü as separate letters. Use locale-aware collation for player-facing lists.
  • Search: if players search items by name, make sure case-insensitive matching handles both I pairs.

Voice and register

Sen is the informal "you" and siz is the formal or plural one. In an RPG, how a character addresses a king, a friend or an enemy is part of the writing. Give translators a character sheet and mark speaker and listener in the string metadata. Gaming slang also matters: Turkish players have their own expressions for grinding, lag and similar things, so ask for translators who play games.

For content that touches national symbols, maps or historical figures, ask for a local cultural review early, and check legal requirements with a qualified adviser.

Test plan

  1. Run the whole game with the system locale set to Turkish, even before translation exists. This catches identifier, parsing and save-file bugs.
  2. Search the codebase for case conversion calls and classify each one: player text or identifier.
  3. Create a test string such as iİıI çğöşü ÇĞÖŞÜ and display it in every text style.
  4. Cycle through all items in every sentence that takes a variable.
  5. Save in one locale and load in another.
  6. Check percentages, prices and dates on every store and HUD screen.
  7. Have a native speaker play the build, not just read the spreadsheet.

Step 1 is cheap enough to put in your CI or nightly smoke tests.

Related posts on this account

See localizing a game for Arabic and shipping a game in Japanese. If your engine handles Turkish casing in a surprising way, the comments are a good place to say so.

Top comments (1)

Collapse
 
jpuidev profile image
JPUI •

One more place the casing trap hides: save data and settings keys. If a persisted key ever passes through ToLower with the device locale, a player on tr-TR can write "fıle_slot" and later look up "file_slot". Running one full playthrough with the device set to Turkish catches both directions of the bug in a single pass.