This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
cc-archive/metadata-pofile-conversion
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project contains scripts to convert variables in Creative Commons' website .po files to a more general format. Creative Commons' website is translated using gettext .po files. For historical reasons these include variables in Python format. This format is not supported in other programming languages. bin/depythonize converts a Python-style "%(var)s" into a more general "%1". It is careful to maintain the correct order for variables in translated strings. The results are suitable for usage in php-smarty for example. make.sh copies over those strings with Python-style variables in them (which we assume are useful for License Chooser-style activities) and converts them. The results are placed in po/ . To use this code, check it out next to a checkout of https://github.com/creativecommons/i18n then run make.sh from within this directory.
About
Scripts to extract the translations from Creative Commons' website for the License Chooser and convert them from Python to a more general message format.