| @@ -70,8 +70,9 @@ | ||
| 70 | 70 | if (!empty($error)) acym_enqueueMessage($error, 'error'); |
| 71 | 71 | if (!empty($errorLoad)) acym_enqueueMessage(acym_translationSprintf('ACYM_ERROR_LOAD_LANGUAGE', implode(', ', $errorLoad)), 'warning'); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + // translates the Acy menus on back-end and Joomla menus | |
| 74 | 75 | public function installBackLanguages(string $onlyCode = ''): void |
| 75 | 76 | { |
| 76 | 77 | if (ACYM_CMS !== 'joomla') { |
| 77 | 78 | return; |
| @@ -110,9 +111,8 @@ | ||
| 110 | 111 | |
| 111 | 112 | $siteLanguages = empty($onlyCode) ? array_keys(acym_getLanguages()) : [$onlyCode]; |
| 112 | 113 | |
| 113 | 114 | foreach ($siteLanguages as $code) { |
| 114 | - | |
| 115 | 115 | $path = acym_getLanguagePath(ACYM_ROOT, $code).DS.$code.'.com_acym.ini'; |
| 116 | 116 | if (!file_exists($path)) continue; |
| 117 | 117 | |
| 118 | 118 | $content = file_get_contents($path); |
| @@ -117,8 +117,11 @@ | ||
| 117 | 117 | |
| 118 | 118 | $content = file_get_contents($path); |
| 119 | 119 | if (empty($content)) continue; |
| 120 | 120 | |
| 121 | + // The first key is to translate "Acym" into "AcyMailing blabla" in the Joomla Extension manager | |
| 122 | + // The second key is to translate "com_acym" into "AcyMailing" in the Joomla global configuration page | |
| 123 | + // DON'T CHANGE THE KEY !! | |
| 121 | 124 | $menuFileContent = 'ACYM="AcyMailing"'."\r\n"; |
| 122 | 125 | $menuFileContent .= 'COM_ACYM="AcyMailing"'."\r\n"; |
| 123 | 126 | $menuFileContent .= 'COM_ACYM_CONFIGURATION="AcyMailing"'."\r\n"; |
| 124 | 127 | |