FREELessons: 35Length: 7.7 hours

Next lesson playing in 5 seconds

  • Overview
  • Transcript

7.3 Managing Languages

Hi, guys, Welcome back to A Beginner's Guide to Using Joomla! And in this lesson, we want to continue on learning about the language management within Joomla and come to a conclusion for the entire course. So now we're back at the Language Manager. What I'd like to do is now uninstall one of these languages. So I'll uninstall Albanian. So I'm going to drop down the Extensions Menu and go to the Extensions Manager. We need to manage our extensions, and we need to select a particular type. Now, you may want to go for the language, but this will show each individual language that's installed. So you can have a language for the site, the front-end, and also for the administrative back-end. However, if we want to uninstall a language we need to select Package. So if I click on package I can now see that we have Afrikaans as a package and Albanian Language Pack. These are classes packs because they are both the front-end and back-end language in one pack. And as I installed it as a pack, I must uninstall it as a pack. So I'm going to get rid of the Albanian Language Pack. And if I try to uninstall the administrator or the site Albanian separately then I would come up with errors. So we say Albanian Language Pack and Uninstall. This will then remove that language and we can now review this in the Language Manager. Now Joomla allows us to associate languages to an item. So we have Articles, Menu Items, the Menus themselves, and also you have Contacts and lots of other items that can have languages associated to them. And what we can do is assign a language to each one of those items. But when I go to the Articles Manager and click on an article and drop down the language drop down, I only see English (UK). However, in the Language Manager we have two languages installed. So why am I only seeing English (UK) in that drop down? Well, the reason for this is because if we go underneath Content, under the Language Manager we can see that there is only English UK. Which means I can only assign English UK to the items within Joomla. So what I'm going to do now is take a look at adding in another content language, so I can assign another language to my content if I wish. Now, before I do this I need to get some information. So underneath installed site we need to take note of the Language name and also the Language Tag. And also please do note with the Language Tag it is case-sensitive. So I'm gonna click on New, we need to provide a Title so we can identify it. So I'm gonna say Afrikaans. I'm also gonna set the native title to Afrikaans. I'm also gonna set the Language Tag, which as you know is af, then we have the uppercase ZA. Then we have the URL Language Code, this is the first two characters of the Language Tag. So we'll just say af, and I'll talk about that in a moment. Then we have the Image Prefix. We can either type in the first two characters of the Language Tag or you can search through. But I'm just gonna stick with af and there is the image. Then on top of that we also the Status which, if set to published, will show up on the front-end when it comes to the Language Switcher module. Now we've not got onto the Language Switcher module just yet because there's some things that we need to enable. But, if we set it to Published it will show up in that module. Then on top of that, again, we can set the Viewing Access Level as this is viewable on the front-end. And again, we'll talk more in-depth about this at a later date. And then we can provide a nice little description. On top of that you have some metadata, such as Meta Keywords, that you can associate with this Content Language and Meta Description. And then also I can provide an alternative site name that overrides the global default site name as this is a little bit of a different version of our site. So I'm just gonna set that to Afrikaans to demonstrate this feature and say save and close. So in order to demonstrate the language which are on the front-end I'm gonna take a look at my article content. So we have the Article Manager component. We're gonna select all of the article items, and we're gonna Batch process. And now we're gonna make sure that all of the articles that we currently have English (UK) assigned to them because that's the language they're written in. Now what we'd like to do is translate the Welcome to your blog article. Now what I'm going to do is take a note of the title, and also I'm gonna copy out the main text of the article. Then we need to use the Google translate service, or any translate service, in order to translate this article from English to Afrikaans. Once we have done this, we now need to go back and create a new article. Then I can go back to the Google Translate service and copy out the Afrikaans translation of my article and paste it in. From here we can put in the body of text and also we can put in the title and just format. And then on top of that we're gonna assign the categories blog and the language to Afrikaans. So now, I'm going to say Save and Close. But now we've done this, when we go to the front-end, you'll notice we're getting a mixture of content. We're getting the Afrikaans article and then we have the English articles as well. So this isn't really what we want. What we want to do is filter the content, and only show content of a certain language when we go to a particular version of our site. The way we do this is by enabling a plugin. So let's go to the Plugin Manager and then we're gonna search for any plugins with language in their title. And right here we have Language Filter. Enable this plug-in and when we do this and hit refresh, you'll notice in the URL we have index.php and then we have /af. We could go to EN, which is the English version of our site so it's showing all of the English articles. And then we can go to /af and that will take us to the Afrikaans version. And you'll notice under the Language Manager, we go to Content > Afrikaans. We set the URL language code to af so that's a latch right there. And then we also change the site name as well to Afrikaans so we're overriding the default site name. Now you'll notice it's not translating any content. That's not the purpose of this. All it's doing is it's saying show specific content. However, all of these menu items don't have a specific language assigned to them. It just has all which means show these particular items with all versions of the site no matter what language. So what you'd actually have to do is, you'd have to duplicate all of your menu items and translate them, all of your modules, and also categories as well. Don't forget you have items, so they're the articles. But you have the article categories as well that you will need to duplicate and translate. So you're creating a whole nother duplication and if you want to do that, that's fine. But me myself, I would rather use this Langauge Manager if let's say I had a news website and we had departments all over the world in different countries. And they had different content and they had content specific to their country. However, if I wanted to just translate the content that's already in English, I would actually install a third party plug-in. You can go ahead and search for it in the back-end through the Extensions Manager. Which allows you to embed the Google Translate service into your website. This means the user can easily drop down and select any language that's available through the Google Translate service and it will translate your page automatically. So that will be a preferred solution if I wanted to translate existing content, rather than duplicating all the content, mushrooming it, and taking up a lot of space. Now, another thing to note is there is a module called the Language Switcher. Now, this module is good for just changing the filtering instead of having to type it in the URL which filter you'd like so EN, AF, and so on and so forth. Now at the moment if I enable that module nothing will show up. Now in this space you get little flags that you can click on and then filter the content or a dropdown, it depends on your settings for that module. However nothing shows up, why is that? Well that's because you have to go through every single item and assign it a specific language such as Articles, Article Categories. Banners, Banner Categories, Contacts, Contact Categories and Menu Items and lots and lots of other items found throughout the Joomla system. So it's very, very strict and so that's why I don't actually like using that module. And I'm not gonna be able to demonstrate it cuz you have to go through every single item, reassign them, and so on and so forth. So it can be a little bit more awkward. Now finally with the Language Manager component you have the global configurations, which is just the permissions for that component. Thank you for watching me in this lesson. And please join me in the next lesson where we'll draw up a conclusion for this entire course.

Back to the top