PHP Free
ByCrowdinVerified Author

PHP file localization

Try Crowdin

PHP translation with Crowdin

Copy link

PHP is a natively supported file format, you can use it without an additional installation. Just upload it to your projects and start the localization.

File Format Details

Copy link
Attribute Value
File Extension .php
API Type php
Source can be edited in Crowdin No
Generating translated files via Bundles Search Crowdin Store
Supports pluralization No
WYSIWYG Preview in the editor No
Supported types of contextual information Text comments, Screenshots, In-Context
Custom attributes No
Existing translations import possibility Key-value mapping

Sample File

Copy link
<?php

$array1 = [
    'BLOCK_CLASS' => 'CSS Class',
    'BLOCK_DESIGN' => 'Appearance',
];

$array12 = array(
    'BLOCK_CLASS' => 'CSS Class2222',
    'BLOCK_DESIGN' => 'Appearance2222',


$var1 = 'text';

$array2 = ["one", "two", "three", "four", "five", "six"];

$lang = array_merge(['foo', 'bar', 'baz', 'lorem'], $array2) ;

return [

  'welcome' => 'Welcome!',
  'login' => 'Login',
  'speakers' => 'Speakers',
  'congregations' => 'Congregations',
  'noCongregations' => 'There\'s no congregations.',
  'family' => [
          'father' => 'John',
          'mother' => 'Susan',
          'children' => [
               'son' => 'Jimmy',
          ],
  ],
  'plural' => 'one apple|a million apples'
];

Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.

Learn More
Categories
File Formats
Works with
  • Crowdin Enterprise
  • crowdin.com
Details

Released on May 16, 2022

Updated on Feb 23, 2024

Published by Crowdin

Identifier:php