Changeset 47126

Show
Ignore:
Timestamp:
07/17/06 15:20:34 (2 years ago)
Author:
madarche
Message:

- Fixed #1698: Missing instructions in howto-translate_cps.txt, when using

CPS >= 3.4 (Patch kindly provided by Santi Camps).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSI18n/trunk/CHANGES

    r45720 r47126  
    88~~~~~~~~~~ 
    99- Added the needed doc to make the `make_pot` and `update_pos` scripts work. 
     10- Fixed #1698: Missing instructions in howto-translate_cps.txt, when using 
     11  CPS >= 3.4 (Patch kindly provided by Santi Camps). 
    1012New internal features: 
    1113~~~~~~~~~~~~~~~~~~~~~~ 
  • CPS3/products/CPSI18n/trunk/doc/howto-translate_cps.txt

    r45720 r47126  
    8383 
    8484Then add your language to the language vocabulary defined in 
    85 ``CPSDocument/skins/cps_document/getDocumentVocabularies.py``. 
     85``CPSDocument/skins/cps_document/getDocumentVocabularies.py`` if 
     86you use CPS < 3.4.  For CPS >= 3.4, do the same in 
     87''CPSDefault/profiles/default/vocabularies/language_voc.xml''. 
    8688There are three keys to add: the first one is the i18n label, the 
    8789same that you used to name your po file; the second one is how you 
     
    9294 
    9395If you use CPS < 3.4, you will also need to modify the file 
    94 ``CPSDefault/zmi/manage_addCPSSiteForm.dtml``. There's a Languages 
     96``CPSDefault/zmi/manage_addCPSSiteForm.dtml``. If you use CPS >= 3.4, 
     97then do the same in ``CPSDefault/factory.py``.  There's a Languages 
    9598box which contains a list of two element tuples. Add a new tuple 
    9699for your language. The first element will be the i18n label and 
     
    109112Updating the translations from the translation files can be done through the 
    110113`portal_setup` tool (located at the root of your CPS instance in the `ZMI`) by 
    111 importing the needed steps from the `Import` tab. 
     114importing the needed steps from the `Import` tab, but before that you need to add 
     115your language code to the `available_languages` property of your CPS site  
     116(`Property` tab of your CPS instance in the `ZMI`). 
    112117 
    113118If the translations you are doing only affect the CPSDefault, CPSSchemas,