Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Multi-language support for the Reviews module
  • Posted: 30.05.2003, 23:12
     
    arefsum
    rank:
    Professional Professional
    registered:
     April 2003
    Status:
    offline
    last visit:
    13.12.06
    Posts:
    961
    I am trying to build a Multi-language site icon_lol - and so far it is not too difficult. There are some modules that do cause some small problems though, and one of them is the Reviews module. Most constants are defined and can be translated in the appropriate language files, but there are two which are not; namely the "Reviews page title" and "Reviews page description". The two of them are stored in the nuke_reviews_main table which is defined as:

    Code

    CREATE TABLE ".$prefix."_reviews_main (
      pn_title varchar(100) default null,
      pn_description text
    )";

    This makes it difficult to add national language support for those two fields. I suggest that one add another column to the table indication language. Something like:

    Code

    CREATE TABLE ".$prefix."_reviews_main (
      pn_title varchar(100) default null,
      pn_description text,
      pn_language varchar(30) NOT null default ''
    )";

    Of course the Admin / config form and any table SELECT statements needs to be changed as well, but it is not a major change. Alternatively one can change them to use file based constants.

    Alf

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula