Warning, /wikitolearn/wikitolearn-translation/README.md is written in an unsupported language. File is not indexed.

0001 # TemplateMessages
0002 
0003 To generate, update, create the files to be exported, you simply need to:
0004 ```
0005 ./generate_pot.sh
0006 ```
0007 ## Translators!
0008 
0009 This repository is experimental. Before translating anything, please ask on #translations if the file is ready and really not done.
0010 
0011 
0012 ## If you need to add a new language
0013 
0014 Add your language to `$LANG` in `generate_pot.sh`.
0015 
0016 # Writing the guide
0017 
0018 To write the guide, have a look at the folder `guide`. You can edit files in `guide/en`
0019 and add the chapter names in `en.ini`. The `ini` file has the following structure:
0020 
0021 ```
0022 [messages]
0023 filename=Readable name of the chapter
0024 ```
0025 To insert links, use the following syntax anywhere in your file: `<ref:filename>`
0026 
0027 The compiled files can then be uploaded to mediawiki using a configured `pywikibot-core`
0028 by doing something like:
0029 ```
0030 for L in "en it es"; do
0031   cp /path/to/guide/$L.mw dict.txt
0032   python pwb.py pagefromfile -start:xxxxxxSEPARATORBEGINxxxxxx -end:xxxxxxSEPARATORENDxxxxxx -notitle -force -lang:$L
0033 done
0034 ```