regenerated
[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="paragraph">
29 <p>The contributions to the translation of <code>psensor</code> will be licensed
30 like the code of <code>psensor</code> (GPLv2).</p>
31 </div>
32 <div class="sect2">
33 <h3 id="_directly_update_the_translation_files">Directly update the translation files</h3>
34 <div class="paragraph">
35 <p>You can modify the .po files which are available in the
36 GIT repository (<a href="https://git.wpitchoune.net/psensor.git" class="bare">https://git.wpitchoune.net/psensor.git</a>) and send it to
37 <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>.</p>
38 </div>
39 <div class="paragraph">
40 <p>First, checkout the last version of the sources:</p>
41 </div>
42 <div class="listingblock">
43 <div class="content">
44 <pre>git clone https://git.wpitchoune.net/psensor.git</pre>
45 </div>
46 </div>
47 <div class="paragraph">
48 <p>Then, modify one of the .po file corresponding
49 to your language in <code>psensor/po</code>. <a href="http://poedit.net">poedit</a> or any text
50 editors supporting UTF-8 can be used to edit the translation files .</p>
51 </div>
52 <div class="paragraph">
53 <p>Finally, send the <code>.po</code> file to <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>.</p>
54 </div>
55 <div class="paragraph">
56 <p>If the <code>.po</code> file does not exist for your language, send me an email, I
57 will add it.</p>
58 </div>
59 </div>
60 <div class="sect2">
61 <h3 id="_use_launchpad">Use Launchpad</h3>
62 <div class="admonitionblock warning">
63 <table>
64 <tr>
65 <td class="icon">
66 <i class="fa icon-warning" title="Warning"></i>
67 </td>
68 <td class="content">
69 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
70 prevents to import GIT repository to Bazaar branch, it is impossible
71 to synchronize the translations.
72 </td>
73 </tr>
74 </table>
75 </div>
76 <div class="paragraph">
77 <p>The easiest way is probably to use the Launchpad translation Web
78 service available at:
79 <a href="https://translations.launchpad.net/psensor/trunk/+translations" class="bare">https://translations.launchpad.net/psensor/trunk/+translations</a>.</p>
80 </div>
81 <div class="paragraph">
82 <p>If you did not already use it, you can read some documentation at:
83 <a href="https://help.launchpad.net/Translations" class="bare">https://help.launchpad.net/Translations</a>. The LP translations are
84 periodically merged in the Psensor source repository and systematicaly
85 before each release.</p>
86 </div>
87 </div>
88 </div>
89 </div>
90 <div class="sect1">
91 <h2 id="_source_code">Source code</h2>
92 <div class="sectionbody">
93 <div class="paragraph">
94 <p>Patch fixing bugs or adding features are welcome.</p>
95 </div>
96 <div class="paragraph">
97 <p>The code modification must be submitted as a patch file on the branch
98 <code>master</code> of the GIT repository:</p>
99 </div>
100 <div class="olist arabic">
101 <ol class="arabic">
102 <li>
103 <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>
104 </li>
105 <li>
106 <p>Modify the files</p>
107 </li>
108 <li>
109 <p>Generate the patch file: <code>git diff &gt;/tmp/mypatch.diff</code></p>
110 </li>
111 <li>
112 <p>Verify that it respects the coding style: <code>make check</code></p>
113 </li>
114 <li>
115 <p>Send the patch file by email to <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a></p>
116 </li>
117 </ol>
118 </div>
119 <div class="paragraph">
120 <p>If it concerns a bug which does not exist on the â€˜master’ GIT branch,
121 the patch must be done on the appropriate GIT branch:
122 <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>
123 </div>
124 </div>
125 </div>
126 <div class="sect1">
127 <h2 id="_icons">Icons</h2>
128 <div class="sectionbody">
129 <div class="paragraph">
130 <p>Psensor is using 3 differents icons:</p>
131 </div>
132 <div class="ulist">
133 <ul>
134 <li>
135 <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>
136 </li>
137 <li>
138 <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>
139 </li>
140 <li>
141 <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>
142 </li>
143 </ul>
144 </div>
145 <div class="paragraph">
146 <p>and provides icons for 3 different themes:</p>
147 </div>
148 <div class="ulist">
149 <ul>
150 <li>
151 <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>
152 </li>
153 <li>
154 <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>
155 </li>
156 <li>
157 <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>
158 </li>
159 </ul>
160 </div>
161 <div class="paragraph">
162 <p>The status icons for Ubuntu themes have been provided by Christoph
163 Buchner and are nice but definitively not the application icon.</p>
164 </div>
165 <div class="paragraph">
166 <p>Contributions to the icons are welcome for the already existent themes
167 or others. To submit a new icon it must:</p>
168 </div>
169 <div class="ulist">
170 <ul>
171 <li>
172 <p>be an original work (not confusing with another application icons)
173 and released under GPL v2 license.</p>
174 </li>
175 <li>
176 <p>use the .SVG format.</p>
177 </li>
178 <li>
179 <p>be sent to me by email (<a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>).</p>
180 </li>
181 </ul>
182 </div>
183 </div>
184 </div>
185 </div>
186 <div id="footer">
187 <div id="footer-text">
188 Last updated 2016-07-04 09:56:32 CEST
189 </div>
190 </div>
191 </body>
192 </html>