GithubHelp home page GithubHelp logo

svn-i18n's Introduction

===========================
Creative Commons i18n Tools
===========================

:Author: Nathan R. Yergler <[email protected]>
:Organization: `Creative Commons <http://creativecommons.org>`_
:Copyright: 
   2007, Nathan R. Yergler, Creative Commons; 
   licensed to the public under the `MIT license 
   <http://opensource.org/licenses/mit-license.php>`_.


Package Contents
================

This package provides the localization dataset for the Creative Commons
website, along with a set of tools to manage translations.  For historical
reasons the CC site templates use abstract string identifiers (ie, "deed.by")
instead of the customary English text.  Many tools are available for gettext
catalogs which assume that the English text is the identifier; the tools
included convert between the different formats.

In addition to the tools, the dataset is maintained in two different formats.
The ``po`` directory contains the gettext .po files in the traditional format,
with English text as the string identifiers.  The ``i18n`` directory contains
the gettext .po files in the Creative Commons format, with abstract string
identifiers.


Installation
============

The toolset uses `zc.buildout <http://python.org/pypi/zc.buildout>`_ to 
assemble the software and its dependencies.  Buildout will download and install
any dependencies needed and install them in the local checkout directory.
To prepare the tools for use, first ``bootstrap``, then ``buildout`` the
software.  For example ::

  $ python2.4 bootstrap/bootstrap.py
  $ ./bin/buildout

After the buildout process completes the tools will be available in a ``bin``
sub-directory.  Note that the buildout process "bakes in" explicit paths to 
any downloaded dependencies; if you move your installation to another location
on the filesystem, you must repeat the buildout process.


Managing Translations
=====================

Translations are managed through the ``master`` .po file and a set of tools.

To add or change translations, edit ``master/cc_org.po``.  After editing
translations, run the sync script ::

  $ ./bin/sync

This script will update all files in the ``po`` directory with changes to the
strings, as well as ``master/cc_org.po.bak.``  The .bak file is used to track
changes in the English text of strings.  For this reason it is important that
the master files are committed along with the updated ``.po`` files.

Deploying Updated Translations
------------------------------

In order to deploy updated translations, the "normal" .po files need to be
converted to CC style files.  This is handled by the po2cc script ::

  $ ./bin/po2cc

It is customary for Creative Commons software to use the ``trunk`` as the
i18n svn:external for development and staging sites, and ``branches/production``
as the svn:external for production deployments.  Syncronizing the branch is
typically handled using `svnmerge 
<http://www.orcaware.com/svn/wiki/Svnmerge.py>`_.

svn-i18n's People

Contributors

nyergler avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.