Knowledgebase

Supporting Several Languages Print

  • phplaravel, guide, howto, solution, zillionkinghost, hosting, support
  • 0

Localisation.

WHAT THE FRAMEWORK PROVIDES

Translation files, and helpers for retrieving strings.

WHAT TO EXTRACT

Every user-facing string.

WHY

Strings embedded in templates cannot be translated without editing markup.

WHAT ELSE VARIES BY LOCALE

Date formats Number and currency formatting Plural forms Text direction, for some languages

WHAT TO BE CAREFUL WITH

Sentences assembled from fragments.

WHY

Word order differs between languages, and fragments cannot be reordered.

WHAT TO DO INSTEAD

Translate whole sentences with placeholders.

WHAT TO PLAN FOR

Translated text being longer, which affects layout.

WHAT TO DECIDE

How the language is chosen: a setting, the address, or the browser preference.

WHAT TO CONSIDER LOCALLY

Whether translation is genuinely needed, or whether clear plain English suffices.

WHAT TO AVOID

Machine translation presented as authoritative.

WHAT TO TEST

Each language, with real content.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot