-
Notifications
You must be signed in to change notification settings - Fork 4
/
HACKING
51 lines (30 loc) · 1.26 KB
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Guidelines for LaTeXila
=======================
LaTeXila source code is maintained using the Git version control system
and is available at the following location:
git://github.com/swilmet/latexila.git
A Web Interface is available at:
http://github.com/swilmet/latexila
You can download the source code from the Git repository by doing:
$ git clone git://github.com/swilmet/latexila.git
Later, to take the new commits you just have to do:
$ git pull
If you want to contribute to LaTeXila, contact the main developer (see the file AUTHORS).
Here is how you can generate a patch:
$ git diff origin > patch
But a pull request is better.
There are some rules to follow when coding:
- indentation: 4 spaces
- lines: 90 characters maximum (in some cases it can be a little more)
- same coding style everywhere
Translations
============
How to generate latexila.pot?
$ xgettext -k_ -kN_ -d latexila -s -o po/sources.pot src/*.vala
$ xgettext -o po/glade.pot --language=Glade --omit-header src/*.ui
$ cd po/ ; msgcat -o latexila.pot --use-first sources.pot glade.pot
How to create a new *.po for a new language?
$ cd po/ ; msginit -l xx -o xx.po -i latexila.pot
How to update the *.po files with latexila.pot file?
$ cd build/ ; cmake ../
$ make