This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
Project Description

Introduction

This addon is an archetypes multilingual keyword widget for Plone.

How to use

As any widget for Archetypes:

from Products.Archetypes.atapi
from archetypes.linguakeywordwidget.widget import LinguaKeywordWidget
atapi.Schema((
  atapi.LinesField('subject',
     multiValued=1,
     accessor="Subject",
      widget=LinguaKeywordWidget()),
))

How it works

Keywords are stored in catalog but prefixes with language code before write and unprefixed before display. It means if you have widget / viewlet /view that access to data you must first remove language that way:

keywords = context.Subject()
linguakeywords = []
language = context.Language()
for keyword in value:
    if keyword.startswith('%s-' % language):
        linguakeywords.append(keyword[len(language) + 1:])
    else:
        linguakeywords.append(keyword)
return linguakeywords

redomino.keywordalias

keywordalias achieve same goal in a different way. With keyword alias your keywords are translated in backoffice. With linguakeywords you have just different keywords.

Credits

People

Changelog

1.1 (2013-01-16)

  • Add a workaround to make collectKeyword script support field added with schemaextender.
  • Rename the collectKeyword script to getLinguaKeywords to not conflict existings instance
  • Add tests

1.0 (2012-11-02)

  • Fix issue when no keyword exists and no one is added by the user

1.0a3 (2012-07-10)

  • Fix issue on collectKeywords

1.0a2 (2012-05-22)

  • remove span log in edit mode

1.0a1 (2012-05-22)

  • Initial release
Release History

Release History

1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
archetypes.linguakeywordwidget-1.1.zip (30.3 kB) Copy SHA256 Checksum SHA256 Source Jan 16, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting