Community Builder Language Package Guide Updated for CB 1.2.3

Similar documents
Joomla! Override Plugin

MATCHDAY September 2014

Academic Calendar for Faculty

Joomla/Mambo Community Builder

Data Tool Platform SQL Development Tools

XCloner Official User Manual

1: 2: : 3.1: 3.2: 4: 5: & CAPTCHA

Trading Calendar - East Capital UCITS Funds

Configuring the JEvents Component

Creating a muli-lingual site

Joomla/Mambo Community Builder

Sterling Web. Localization Guide. Release 9.0. March 2010

Polar Help Desk Installation Guide

International University of Monaco 27/04/ :55 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

International University of Monaco 21/05/ :01 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

Joomla! template Blendvision v 1.0 Customization Manual

4PSA DNS Manager Translator's Manual

Content Management System

FORTIS. User Guide. Fully responsive flexible Magento theme by Infortis. Copyright Infortis. All rights reserved

Localizing dynamic websites created from open source content management systems

iglobe CRM SharePoint App Documentation Version Thursday, January 30, 2014 Support contact iglobe:

Course Syllabus Web Page Design 2 IMED 2315

Localization of Open Source Web Content Management System

Build a Multilingual Website with Joomla! 2.5

Analytics Configuration Reference

Mistral Joomla Template

If you, God forbid, find a bug, let me know and I ll try to fix it as soon as I can, ok?

Shop Manager Manual ConfigBox 3.0 for Magento

Content Management System

User Guide. Making EasyBlog Your Perfect Blogging Tool

StoreGrid Backup Server With MySQL As Backend Database:

Web Page Redirect. Application Note

Metadata Import Plugin User manual

SMSNotify Extension. User Documentation. Automated SMS sender and customer relationship tool. SMSNotify User Documentation 1

USING MAGENTO TRANSLATION TOOLS

Joomla 1.0 Extension Development Training. Learning to program for Joomla

DocumentsCorePack for MS CRM 2011 Implementation Guide

Create your first Newsletter

Configuring Custom Fields in JEvents Club Addon

aspwebcalendar FREE / Quick Start Guide 1

DataLogger Kepware, Inc.

LICENTIA. Nuntius. Magento Marketing Extension REVISION: THURSDAY, JUNE 2, 2016 (V )

Grandstream Networks, Inc.

Sitemap. Component for Joomla! This manual documents version 3.15.x of the Joomla! extension.

ProjectPier v Getting Started Guide

Manual for CKForms component Release 1.3.4

International University of Monaco 11/06/ :27 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

This manual cannot be redistributed without permission from joomla-monster.com

Marketing Software

JOOMLA 2.5 MANUAL WEBSITEDESIGN.CO.ZA

Customer Tips. Xerox Network Scanning HTTP/HTTPS Configuration using Microsoft IIS. for the user. Purpose. Background

SAP Business One Integration with Radley icaras EDI. Mascidon, LLC March, 2011 Dr. Don Maes

MAGENTO Migration Tools

Shipbeat Magento Module. Installation and user guide

Table of Contents... iii. Summary of Changes... v. Introduction Getting Started... 3

PROCESSES LOADER 9.0 SETTING. Requirements and Assumptions: I. Requirements for the batch process:

ABC PR Journal. Everything you need to create a 52-week marketing campaign. How to create your campaigns

Using a Remote SQL Server Best Practices

B-Share Clearing and Settlement Business Guide of China Securities Depository and Clearing Corporation Limited, Shanghai Branch

Top Navigation menu - Tabs. User Guide 1. &

Open Source Content Management System JOOMLA

TABLE OF CONTENTS. Terms of Use

DiskPulse DISK CHANGE MONITOR

Data Access Guide. BusinessObjects 11. Windows and UNIX

Academic Calendar - UNDERGRADUATE. All Other Classes Begin; Late Registration Begins. Last Day to Drop a Class without a W on Transcript;

