Skip to content

Commit c4341cb

Browse files
author
Alain M
committed
Add README.md
1 parent b9f4838 commit c4341cb

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

po/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Translating
2+
3+
Anyone may propose translations for Byte. You can do so by editing the relevant `.po` file for your language above. Translation tools (like POEdit) can help automate this process. When your translation is ready, propose it as a pull request against this project and it will be reviewed. If it looks sane and builds correctly, it will be merged in, and your GitHub account will be credited for the translation in the next release's release notes.
4+
5+
## Adding New Languages
6+
7+
If your language does not appear above, you'll need to add it.
8+
9+
1. Add the language code to the `LINGUAS` file
10+
2. Create a `.po` file for your language from the `.pot` file
11+
3. Create a pull request with your translations
12+
13+
Translation tools (like POEdit) can help automate this process, but require you to clone this repository locally.
14+
15+
## Style Guidelines
16+
17+
When translating you may encounter a situation where you have to decide between several ways of saying the same thing. In these situations we refer to the Ubuntu [general translator guide](https://help.launchpad.net/Translations/Guide), and for language specific issues we follow Ubuntu's [team translation guidelines](https://translations.launchpad.net/+groups/ubuntu-translators). Following these guides ensure uniform translations, while also allowing anyone to contribute.

src/Services/RadioBrowser.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ public class Services.RadioBrowser : GLib.Object {
1515
session.timeout = 10;
1616

1717
parser = new Json.Parser ();
18-
parser.array_start.connect(() => {
18+
parser.array_start.connect (() => {
1919
started ();
2020
});
2121

22-
parser.array_element.connect((parse, array, index) => {
22+
parser.array_element.connect ((parse, array, index) => {
2323
item_loaded (
2424
Json.gobject_deserialize (typeof (Objects.Radio), array.get_element (index)) as Objects.Radio
2525
);
2626
});
2727

28-
parser.array_end.connect(() => {
28+
parser.array_end.connect (() => {
2929
finished ();
3030
});
3131
}

0 commit comments

Comments
 (0)