Archives

How to manage and translate emails

1. Manage Mailing Template

You can configure Mails content that will send to users. There are many templates of emails for cases or roles.

email1

#Mail templates manager layout.

Let’s take a look at the Templates list:

email2

#Templates.

Now we take example on Welcome Mail:

First, select Welcome at Choose Email field to config, this email template is used for sending to new Members signed up.

email3

#1: Select Language for the template.

#2: Emails Templates.

#3: Description of the template.

#4: Subject of the Email Template.

#5: Message to users.

#6 Save Changes button.

*In #5: Message to users[header] and [footer] are email templates, they will display in your emails sent to users, you can config them by selecting Choose Emails field.

2. Translate email

Goto System Admin >> Mails

In Manager Mail Template tab,

Choose Por in language pack (example we choose Por language), if not have Por language yet, please see to install new language https://moosocial.com/knowledge-base/how-to-install-new-language/

there are many template emails in Choose email

We choose each of them and translate into Por language at Subject and Message body

Example Header template, we translate as bellow

porheader

Click Save change to save email template.

Now, example we translate email template Friend Request to Por language,

emailrequest

After change translate we have bellow

FriendRequestEmailPor

Click Save Changes  to save template email.

Goto System Admin >> System Settings >> Genneral

Select Por at Default Language and click Save settings.

At front end, we change language to Por language

changelanguage

Now the site translate into Por language.

When a user A ask friend request with other user B, user B will receive email in Por language.

 

How to use POEDIT

POEDIT is used for translating static data (ex: notifications, messages, error messages…etc)

Find our language package, located at [mooSocial/app/Locale/], look for a folder eng, this is English default language, copy this folder and paste into location you preferred (backup)

 

poedit1

#eng folder contains English language, copy & paste to your preferred location.

Now we start translating the backup:

Open poedit and select Create new translation

poedit2

#Select Create New Translation

Select a po file in eng/LC_Messages:

poedit3

#1 Select PO Translation files filter.

#2 Choose default.po located at [eng/LC_message/].

The poedit will ask your language for the translation, as example, to Vietnamese:

poedit4

#Select your language.

The poedit layout explanation:

poedit5

#1 The original text strings

#2 Translation strings

#3 Suggestion for translation (dictionary)

#4 Source text

#5 Translation

There are 2 ways to translate:

First, we can translate text string manually, click on the text string you want to translate and input your language to Translation text box:

poedit6

#1 Select string you want to translate

#2 Input your translation

Second, the suggestion for translation, click on the text string you want to translate, then select any of suggestion:

poedit7

#1 Select text string

#2 Select suggestion

After translation is done, save with ‘default.po’ and continue.

poedit8

#Press save button

Now change your language package folder’s name, within 3 letters, ex: vie (Vietnamese), copy this folder into [yourmooSocial/app/Locale/]

poedit9

#Change your translated language folder’s name and copy & paste into [yourmooSocial/app/Locale]

Open Admin Dashboard and go to Site Manager/Languages Manager/Not Installed Languages.

Now press on the install button

poedit10

#Press on Install button to start installing new language.

Wait for the install process is completed.

After successfully installed, users can change to new language:

poedit11

 

How to translate mooSocial

There are three methods for translate mooSocial

– Direct translate

– Download language package and translate

– Use plugin (you have to pay a cost)

I. Direct translate

It is very easy to translate mooSocial to your language. The default language file can be located at app/Locale/eng/LC_MESSAGES/default.po. If you want to translate mooSocial to a language that is not already in the Locale folder, you can copy the default language folder to a new folder (e.g. fra) and start translating the new language file using your favorite text editor (use UTF-8 to avoid problems). The language folder name must conform to the ISO 639-2 standard.

The msgid must be the english language string. This means it must not be changed. The one that contains the translation is msgstr.

To install the new language after uploading the language folder to Locale folder, go to Admin Panel → Site Manager → Languages Manager → Not Installed Languages then click Install. It is necessary to clear Global Cache when using a new Language by going to Admin Dashboard → Clear Global Cache.

Note: use Poedit from http://www.poedit.net/ to easily edit the .po files, you can use poedit to translate mooSocial here https://moosocial.com/knowledge-base/how-to-use-poedit/

II. Download language package and translate

You can download language packages for mooSocial  for free at http://translate.moosocial.com/collaboration then follow the below instructions to install them into your mooSocial site.

The language packages will send by email to you.

Extract the download file, you will see the following folders: cake.po, default.po, mail.po, permission.po and setting.po.

Create a new folder for your language pack. Such as For French, you should name the folder as “fra” at [yourmoofolder\app\Locale],

frafolder

for other languages, please refer here to know how to name the folder https://community.moosocial.com/topics/view/1314/codes-for-the-representation-of-names-of-languages .

Create a sub folder name “LC_MESSAGES” inside “fra” folder.

