Language support and translation information for the Upload and Shorten Advanced plugin.
The plugin is available in multiple languages:
| Language | Code | Status | Contributor |
|---|---|---|---|
| English | en_US |
✅ Complete | Built-in |
| German | de_DE |
✅ Complete | Fredl |
| French | fr_FR |
✅ Complete | Alfonso Vivancos |
| Spanish | es_ES |
✅ Complete | Alfonso Vivancos |
| Chinese (Simplified) | zh_CN |
✅ Complete | Mo Lun |
| Norwegian (Bokmål) | nb_NO |
✅ Complete | Master3395 |
To use a specific language, add this to your YOURLS user/config.php:
define('YOURLS_LANG', 'de_DE'); // Replace with your preferred language code
en_US - English (United States)de_DE - German (Germany)fr_FR - French (France)es_ES - Spanish (Spain)zh_CN - Chinese Simplified (China)nb_NO - Norwegian Bokmål (Norway)Translation files are located in the l10n/ directory:
l10n/
├── en_US.php # English
├── de_DE.php # German
├── fr_FR.php # French
├── es_ES.php # Spanish
├── zh_CN.php # Chinese Simplified
└── nb_NO.php # Norwegian Bokmål
Want to translate the plugin into your language? Here’s how:
cd /path/to/yourls/user/plugins/YOURLS-Upload-and-Shorten-Advanced/l10n/
cp en_US.php your_LOCALE.php
Replace your_LOCALE with your language code (e.g., it_IT for Italian, pt_BR for Brazilian Portuguese).
Open the file and translate each string:
<?php
return [
'upload_file' => 'Upload File', // Translate this
'choose_file' => 'Choose File', // And this
'max_file_size' => 'Maximum file size', // And so on...
];
user/config.php:define('YOURLS_LANG', 'your_LOCALE');
Share your translation with the community:
l10n/ directoryWhen creating translations:
Maintain consistency with these standard translations:
| English | Purpose |
|---|---|
| Upload | Action of uploading files |
| Download | Action of downloading files |
| Short URL | The shortened link |
| File | A document or media file |
| Settings | Configuration options |
| Save | Commit changes |
| Cancel | Abort action |
| Delete | Remove item |
| Edit | Modify item |
Some terms should remain in English or use common international terms:
Some strings contain placeholders that should not be translated:
'file_size_limit' => 'Maximum file size: %s MB' // %s is replaced with a number
'uploaded_by' => 'Uploaded by %s on %s' // %s are replaced with username and date
Keep placeholders (%s, %d, {variable}) in your translation in the appropriate position.
For RTL languages (Arabic, Hebrew, etc.):
cp en_US.php ar_AR.php # For Arabic
Include RTL indicator in your translation file:
<?php
return [
'_rtl' => true, // Enables RTL mode
'upload_file' => 'رفع ملف',
// ... rest of translations
];
The plugin will automatically apply RTL styles when the _rtl flag is detected.
If you find errors or improvements for existing translations:
l10n/All UI strings are translated:
Currently no partial translations. If you start a translation but don’t finish, please still submit it so others can help complete it!
Special thanks to our translation contributors:
Want to see your name here? Contribute a translation!
Need help with translations?