HELP DESK MANUAL INSTALLATION GUIDE

IMS Pro Electronic Claims Submission. Sending Claims Electronically through XClaims (Ims Pro)

Commander. The World's Leading Software for Label, Barcode, RFID & Card Printing

GpsGate Server. Installation and Administration Guide. Version: 2.2 Rev: 2

Manage Website Template That Using Content Management System Joomla

Bubble Full Page Cache for Magento

Dr.Backup Remote Backup Service. Quick Start User Guide

WebAmoeba Ticket System Documentation

Custom Reporting System User Guide

Content Author's Reference and Cookbook

5.2.3 Thank you message Bounce settings Step 6: Subscribers 6.1. Creating subscriber lists 6.2. Add subscribers Manual add 6.2.

Step 1: Download and install the CudaSign for Salesforce app

iglobe CRM SharePoint App Documentation

Exchange Web Services [EWS] support in The Bat! v7

1 of 10 1/31/2014 4:08 PM

Jet Data Manager 2012 User Guide

Wings 2013 Accounting Lite Manual

Drupal CMS for marketing sites

Metadata Management CMS Extension. Version 0.90

SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

Magento Dhru Fusion Integration Extension. IMEI Profile Configuration

Canonical. Plugin for Joomla! This manual documents version 3.11.x of the Joomla! extension.

International University of Monaco 12/04/ :50 - Page 1. Monday 30/01 Tuesday 31/01 Wednesday 01/02 Thursday 02/02 Friday 03/02 Saturday 04/02

USING THE INTRO (SPLASH) PAGE

Shop Manager Manual ConfigBox 2.6 for Joomla

Teradata SQL Assistant Version 13.0 (.Net) Enhancements and Differences. Mike Dempsey

How to translate VisualPlace

Building job sites with Joomla!

Academic Calendar

StreamServe Persuasion SP5 Document Broker Plus

ewebextra OfficeMate Integration User s Guide

Quiz! Database Indexes. Index. Quiz! Disc and main memory. Quiz! How costly is this operation (naive solution)?

opencrx Language Localization Guide

How To Create A Website Template On Sitefinity

Transcription:

Community Builder Language Package Guide Updated for CB 1.2.3 Introduction This document has been created to assist people in creating CB Language plugins. Overview CB 1.2.3 can speak different languages with the assistance of CB Language plugins. A CB Language plugin is a special kind of CB plugin. Your CB 1.2.3 distribution package contains a built-in default language plugin with English language strings. CB queries the CMS system regarding which is the active language. In Joomla 1.5.X, the website administrator has installed one or more Language extensions (Joomla 1.5.X: ExtensionsLanguage Manager) and has selected one as the default language. In Joomla 1.5.X, users are permitted to select there preferred language assuming of course that the website administrator has installed additional Joomla 1.5.X languages. CB 1.2.3 also supports this user-specific language personalization allowing users to select their language preference via a drop-down language select field when editing their CB profile. JoomFish component can also be used for front-end language changing and CB will support this also. To assist translators in the CB Language plugin creation process, the CB Team has created an english_cb123_utf8.zip package as a CB 1.2.3 English Language plugin. This package when decompressed will reveal an english folder with the following contents: english (folder) o english.xml Translation Process The process is relatively easy and can be summarized in the following 12 steps: 1. setting up your language folder template based on English package 2. finding what language name to use 3. renaming folder 4. renaming english.xml file 5. renaming the english.php file 6. editing renamed xml file Page 1 / 7

