Difference between revisions of "Translating ccPublisher"

From Creative Commons
Jump to: navigation, search
 
m
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
[[Category:CcPublisher]]
 
[[Category:CcPublisher]]
 
[[Category:Developer]]
 
[[Category:Developer]]
 +
[[Category:i18n]]
  
{{template:incomplete}}
+
The focus of the ccPublisher 2.2 development cycle was on providing internationalization (i18n) support.  This document provides an overview of the available translations; see [[Translate|this page]] for information on creating new translations.
  
ccPublisher 2.2 (currently under development) will focus on providing internationalization (i18n) support.  This document is a work in progress that describes the translation process which will be used once ccPublisher 2.2 release candidates are available.
+
= Screenshots =
  
Translations for ccPublisher are stored in gettext message catalogsMessage catalogs are text files which associate translated strings with identifiers used by the application. Each string to be translated is referred to as a "message".
+
[[Image:ccPublisher_Choose_License_hr.png|frame|ccPublisher license chooser using the [http://translate.creativecommons.org/hr_HR/ccpublisher/ Croation translation].]]  
 +
[[Image:ccPublisher_Choose_License_zh.png|frame|[http://www.immigrationsolicitors-cj.co.uk/ Immigration solicitors uk] - [http://www.nptquickhousesale.co.uk Sell my house quickly] - [http://www.home-outlet.co.uk/bedroom/ Cheap Bedroom Furniture] [http://translate.creativecommons.org/zh_TW/ccpublisher/ Chinese (Taiwan) translation].]]
  
== Adding A Translation ==
+
= Supported Languages =
  
When translating ccPublisher there are two files which must be copied and editted for the core application.  [[Extending ccPublisher|Extensions]] may have their own message catalogs which need translating (see [[Translating Extensions]] for details on internationalizing ccPublisher extensions). The translation resources are located in the <code>resources/locale</code> subdirectory for a [[Developing ccPublisher 2|development sandbox]].  Use the following instructions to create a new translation for ccPublisher; these instructions are for translating ccPublisher to the fictional "ya" locale and assume a Linux development environment; Mac OS X should be similar.
+
The latest release of [[CcPublisher 2 2|ccPublisher 2.2]] includes support for the following languages:
  
* Create a locale subdirectory for your new translation
+
* English
  $ cd resources/locale
+
* Chinese (Taiwan)
  $ mkdir ya
+
* Croation
  $ mkdir ya/LC_MESSAGES
+
* Dutch
* Copy the template files into the new directory
+
* Polish
  $ cp ccpublisher.pot ya/ccpublisher.po
+
* Spanish
  $ cp p6.pot ya/p6.pot
 
* Edit the new files with the translated content.  Two areas need editted: the header information and the messages.
 
** The header information should be updated with the translator's contact information, email address and the character set used.  The character set should usually be <code>utf-8</code>.
 
** Each message is defined by two lines; the translated content goes between the quotes on the <code>msgstr</code> line.  The <code>msgid</code> line '''must not be changed'''.
 
  ...
 
  msgid "OK"
 
  msgstr ""
 
  ...
 
* Compile the message catalogs:
 
  $ cd ya
 
  $ msgfmt -o LC_MESSAGES/ccpublisher.mo ccpublisher.po
 
  $ msgfmt -o LC_MESSAGES/p6.mo p6.po
 
* Run ccPublisher with the <code>--locale</code> parameter; alternately if working on your default locale, omit the parameter and ccPublisher will use the operating system's default locale information.
 
  Change to the sandbox root directory
 
  $ cd ../../..
 
  $ python ccp.py --locale ya
 
  
== Supported Languages ==
+
Translators are working on the following languages; those wishing to assist should sign up on the [http://lists.berlios.de/mailman/listinfo/cctools-i18n cctools-i18n] mailing list.
  
ccPublisher includes support for the following languages:
+
* Basque
 
+
* Galician
* English
+
* German

Latest revision as of 19:27, 18 July 2012


The focus of the ccPublisher 2.2 development cycle was on providing internationalization (i18n) support. This document provides an overview of the available translations; see this page for information on creating new translations.

Screenshots

ccPublisher license chooser using the Croation translation.

Supported Languages

The latest release of ccPublisher 2.2 includes support for the following languages:

  • English
  • Chinese (Taiwan)
  • Croation
  • Dutch
  • Polish
  • Spanish

Translators are working on the following languages; those wishing to assist should sign up on the cctools-i18n mailing list.

  • Basque
  • Galician
  • German