Results 1 to 4 of 4

Thread: How about simple text files for languages?

  1. #1
    sooskriszta is offline Registered User
    Join Date
    Nov 2009
    Posts
    24

    Default How about simple text files for languages?

    Folks,

    I understand that the mo/po model is a popular one, but have you considered using a simple text file for languages the way opencart, phplist etc do? It makes on-the-fly tweaks possible for the business owners, an thus increases utility of the software (inexu).

    Thoughts?
    Csillamvilag.com
    Bodypainting, Facepainting, Glitter, Henna

  2. #2
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    I also think it is complicated for many user as well.
    I will find solution for future release.
    www.nicecoder.com
    www.dodyrw.com

  3. #3
    sooskriszta is offline Registered User
    Join Date
    Nov 2009
    Posts
    24

    Thumbs up

    Brilliant!

    Thanks, Dody!
    Csillamvilag.com
    Bodypainting, Facepainting, Glitter, Henna

  4. #4
    sooskriszta is offline Registered User
    Join Date
    Nov 2009
    Posts
    24

    Default

    OpenCart Community • View topic - OpenCart v1.x Framework Explanation

    Opencart Framework explanation (I've marked the important bits as bold):
    OpenCart 1.x uses an MVC(+L) style framework. The +L isn't part of the framework persay, but it is important to understand the localization and how text for different languages is used:
    First off, OpenCart's root directory looks something like this:
    catalog - the catalog directory path stores all the code on the front end of your site
    admin - the admin directory path is all the code on the front end of your site. This is completely separate from the catalog area and can even be stored on a different host if you have a high-security persona.
    image - the image directory path is where all the product images are stored
    download - the download directory path is where all the downloads are stored
    system - the system path has all the common libraries and engine code. Both admin and catalog use this folder, so if storing admin on another server, you will also need to copy the system folder there.

    In the catalog and admin directories, a common tree based on the MVC(+L) architecture is formed:
    Model - Database layer - All calls to the database are done here, referenced from the controller
    View - Template display - This is where the HTML and designing is done
    Controller - Main controlling code base - This is where the functional code logic is processed
    Language - Localization/Language - This is where you set which constants translate to text for things like heading titles, static links and text, etc.

    So for example, for the product page on the frontend, there are 4 main files:
    M: \catalog\model\catalog\product.php
    V: \catalog\view\theme\default\template\product\produ ct.tpl
    C: \catalog\controller\product\product.php
    L: \catalog\language\english\product\product.php

    Similarly, on the admin side, to set those fields, there are 4 main files as well:
    M: \admin\model\catalog\product.php
    V: \admin\view\template\catalog\product_form.tpl
    C: \admin\controller\catalog\product.php
    L: \admin\language\english\catalog\product.php
    Csillamvilag.com
    Bodypainting, Facepainting, Glitter, Henna

Similar Threads

  1. Change languages
    By medbena in forum INDEXU DELUXE v1.x
    Replies: 5
    Last Post: 05-05-2009, 03:08 AM
  2. About Languages
    By Voyageur in forum Language Translation
    Replies: 1
    Last Post: 06-30-2008, 10:23 PM
  3. Multiple languages
    By arbitrar in forum Pre-Sales Questions
    Replies: 1
    Last Post: 11-24-2007, 07:51 PM
  4. Kosmos - languages available???
    By Veg in forum Templates
    Replies: 11
    Last Post: 10-25-2007, 04:03 PM
  5. Catagory on other languages
    By barnkin in forum v5.x
    Replies: 2
    Last Post: 05-30-2004, 08:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •