added g+ button
[www.git] / www / psensor / contribute.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="generator" content="Asciidoctor 1.5.4">
8 <title>How to contribute to psensor</title>
9 <link rel="stylesheet" href="./../style.css">
10 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
11 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
12 <script src="nav.js"></script>
13 <script src="https://apis.google.com/js/platform.js" async defer>
14 </script>
15 </head>
16 <body class="article">
17 <div id="header">
18 <h1>How to contribute to psensor</h1>
19 </div>
20 <div id="content">
21 <div class="sect1">
22 <h2 id="_translations">Translations</h2>
23 <div class="sectionbody">
24 <div class="paragraph">
25 <p>Psensor is fully translatable, and contributions to the translation
26 for any language are welcome.</p>
27 </div>
28 <div class="sect2">
29 <h3 id="_directly_update_the_translation_files">Directly update the translation files</h3>
30 <div class="paragraph">
31 <p>You can modify the .po files which are available in the
32 GIT repository: <a href="http://git.wpitchoune.net/psensor.git" class="bare">http://git.wpitchoune.net/psensor.git</a> and send it to
33 <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>.</p>
34 </div>
35 <div class="paragraph">
36 <p><a href="http://poedit.net">poedit</a> or any text editors supporting UTF-8
37 can be used to edit the translation files .</p>
38 </div>
39 <div class="paragraph">
40 <p>If the <code>.po</code> file does not exist for your language, send me an email, I
41 will add it.</p>
42 </div>
43 </div>
44 <div class="sect2">
45 <h3 id="_use_launchpad">Use Launchpad</h3>
46 <div class="admonitionblock warning">
47 <table>
48 <tr>
49 <td class="icon">
50 <i class="fa icon-warning" title="Warning"></i>
51 </td>
52 <td class="content">
53 Currently, you must NOT use this way. Due to a <a href="https://bugs.launchpad.net/ubuntu/+source/bzr-git/+bug/1084403">bug</a> which
54 prevents to import GIT repository to Bazaar branch, it is impossible
55 to synchronize the translations.
56 </td>
57 </tr>
58 </table>
59 </div>
60 <div class="paragraph">
61 <p>The easiest way is probably to use the Launchpad translation Web
62 service available at:
63 <a href="https://translations.launchpad.net/psensor/trunk/+translations" class="bare">https://translations.launchpad.net/psensor/trunk/+translations</a>.</p>
64 </div>
65 <div class="paragraph">
66 <p>If you did not already use it, you can read some documentation at:
67 <a href="https://help.launchpad.net/Translations" class="bare">https://help.launchpad.net/Translations</a>. The LP translations are
68 periodically merged in the Psensor source repository and systematicaly
69 before each release.</p>
70 </div>
71 </div>
72 </div>
73 </div>
74 <div class="sect1">
75 <h2 id="_source_code">Source code</h2>
76 <div class="sectionbody">
77 <div class="paragraph">
78 <p>Patch fixing bugs or adding features are welcome.</p>
79 </div>
80 <div class="paragraph">
81 <p>The code modification must be submitted as a patch file on the branch
82 <code>master</code> of the GIT repository:</p>
83 </div>
84 <div class="olist arabic">
85 <ol class="arabic">
86 <li>
87 <p>Checkout the source code: <code>git clone <a href="http://git.wpitchoune.net/psensor.git" class="bare">http://git.wpitchoune.net/psensor.git</a></code></p>
88 </li>
89 <li>
90 <p>Modify the files</p>
91 </li>
92 <li>
93 <p>Generate the patch file: <code>git diff &gt;/tmp/mypatch.diff</code></p>
94 </li>
95 <li>
96 <p>Verify that it respects the coding style: <code>make check</code></p>
97 </li>
98 <li>
99 <p>Send the patch file by email to <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a></p>
100 </li>
101 </ol>
102 </div>
103 <div class="paragraph">
104 <p>If it concerns a bug which does not exist on the â€˜master’ GIT branch,
105 the patch must be done on the appropriate GIT branch:
106 <a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=summary" class="bare">http://git.wpitchoune.net/gitweb/?p=psensor.git;a=summary</a>.</p>
107 </div>
108 </div>
109 </div>
110 <div class="sect1">
111 <h2 id="_icons">Icons</h2>
112 <div class="sectionbody">
113 <div class="paragraph">
114 <p>Psensor is using 3 differents icons:</p>
115 </div>
116 <div class="ulist">
117 <ul>
118 <li>
119 <p><a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blob_plain;f=icons/hicolor/scalable/psensor.svg;hb=HEAD">an application icon</a></p>
120 </li>
121 <li>
122 <p><a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blob_plain;f=icons/hicolor/scalable/psensor_normal.svg;hb=HEAD">a status icon</a></p>
123 </li>
124 <li>
125 <p><a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blob_plain;f=icons/hicolor/scalable/psensor_hot.svg;hb=HEAD">a status icon when there is a sensor alert</a></p>
126 </li>
127 </ul>
128 </div>
129 <div class="paragraph">
130 <p>and provides icons for 3 different themes:</p>
131 </div>
132 <div class="ulist">
133 <ul>
134 <li>
135 <p><a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=tree;f=icons/hicolor/scalable;hb=HEAD">hicolor, the default theme for most desktop environment</a></p>
136 </li>
137 <li>
138 <p><a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=tree;f=icons/ubuntu-mono-dark;hb=HEAD">the default ubuntu monochrome dark theme</a></p>
139 </li>
140 <li>
141 <p><a href="http://git.wpitchoune.net/gitweb/?p=psensor.git;a=tree;f=icons/ubuntu-mono-light;hb=HEAD">the default ubuntu monochrome light theme</a></p>
142 </li>
143 </ul>
144 </div>
145 <div class="paragraph">
146 <p>The status icons for Ubuntu themes have been provided by Christoph
147 Buchner and are nice but definitively not the application icon.</p>
148 </div>
149 <div class="paragraph">
150 <p>Contributions to the icons are welcome for the already existent themes
151 or others. To submit a new icon it must:</p>
152 </div>
153 <div class="ulist">
154 <ul>
155 <li>
156 <p>be an original work (not confusing with another application icons)
157 and released under GPL v2 license.</p>
158 </li>
159 <li>
160 <p>use the .SVG format.</p>
161 </li>
162 <li>
163 <p>be sent to me by email (<a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>).</p>
164 </li>
165 </ul>
166 </div>
167 </div>
168 </div>
169 </div>
170 <div id="footer">
171 <div id="footer-text">
172 Last updated 2016-06-14 21:30:49 CEST
173 </div>
174 </div>
175 </body>
176 </html>