Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain M committed May 26, 2020
1 parent b9f4838 commit c4341cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions po/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Translating

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.

## Adding New Languages

If your language does not appear above, you'll need to add it.

1. Add the language code to the `LINGUAS` file
2. Create a `.po` file for your language from the `.pot` file
3. Create a pull request with your translations

Translation tools (like POEdit) can help automate this process, but require you to clone this repository locally.

## Style Guidelines

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.
6 changes: 3 additions & 3 deletions src/Services/RadioBrowser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ public class Services.RadioBrowser : GLib.Object {
session.timeout = 10;

parser = new Json.Parser ();
parser.array_start.connect(() => {
parser.array_start.connect (() => {
started ();
});

parser.array_element.connect((parse, array, index) => {
parser.array_element.connect ((parse, array, index) => {
item_loaded (
Json.gobject_deserialize (typeof (Objects.Radio), array.get_element (index)) as Objects.Radio
);
});

parser.array_end.connect(() => {
parser.array_end.connect (() => {
finished ();
});
}
Expand Down

0 comments on commit c4341cb

Please sign in to comment.