ALL COVERED TOPICS

NoSQL Benchmarks NoSQL use cases NoSQL Videos NoSQL Hybrid Solutions NoSQL Presentations Big Data Hadoop MapReduce Pig Hive Flume Oozie Sqoop HDFS ZooKeeper Cascading Cascalog BigTable Cassandra HBase Hypertable Couchbase CouchDB MongoDB OrientDB RavenDB Jackrabbit Terrastore Amazon DynamoDB Redis Riak Project Voldemort Tokyo Cabinet Kyoto Cabinet memcached Amazon SimpleDB Datomic MemcacheDB M/DB GT.M Amazon Dynamo Dynomite Mnesia Yahoo! PNUTS/Sherpa Neo4j InfoGrid Sones GraphDB InfiniteGraph AllegroGraph MarkLogic Clustrix CouchDB Case Studies MongoDB Case Studies NoSQL at Adobe NoSQL at Facebook NoSQL at Twitter

NAVIGATE MAIN CATEGORIES

Close

Internationalization with MongoDB and MongoKit

An example on how to store internationalized data with MongoDB and MongoKit:

>> raw_blog_post

{u'body': [{u'lang': u'fr', u'value': u'Comment allez-vous ?'},
           {u'lang': u'en', u'value': u'How are you ?'}],
 u'_id': u'bp1', 
 u'author': u'me', 
 u'title': [{u'lang': u'fr', u'value': u'Salut'}, 
            {u'lang': u'en', u'value': u'Hello'}]
}

I’ve been using a very similar solution for storing InfoQ content translations in JCR/Jackrabbit.

@namlook

via: http://bytebucket.org/namlook/mongokit/wiki/html/i18n.html