Menu

BS MyJspace - Configuration - Languages

Index

Languages

Pages and language

You can link a page to a language (using language categories). This is sometime requested for a multi-language Website (front-end).

Pre-requisites:

  • The option 'for search' exists for J!1.6+.
  • The BS MyJspace option 'search and association' is taken into account for J!3.0.3+
  • Have your site configured for multi-lingual. Here is an example or here.
  • BS MyJspace >= 2.0.6.

Once, you have the pre-requisite, you can install the BS MyJspace Language pack for the chosen language. Note that for French language included into the BS MyJspace pack you need to install or re-install the BS MyJspace pack after the Joomla language pack.

As default associations are no allowed, you need to set the option ‘language’ = ’for search and association’ to allow multi language usage and association.

You can assign a language to each page using the page administration view. When a user will search for a page the MyJspace search view will show only the categories and pages with the language selected for into Website (including pages with 'all' language).

The module viewmyjspace and the search plugin use the same criteria.

You can associate pages with distinct languages from the same user using the page administration view (front-end and back-end). After that, you can switch between these pages by selecting the language on the website (flags...). This association is working like the regular association for Joomla! components (since J!3.0.0 for content and J!3.0.3 for others).

 

Create your own language pack for BS MyJspace

If the language pack for your own language do not already exists, you can create yourself your own language pack. Do not forget to share it with other users once it's made.

The component

The component com_myjspace, modules and plugin are provided with two languages (fr & en). You can add yours. All the text is in the language files.

First, you need to have the selected language for Joomla for this selected language, already installed.

  • Copy the file /language/en-GB/en-GB.com_myjspace.ini to /language/MYLANGUAGE/MYLANGUAGE.com_myjspace.ini for the Front-end.
  • You can do the same for the admin files (/administrator/language/en-GB/en-GB.com_myjspace.ini, en-GB.com_myjspace.menu.ini and en-GB.com_myjspace.sys.ini) for the back-end.
  • Edit the new file(s) (MYLANGUAGE/MYLANGUAGE.com_myjspace.ini + the others) and translate the items

You can send me back the files you translated to share it with other users, I will create a pack for simple install.

Modules and plugins

Same principle for the modules and plugins than the component.

Files format

All language files need to be saved into the UTF-8 format (UTF-8 without BOM). On Windows, you can use the editor Notepad++.

 

Dates and languages

Since BS MYJspace 2.2.0 the date format is included into the language files.

Key Default (en-GB) comp/mod
COM_MYJSPACE_DATE_FORMAT Y-m-d H:i:s component
COM_MYJSPACE_DATE_FORMAT2 Y-m-d component
COM_MYJSPACE_DATE_CALENDAR Y-m-d H:i:s component
COM_MYJSPACE_DATE_CALENDAR2 %Y-%m-%d %H:%M:%S component
MOD_VIEWMYJSPACE_DATE_FORMAT Y-m-d H:i:s module

Note: for the publish date selector (with the calendar: Keys with _CALENDAR & _CALENDAR2) you may need to keep the en-GB format since the selector can bug for some others format (you need to test dates from the beginning and end of a month, for example).

 


10/23