php

Localization for your PHP Applications

Sign up and create a project

Getting Started is Easy


Add TML to your composer.json file

"require": {
  "translationexchange/tml": "3.2.12"
}

Configure the SDK:Add the initialization code and the TML script to the top of your page

<?php require_once(__DIR__ . '/vendor/translationexchange/tml/src/init.php'); ?>
<?php tml_init(array( "key" => "YOUR_APPLICATION_KEY" )); ?>
<!doctype html>
  <html lang="<?php echo tml_current_locale(); ?>">
  <head>
    <?php tml_scripts(); ?>
  </head>
  ...

add the complete request tag to the bottom of your page

</html>
<?php tml_complete_request(); ?>

Use the TML Helpers:Use helper tags and wrap your strings with "tr" function:

// Use "tre" function with your strings
<?php tre("Hello World") ?> //Hello World
<?php tr("You have {count || message}", array("count" => 5)) ?> //You have 5 messages

Manage your entire localization efforts in one place


Keep track of your localization progress

Get detailed reports on how your localization and translation are progressing.

Choose how you want to translate

Invite your own translators or order professional translations from our network of 15,000+ on-demand translators with just a few clicks.

View all your translated content in one place

Access all your digital content from our dashboard and review your latest translations

Translation Exchange works with all major languages and frameworks

View All Platforms

And seamlessly integrates with many major web based platforms.

View All Integrations