Installation Guide¶
This guide will walk you through the process of installing and configuring the String module.
Prerequisites¶
Before installing the String module, ensure you have:
- A working Drupal 10.3 or 11.x installation
- PHP 8.1 or higher
- Composer installed
- Drush installed (optional, but recommended)
Installation Methods¶
Using Composer (Recommended)¶
-
Navigate to your Drupal root directory:
cd /path/to/drupal
-
Install the module using Composer:
composer require drupal/string
-
Enable the module using Drush:
drush en string
Or through the Drupal admin interface:
- Go to Extend (/admin/modules
)
- Find "String" in the list
- Check the box and click "Install"
Manual Installation¶
- Download the latest release from Drupal.org
- Extract the archive to your Drupal's
modules
directory - Enable the module through the Drupal admin interface or using Drush
Configuration¶
Basic Configuration¶
- Navigate to the String module settings:
- Go to Configuration → Regional and language → String settings
-
Or visit
/admin/config/regional/string
-
Configure the following settings:
- String export format
- Default string namespace
- Translation workflow settings
Permissions¶
The module adds several permissions that you may want to configure:
manage string export
: Allows users to export string translationsimport string translations
: Allows users to import string translationsadminister string settings
: Allows users to configure the module
To configure permissions:
1. Go to People → Permissions (/admin/people/permissions
)
2. Find the "String" section
3. Configure permissions for each role
Verification¶
To verify the installation:
- Check the status report:
- Go to Reports → Status report (
/admin/reports/status
) -
Look for the String module in the list
-
Test the basic functionality:
- Create a test string in your custom module
- Verify it appears in the string management interface
- Try exporting and importing translations
Troubleshooting¶
If you encounter any issues during installation:
- Check the Drupal error log
- Verify all prerequisites are met
- Clear the Drupal cache:
drush cr
- Check the issue queue for known issues
Next Steps¶
After installation, you may want to:
- Review the Quick Start Guide
- Learn about Basic Usage
- Configure String Management
- Set up Translation