subfolder

Open cake.po folder, rename the file inside this folder to cake.po, open default.po and rename the find inside this folder to default.po….do the same for all above folders. After all files have been renamed, please copy all files into the “LC_MESSAGES” folder that you create above. Now, you have a language pack for French language and it’s ready for install.

Go to Admin Dashboard >>> Site Manager >>> Languages Manager.

Choose tab Not install Languagues  and find the uninstall language (fra language) click install.

Go to Admin Dashboard >>> Clear Global Caches

At the front end, we click to English to choose Fra language to translate

language

III. Use pluging

Translate Tool plugin helps to easily translate mooSocial to your desired  language directly in admin panel instead of editing po file in web folder. It also helps to translate content entered by members such as status updates, comments, blogs, topics…into your current selected language using Google Translate Service.

Main features:

+ Translate content entered by members such as status updates, comments, blogs, topics…into your current selected language using Google Translate Service.
+ Translate all labels in mooSoical into your languages directly in admin panel instead of editing po file in web folder.

Admin features:

+ Enable Translation
+ Enable Feeds Translation
+ Enable Comments Translation
+ Enable Blogs Translation
+ Manage all language phrases and allow you to translate all phrases in po file to  your languages directly in admin panel.

Importance: Google Translate Service is required.

Video guide

Translate language for Menu or Widget using Admin Dashboard

In this section, we will show you how to Translate Menu’s title, Widgets Title, Category Name, which are dynamic data by using Admin Dashboard.

Translating Menu:

Taking example, now we go on a try with Home on menu. Let’s get to the Menu section in Admin Dashboard/System Admin/Menu.

After pressed on dropdown button to explore Home menu settings, we will see a Translation button below the Navigation Label’s field:

transmenu

#Press on Translation to begin translating the Home menu title.

Now, the Translation popup is displayed, all you need to do is input your translated content to the language you preferred and press on Save Change to make it effective:

transmenu1

#Input your translated content to the preferred language’s field, save change to make it effective.

Let us return to Front-end and see how it’s effective, remember to change language to your preferred language.

transmenu2

#Change language to your preferred language.

Now, the content you applied for Home menu is now taken effect from translation:

transmenu3

#The content is now translated.

Translating Widget:

To begin translating a widget, we must go to Layout Editor in Admin Dashboard, which located: Admin Dashboard/Site Manager/Themes Manager/Layout Editor.

With this guideline, we taking an example on Who’s Online widget which is at Home page.

Now go to Layout Editor, select Home Page at dropdown and begin editing.

homepage

#Select Home page to begin editing.

Next, we find the Who’s Online widget, press on it’s edit button.

homepage1

#Press on edit button on widget you wanted to begin translating.

Now the edit popup displayed, we need to press on Translation to begin translation

homepage2

#Press on Translation.

Now, input translated text to your preferred language, then click save change to make it effective.

homepage3

#Input your translated text, and save change to make it effective.

Now at Front-end, users that using your preferred language will see it translated.

homepage4

#The preferred language is now translated the Widget Title.

Translating Category Name

This article will show you how to translate a Category Name, taking example on a Video’s Category. First of all we must get to the Category Manager from Videos Manager

catalog

#Go to the Plugin Category’s Manager.

Now select a Category you want to translate.

catalog1

#Select a Category to begin translating.

When the popup displayed, find the Translation button, its located below Category Name’s field.

catalog2

#Press on Translation button when popup displayed.

Now, just like the others, we will have to input translated text to the preferred language, press on Save Change to make it effective.

catalog3

#Input your translated text and Save Change.

Now let’s see how the Front-end being effected.

catalog4

#User will see ‘Movies’ Category translated to ‘Filming’.

catalog5

#The Category has been translated.

 

How to install new Language

You can download language packages for mooSocial  for free at http://translate.moosocial.com/collaboration then follow the below instructions to install them into your mooSocial site.

The language packages will send by email to you.

Extract the download file, you will see the following folders: cake.po, default.po, mail.po, permission.po and setting.po.

Create a new folder for your language pack. Such as For French, you should name the folder as “fra” at [yourmoofolder\app\Locale],

frafolder

for other languages, please refer here to know how to name the folder https://community.moosocial.com/topics/view/1314/codes-for-the-representation-of-names-of-languages .

Create a sub folder name “LC_MESSAGES” inside “fra” folder.

subfolder

Open cake.po folder, rename the file inside this folder to cake.po, open default.po and rename the find inside this folder to default.po….do the same for all above folders. After all files have been renamed, please copy all files into the “LC_MESSAGES” folder that you create above. Now, you have a language pack for French language and it’s ready for install.

Go to Admin Dashboard >>> Site Manager >>> Languages Manager.

Choose tab Not install Languagues  and find the uninstall language (fra language) click install.

Go to Admin Dashboard >>> Clear Global Caches

Enjoy it