Index: trunk/extensions/LiveTranslate/INSTALL |
— | — | @@ -29,19 +29,15 @@ |
30 | 30 | To be able to actually use Google Translate, you need to [https://code.google.com/apis/console get an API key] and |
31 | 31 | add it to your [[LocalSettings.php]] file AFTER the inclusion of the extension. |
32 | 32 | |
33 | | -<source lang="php"> |
34 | 33 | # Google API key |
35 | 34 | $egGoogleApiKey = 'INSERT-YOUR-KEY-HERE'; |
36 | | -</source> |
37 | 35 | |
38 | 36 | === Available languages === |
39 | 37 | |
40 | 38 | You have to specify which languages users should be able to translate to. This is done by adding language codes to <code>$egLiveTranslateLanguages</code>. |
41 | 39 | By default it contains only your wikis main language (as specified by <code>$wgLanguageCode</code> in [[LocalSettings.php]]). You add languages as follows: |
42 | 40 | |
43 | | -<source lang="php"> |
44 | 41 | $egLiveTranslateLanguages[] = 'nl'; |
45 | 42 | $egLiveTranslateLanguages[] = 'de'; |
46 | | -</source> |
47 | 43 | |
48 | 44 | If there are no languages available other then the current language of the page, then the translation control will not show up. |