(Answer) (Category) Faq-O-Matic Faq-O-Matic : (Category) Administrators' Guide : (Category) In Development :
Changing the appearance of FOM with HTML and giving the hability to use other codes in the future like XML
(1) I need your help, i don't know why it does nothing.
- I'm just discovering perl.
And more you can correct my english.
 
(2) HOW IT WORKS

It's like for translation in other languages, 
if a string (here, piece of HTML code) must be translated , 
it translate it.

It began with reading the Appearance.pm file and for each
getcode(); or getcoda(); 
it goes to the translation file (if it must used) :
'Code_zz.pm'. (in /FAQ/OMatic/code)

see http://members.xoom.fr/base/fom/html/code/Code_zz.pm

In this file, if the string found between '(' ')' of 
getcode or getcoda is found found , 
it translate it with the string following.
(see in the file : msgd and msgstr).

(3) HOW INSTALL IT

In the cgi-bin/fom-meta/config file
i've added a new variable called $codage = 'zz'.
between $cgiURL and $compactEditCmds

In the perl directory /FAQ/OMatic

http://members.xoom.fr/base/fom/html/I18C.pm
http://members.xoom.fr/base/fom/html/code/Code_zz.pm

http://members.xoom.fr/base/fom/html/Appearance.pm
http://members.xoom.fr/base/fom/html/appearanceForm.pm 

Not mandatory :
http://members.xoom.fr/base/fom/html/install.pm


Thanks in advance for your help.
Purpose : Speedup FOM, changing the FOM code.
###  
###  Avoid the gettext(a) calls.
###            getcode(a)
###  Avoid the use of Langage_.pm file.
###
###  Could be used to test Langage_XX.pm files.

###TODO: fix for too large text (with buffers ?)
###TODO: get the call to gettext function running.
###TODO: Removing "use FAQ::OMatic::I18N;"
###TODO: gettext($item- whatAmI()) - Already done with gettexta().
use strict;

http://members.xoom.fr/base/fom/html/code/Script_FastI18.pm
[Append to This Answer]
Previous: (Category) Translations and text interface
Next: (Answer) Formulars
This document is: http://www.jonh.net/cgi-bin/faqomatic/fom?file=542
[Search] [Appearance]
This is a Faq-O-Matic 2.718d.
Hosted by SourceForge Logo and jonh.net.