NP_MultiLanguage.php

This plugin allows a site to be set up to support multiple language translations. NP_MultiLanguage relies on the NP_Text plugin to translate in skins and the Item Body part of templates. NP_MultiLanguage allows for translations of items, categories, and templates. It also provides two means for visitors to switch between languages.

Beware that there is still considerable work involved to make a multi-language site, but this plugin provides the tools.

General Plugin info
Author: Frank Truscott
Current Version: 1.03
Download: NP_MultiLanguage.zip 261 files, 156KB
Forum Thread: Plugin Announce

Requirements

  • Nucleus CMS v3.33 or higher
  • NP_Text v0.53 or higher (provided with download of this plugin)
  • A skin that is internationalized using NP_Text (you may need to do this yourself)
  • As of Nucleus v3.33, some modifications to a couple core files. This requirement will go away with a future version of Nucleus. (See Installation for details).

Installation

  • The NP_MultiLanguage plugin can be downloaded from here
  • Download and extract the zip file. Copy the NP_MultiLanguage.php and NP_Text.php files and the multilanguage directory to the nucleus/plugins directory.
  • For Nucleus version of 3.33, replace nucleus/libs/BLOG.php with the nucleus/plugins/multilanguage/BLOG.php file supplied with the plugin. It is a good idea to backup your file before making the change. This will add a needed plugin API event to allow us access to translate categories in the categorylists. These changes will be included in version 3.40 of Nucleus CMS, and thus should not be made to installations of version 3.40 or higher.
  • For Nucleus version of 3.33, replace nucleus/libs/TEMPLATE.php with the nucleus/plugins/multilanguage/TEMPLATE.php file supplied with the plugin. It is a good idea to backup your file before making the change. This will add a needed plugin API event to allow us access to use different templates for different languages. These changes will be included in version 3.40 of Nucleus CMS, and thus should not be made to installations of version 3.40 or higher.
  • Use the Nucleus Admin GUI to register the NP_MultiLanguage and NP_Text plugins into Nucleus.</p>
  • You will need to edit and save the plugin options before using the plugin. The options are described below.
  • You will need to also visit the admin page for NP_MultiLanguage to define your languages before doing most the other stuff. See the Defining Languages section in the help file accompanying the plugin.

Upgrading

1.01 to 1.03: Replace existing files with new files. Then on Plugins page of Nucleus admin area, click the “Update Subscriptions” button.

Plugin Options

There are two options that control the operation of the MultiLanguage plugin. These options are set from the edit options link in the Plugin Admin area.

  1. Show Admin Area in quick menu : Whether the MultiLanguage admin area should be shown in the Quick Menu area. yes or no. (yes)
  2. Delete NP_MultiLanguage data tables on uninstall? : Whether the database table should be deleted on an uninstall. This should be set to yes only when permanently removing NP_MultiLanguage. yes or no. (no)

Plugin Installation and Usage

There is a comprehensive help file delivered with this plugin that is kept up-to-date. You can view it from the Plugins Management page of the Nucleus admin page or from the NP_MultiLanguage admin page.

I will not try to maintain the same information here.

Tips and Tricks

Wishlist

Bugs, Support, Wishlist

For additional support and/or bug reports please use this forum thread

History

  • Version 1.03, released 20 January 2009
    • Fix to permit viewing of nucleus core forms (i.e. commentform and loginform) in the visitor-selected language. Also, will properly display output of internationalized plugins in the visitor language (if correct language files are present).
    • Add event to allow modified version of NP_TinyMCE to be used for item translations forms (see MultiLanguage_PluginPack available at plugin download link).
    • Add plugin language files for spanish and galego. (Thanks inter981).
  • Version 1.01, released 02 October 2008
    • Fix TableList so all tables backed up by nucleus backup procedure.
  • Version 1.0, released 02 October 2008
    • Initial Version.
multilanguage.txt · Last modified: 2009/01/21 00:33 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki