

Generate the translations for all texts that are used in the templates of the running service these are all the words and sentences that people will find when running the distributed CDPedia file.
#Cdpedia descargar code#
Second_language: the two-letters code for the default language that will be used when translating all texts so if a particular text is not translated to your new language, the correspondent text from this "second language" will be used (if not specified, the second language will be English). Python_docs: the URL of the tarball of Python documentation in HTML format desired for the language. Include: the list of Wikipedia pages that are mandatory for that language (normally these are pointed to from the main template itself, common to all the "content pages" shown. Portal_index: the Wikipedia page that will be the first page shown when CDPedia is started. Languages.yaml: again create the entry for your language, with the following config: Image_reduction: four values (M, N, P, and Q, adding 100) that determine how the images included in the pages will be treated after selecting the best pages to include in the CDPedia, the process will grab the images for those pages, and M% of the total of those images will be included at 100% size, N% will be included at 75% size, P% will be included at 50% size, and Q% will NOT be included note this also impacts heavily in the final size of the CDPedia result. Page_limit: how many Wikipedia pages will be included in CDPedia (these will be the top N most important pages from Wikipedia for the language) note that this is the main factor that impacts in the final size of the CDPedia image.
#Cdpedia descargar windows#
Windows: True or False, indicating if Windows support needs to be included in CDPedia. tar.xz file, aimed to be distributed in pendrives or similar, or iso, aimed to be burned into CDs or DVDs. Type: the type of file that will hold the CDPedia: tarball to create a. Imagtypes.yaml: here you need to create a new entry for the language you're creating, and the different CDPedia images that you could produce in that language.

Let's see these in detail (you can see current files for real life examples): So, to add a new language you need to take care of different things: language configuration ( imagtypes.yaml and languages.yaml), service texts for the running CDPedia, and project web page for the public. We encourage you to submit a PR with those structures for the new language so they are available for everybody else, thanks! You can add the proper structures for another language of your preference, and generate the CDPedia for that language. cdpetron.py /opt/somedir es -test-mode -extra-pages=/tmp/extra.txt -page-limit=50ĬDpedia is multilanguage, so you can generate it in Spanish, Portuguese, German, or whatever, with the only condition than the there is a Wikipedia online for that languageĬurrently in the project everything is setup for the following languages:
