Archives

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 https://moosocial.oneskyapp.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.

Translate Menu

 Admin Dashboard -> System Admin > Menu.

Screenshot at Dec 30 17-50-15

 

Click on “Translation” link to open popup, Inside the popup, select language then enter text to translate it to the selected language. Don’t forget to clear global cache and browser cache

transmenu1

Let us return to Front-end, select the language that you just translated to check to see if it works or not

transmenu2
Translate Widget:
Admin Dashboard -> Site Manager -> Themes Manager -> Layout Editor.

At Layout Editor, select the page that contains that widget that you want to translate the title

homepage

Click on “Edit” icon of the widget.

homepage1

Click on “Translation” link inside the popup to translate

homepage2

 

Select language that you want to translate into, then enter text and save your changes.

 

homepage3

Clear browser cache and global cache then check again at user side.

homepage4

Translate plugin categories

This section will show you how to translate categories of a plugin. Below is categories of videos plugin

catalog

#Go to the Plugin Category’s Manager.

select a Category you want to translate.

catalog1

Click on “Translation” link to open a popup

catalog2

Select language and enter text that you want to translate.

catalog3

Click save changes and check again at users side

catalog4

catalog5

Translate Profile type and fields

How to translate profile type

Admin panel -> System admin -> Profile types

Click on “Edit” button of the type that you want to translate to open popup. You can translate profile type to other language there.

Screenshot at Dec 30 17-23-38

How to translate profile fields

Admin panel -> System admin -> Profile types -> Select a type -> Select a field

Click on “field name” that you want to translate to open popup. You can translate profile field to other language there.

Screenshot at Dec 30 17-31-51

How to translate options inside a field

Admin panel -> System admin -> Profile types -> Select a type -> Select a field -> Field values

Screenshot at Dec 30 17-34-04

Click on “value name” that you want to translate to open popup. You can translate field value to other language there.

Screenshot at Dec 30 17-35-05

From version MOOSOCIAL 3.1.5+, you can translate or change text directly in language manager by following the below steps
# Admincp -> Site manager > Language Manager

# Click Translate icon (see below screenshot)

Screenshot_1

# Search words you want to translate or change

Screenshot_2

# Select one result from the list and translate or change it to new phrase

Screenshot_3

# Save and clear global cache

How to configure SMTP for email sending

Go to Admin Dashboard >>> Mails

Choose Mail settings tab

mailsettings

 

#1 From name: you can input something for from name

#2 From address: you can input from address

#3 Send mail using build in function or SMTP

#4 server SMTP Host for email

#5 SMTP Username, usually email name

#6 SMTP Password, email password

#7 SMTP Port for email

#8 Email send in queue or send immediately

#9 Choose SSL or TLS for email server

#10 The number email will send each time

Click save to save email setting

the follow picture is example we configure for google email

emailcufigure

How to install new Language

You can download languages pack for mooSocial  for free then follow the below instructions to install them into your mooSocial site.

Extract select plugins languages or core you want to install

Upload app folder to your server

Screenshot at Aug 04 11-09-52

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

How to modify sign up form and add more custom fields

To modify sign up form and add more custom field, we do follow

System Admin -> Profile types to go Profile types manager

Click Add new profile type

addprofile

#1: input profile type name (example: Individual)

#2: Check active to make it visible on sign up form

Click save to add new profile type name

In Profile types manager, click Individual to go Profile Fields Manager

Click Add new field

addfield

 

#1: Name of field (Example : Education)

#2: Field type

#3: Description of field

#4: Required: required to input on sign up form

#5 and 8: To visible on sign up form

#6: Visible on search form

#7: Visible on profile of user.

Click Save Field to create new field

We can add new one or more fields for Individual profile

newfield

If we sign up new user, on sign up form, we can see new field Profile type, in Profile type if we choose Individual, a field Education display, we have to input value for Education field.

signupform