7. editing-translating renamed php file 8. editing-translating calendar-local.js 9. editing-translating cbteamplugins_language.php 10. editing-translating admin_language.php 11. packaging 12. testing General Notes: Most of the language plugins will most likely be used on Joomla 1.5.X installations. This means that they must be utf-8 ready. All editing should be performed with an editor that is capable of encoding utf-8 characters and all basis files should be opened and saved using the "UTF-8 without BOM characters" character-set. Windows notepad++ free editor supports this. Also please take care of the following cases: in a 'single-quoted string' using a ' should be like this: 'today, it\'s nice outside' for \ use \\ in "a double-quoted string", using a " should be \" newlines \n and returns \r can be used only in "double-quoted strings" single-quoted strings 'single' and "double-quoted" are equivalent in PHP, however, singlequoted are faster and use less memory since they don't allow for PHP variables. Thus if you do not need to use newlines and returns, we recommend single-quoting. in double-quoted strings $ should also be escaped with \$ strings like %s is transformed by CB to a variable string so %6$s means the 6th variable string of that string; so by translating e.g.: 'All %s of user %s' into 'User %2$s \'s all %1$s' a string like "All books of user Joe" would become "User Joe 's all books" that might be useful for languages reversing order of sentences %s means string, %d decimal more information can be found here: http://us.php.net/manual/en/function.sprintf.php www.php.net/sprintf Generating a CB Language plugin for another character-set, as e.g. the ISO-8859-1 charset used in most Joomla 1.0.X CMS or a Mambo CMS is easy: Just open the UTF-8 file language.php and in UTF-8 mode, and save it using the ISO-8859-1 (Western Latin-1) characters-set. The XML file, the calendar-local.js file and the cbteamplugins_language.php must remain utf-8 encoded and always saved without BOM characters We recommend generating and publishing both versions (UTF-8 and ISO) of your CB language plugin. Step 1: Setting up your language folder template Unpack the english_cb123_utf8.zip package to reveal the English folder with the contents outlined in the Overview section. This is your starting point you will be modifying this setup to create your language package. english (folder) Page 2 / 7

o english.xml Step 2: Finding what language name to use In order for CB to be able to trigger off of the Joomla active language setting, we must make sure that the proper language name is selected. To find the appropriate name we need to locate the Joomla xml language file located in the Joomla Language folder (located in your Joomla root folder on your website). For default (English-GB) Joomla 1.5.X installations you should be able to locate a folder named en-gb in your language folder off your website root location. If you have installed an extra Joomla language pack, you should see an additional folder (e.g., el-gr if Joomla Greek Language pack is installed). Your Joomla language folder (e.g., el-gr), will contain many.ini files but only two.xml files. You need to locate the one that matches your language folder name (e.g., el-gr.xml) and open it with your text editor and locate the <backwardlang>xxxxx </backwardlang> xml tag line. The content XXXXX of this tag is the language name you must use throughout your CB Language plugin (e.g., greek). Following this process you should be able to easily locate the proper language name you need to use. Test this process out for the en-gb installed Joomla language you should be able to identify that the CB language name is english. Step 3: Rename your template folder Now that we have locate the language name we should be using we should rename the english folder we created in step 1 to our language name (e.g., greek). So, if we are constructing a Greek CB Language plugin our template area should now look like: greek (folder) o english.xml Step 4: Renaming your xml file Page 3 / 7

Rename your template english.xml file using your language name. So, if we are constructing a Greek CB Language plugin our template area should now look like: greek (folder) o greek.xml Step 5: Renaming your php file Rename your template english.php file using your language name. So, if we are constructing a Greek CB Language plugin our template area should now look like: greek (folder) o greek.xml o greek.php Step 6: Editing your language.xml file Open your renamed language xml file (see step 4) with your preferred text editor and change all english words to your language name. All green highlighted words must be changed and you can also optionally edit all yellow highlighted text. <?xml version="1.0" encoding="utf-8"?> <cbinstall version="1.0" type="plugin" group="language"> <name>english</name> <author>mambojoe and Beat</author> <creationdate>2009-01-24</creationdate> <copyright>(c) 2005-2009 joomlapolis.com</copyright> <license>http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2</license> <authoremail>beat@joomlapolis.com</authoremail> Page 4 / 7

