raptus.multilanguagefields

HomePage: https://github.com/Raptus/raptus.multilanguagefields

Author: Raptus AG

Download: https://pypi.python.org/packages/source/r/raptus.multilanguagefields/raptus.multilanguagefields-1.1b8.zip

        Introduction
============

raptus.multilanguagefields provides Archetypes fields and catalog indexes which 
are able to store multiple languages.

Migrating
---------

Migration of already populated plone sites which where previously not
running raptus.multilanguagefields is done by using the script **migrate.py**
in the **scripts** folder of this package.

::

    migrate -- migrate an existing single language site to a multilingual
               site using raptus.multilanguagefields
    
    Usage: bin/instance run path_to_this_script path_to_the_desired_plone_instance_in_zope [path_to_the_desired_plone_instance_in_zope] ..
    
    Options:
    -h/--help -- print usage message and exit

The script will iterate over all objects in your plone instance and replace
the value of the default language, if non is available, by the one set before
using raptus.multilanguagefields.

Example
```````

Say you have a plone instance with the ID "Plone" in your zope root folder which
has it's content already populated in english and you need another language, say
german, which you would like to provide using raptus.multilanguagefields and the
additional package raptus.multilanguageplone.

Now if you just install raptus.multilanguageplone your already populated english
content will no longer be visible and that is when you have to run this script.

Shut down your zope and make sure you have a backup of your database and your
third-party storages like blob or sql.

Now run the script as followed::

    bin/instance run [path_to_this_script] Plone

This will copy the already populated english content into the default language set
in the portal_languages tool, which in your case should be english. Now start up
your zope and your plone content should be back in place.

Changelog
=========

1.1b8 (2014-02-12)
------------------

- Removed a condition preventing the image field from getting the initial BlobWrapper which
  resulted ultimately in an BadRequest: The id <image_id> is invalid - it is already in use. error


1.1b7 (2014-02-06)
------------------

* use $ instead of deprecated jq


1.1b6 (2013-08-21)
------------------

* Plone 4.3 compatibility.


1.1b5 (2013-07-22)
------------------

* Set correct http response headers for diazo to be happy.
  Besides, do not unparse already parsed json data.
  [kiorky]


1.1b4 (2013-04-15)
------------------

* Be way more defensive when setting and resetting languages on fields
  (Added try/finally clauses accordingly) [skaeser]


1.1b3 (2013-03-21)
------------------

* Fixed bug in redirection


1.1b2 (2013-03-18)
------------------

* Fixed wrong call to index_html into blobfields [jnachtigall]


1.1b1 (2013-02-06)
------------------

* German translations

1.1a7 (2012-09-26)
------------------

* Fixed 'UNAUTHORIZED' error generated by mymemory.translated.net
* Allow widget_macro from a higher order

1.1a6 (2012-05-31)
------------------

* Python 2.4 & Plone 3 compatibility
* Fixed import in migrate.py

1.1a5 (2012-04-17)
------------------

* Restored translation functionality by using the free web service of
  http://mymemory.translated.net
* Added helper javascript file (multilanguage_tiny_mce_init.js) setting
  the text format to text/html and hiding it for multilanguage TinyMCE
  fields

1.1a4 (2012-03-21)
------------------

* Fixed post validation of ATCTFileContent to prevent unhandled CopyError
  when adding a file to a folder where an object with the same ID already exists

1.1a3 (2012-02-13)
------------------

* Added missing fallback check in image traversers

1.1a2 (2012-02-13)
------------------

* Fixed fallback issue for non blob file and image fields

1.1a1 (2012-02-06)
------------------

* Fixed redirection in images __bobo_traverse__

1.0 (2012-01-23)
----------------

* Use Plone 4+ translation files system.
  (Translations now work under Plone 4)
  [thomasdesvenain]

* Plone 4.1 compatibility.
  [thomasdesvenain]

1.0b17 (2011-09-28)
-------------------

* Final fix for the TinyMCE issue

1.0b16 (2011-09-26)
-------------------

* Fixed multilanguage blob fields (