Localization
Learn how to translate Aikeedo into multiple languages and manage language settings for your users.
Introduction
Localization is a crucial feature that allows you to make Aikeedo accessible to a global audience. This guide will walk you through the process of translating your Aikeedo instance, managing language files, and enabling language selection for your users.
Translation File Locations
Aikeedo uses separate translation files for different parts of the application:
-
App and Admin Interface:
/locale
directory -
Landing Page (Home Page):
/public/content/plugins/heyaikeedo/default/locale
directoryThis is the default location for the landing page translations. The full path structure follows this pattern:
/{webroot}/content/plugins/{organization}/{theme}/locale
Where:
{webroot}
is typicallypublic
, but may bepublic_html
in some installations (e.g., cPanel){organization}
is usuallyheyaikeedo
, but can be customized to your organization name if you’re using a custom theme{theme}
isdefault
for the standard theme, but could be different if you’re using a custom theme
Always check your specific installation setup to confirm the exact path.
For more information on creating custom themes and managing their translations, refer to our Theme Development guide.
Translation Process
To translate Aikeedo into a new language or modify existing translations, follow these steps:
- Navigate to the appropriate directory based on the section you want to translate.
- Locate the
.po
file for your target language. - Open the file in a text editor or a specialized PO file editor.
- Find the
msgid
entries, which contain the original English text. - Enter your translations in the corresponding
msgstr
fields.
Always keep the msgid
values unchanged. Only modify the msgstr
entries.
Example Translation
Here’s a simple example of how a translation might look in a .po
file:
Managing Available Languages
To enable or disable languages for your Aikeedo instance:
- Open the
/locale/locale.json
file. - Enable or disable languages by setting their
"enabled"
field totrue
orfalse
. - Set the default language by updating the
"default"
field at the top of the file:
The default language code must match one of the enabled languages in the locales
array. For example, if you want to set Spanish as the default, first ensure es-ES
is enabled, then update the default value to "es-ES"
.
While Aikeedo includes configuration for 30+ languages, please note that the actual translation strings are not included by default. You’ll need to provide your own translations for languages other than English.
User Language Selection
Aikeedo provides two ways for users to change their preferred language:
For Logged-in Users
- Log into the Aikeedo app.
- Click on your name in the account menu (bottom-left of the app dashboard).
- Navigate to your profile page.
- Look for the language selection option and choose your preferred language.
For Website Visitors
The language selection process for website visitors may vary depending on the theme used. In the default theme:
- Look for the language switcher in the website header (often in the top-right corner).
- Click on the switcher (typically represented by a globe icon or current language code).
- Select your preferred language from the dropdown menu.
The exact location and appearance of the language selector may differ based on your chosen theme. Some themes might place it in a different part of the header, footer, or even in a side menu.
Best Practices for Localization
- Consistency: Maintain consistent terminology across all translations.
- Context: Consider the context in which the text appears to ensure accurate translations.
- Testing: After translating, thoroughly test the interface in each language to catch any layout or functionality issues.
- Regular Updates: Keep translations up-to-date with each new release of Aikeedo.
Troubleshooting
If you encounter issues with localization:
- Ensure all
.po
files are properly formatted. - Check that the
locale.json
file is correctly configured. - Clear your browser cache and application cache after making changes.
- Verify that the correct language files are being loaded in the application settings.
Need Help?
If you need assistance with localization or have any questions, don’t hesitate to reach out to our support team at support@aikeedo.com.
Was this page helpful?