<authorurl>www.joomlapolis.com</authorurl> <version>1.2</version> <description>provides the English language for Community Builder core functions.</description> <files> <filename plugin="english">english.php</filename> <filename>index.html</filename> <filename>admin_language.php</filename> <filename>cbteamplugins_language.php</filename> <filename>calendar-locals.js</filename> <filename>images/index.html</filename> <filename>images/nophoto.jpg</filename> <filename>images/pendphoto.jpg</filename> <filename>images/tnnophoto.jpg</filename> <filename>images/tnpendphoto.jpg</filename> </files> <params> </params> <database> </database> </cbinstall> it. This file should be saved as utf-8 encoded without BOM characters. Step 7: Editing/translating our language.php file Open your renamed language.php file (e.g., greek.php - see step 5) with your preferred text editor and change all DEFINE strings to your language. All green highlighted words must be changed. All DEFINE strings must be translated to have a complete translation. Be careful to edit only the English strings and take care to leave the surround quotes intact. //Field Labels DEFINE('_UE_HITS','Hits'); DEFINE('_UE_USERNAME','Username'); DEFINE('_UE_Address','Address'); DEFINE('_UE_City','City'); DEFINE('_UE_State','State'); DEFINE('_UE_PHONE','Phone #'); it. If you are building this CB plugin for Joomla 1.5.X sites, then you should encode this file as utf-8 encoded without BOM characters. Step 8: Editing/translating the calendar-local.js file Open your calendar-local.js file with your preferred text editor and translate all the calendar language strings to your language. All green highlighted words must be changed. All double quoted strings Page 5 / 7

must be translated to have a complete translation. Be careful to edit only the English strings and take care to leave the surround double quotes intact. // full day names Calendar._DN = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"); it. This file should be saved as utf-8 encoding without BOM characters. Step 9: Editing-translating the cbteamplugins_language.php Open your cbteamplugins_language.php file with your preferred text editor and translate all the language strings to your language. All green highlighted words must be changed. Only the right set of words must be translated. Be careful to edit only the English part of the strings (leave any %s codes intact) and take care to leave the surround single quotes intact. Once again be careful this file is different than the previous Step 7 file. As you see it appears that the same thing is duplicated but only the second instance needs translation. // 1.2 Stable: // ProfileBook plugin: (new method: UTF8 encoding here): CBTxt::addStrings( array( 'Profile Book' => 'Profile Book', 'Name' => 'Name', 'Entry' => 'Entry', 'Profile Book Description' => 'Profile Book Description', 'Created On: %s' => 'Created On: %s', it. This file should be saved as utf-8 encoding without BOM characters. Step 10: Editing-translating the admin_language.php Open your admin_language.php file with your preferred text editor and translate all the language strings to your language. All green highlighted words must be changed. Only the right set of words Page 6 / 7

must be translated. Be careful to edit only the English part of the strings (leave any %s codes intact) and take care to leave the surrounding single quotes intact. CBTxt::addStrings( array( // XML files: // cb.authortab.xml 'Provides an User Tab that shows all articles written by the user.' => 'Provides an User Tab that shows all articles written by the user.', // cb.connections.xml // some also used in other files (php and xml) 'Provides CB Core Connections functionality' => 'Provides CB Core Connections functionality', 'Display Settings' => 'Display Settings', 'User Profile Status :' => 'User Profile Status :', 'see Field: Connections: Parameters' => 'see Field: Connections: Parameters', 'Connections Status Settings :' => 'Connections Status Settings :', Step 11: Packaging You are now finished and you can package your plugin for testing. Just compress your language folder (e.g., greek) to a compressed file named language_cb123_encoding.zip (example: greek_cb123_utf8.zip or greek_cb123_iso.zip). Step 12: Testing Try and install your CB Language Plugin package (see step 11) using the CB Plugin management backend. See that your language does in fact translate CB based on the active Joomla language. Your language package is complete! Please upload to our Joomlapolis Directory language category area for others to use. Also consider joining the CB Language WorkGroup to officially support your language translation from within contact nant on Joomlapolis to join! Page 7 / 7