Re: Sound not working on 15.04 if Pulseaudio is fully localised (affects: el, it, pl, pt_BR, sk, sv, tr, uk, more)

2015-04-23 ϑεμα Simos Xenitellis
On Thu, Apr 23, 2015 at 5:54 PM, Νίκος Αλμπανόπουλος <
[email protected]> wrote:

> λύθηκε ή... προσωρινά μένουμε στο 14.10;
>

Η σελίδα του πακέτου pulseaudio για το Ubuntu 15.04 (vivid) είναι
http://packages.ubuntu.com/vivid/pulseaudio

Εκεί που αναφέρει «Ubuntu Changelog» (επάνω δεξιά), κάνουμε κλικ και
βλέπουμε στην αρχή του αρχείου,

pulseaudio (1:6.0-0ubuntu6) vivid; urgency=medium

  * debian/patches/0099-pa-yes-no.patch:
- Fix pulseaudio failure to load in some non-English
locales (LP: #1445358)

 -- David Henningsson   Mon, 20 Apr
2015 16:19:10 +0200


Οπότε, το πρόβλημα έχει διορθωθεί στο πακέτο που έχει εκδοθεί για vivid
και μπορούμε να εγκαταστήσουμε το Ubuntu 15.04 στα ελληνικά!

Σίμος
-- next part --
An HTML attachment was scrubbed...
URL: 

-- 
Ubuntu-gr mailing list
[email protected]

If you do not want to receive any more messages from the ubuntu-gr mailing 
list, please follow this link and choose unsubscribe:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr


Re: Sound not working on 15.04 if Pulseaudio is fully localised (affects: el, it, pl, pt_BR, sk, sv, tr, uk, more)

2015-04-23 ϑεμα Simos Xenitellis
2015-04-23 17:28 GMT+03:00 Tom Tryfonidis :

> Γεια σας,
>
> Στο upstream αρχείο [1] του PulseAudio υπάρχουν τα δύο μηνύματα (yes,no)
> [2] για μετάφραση, ακόμα και μετά το patch.
>
> Να υποθέσω πως είναι εντάξει να τα μεταφράσουμε μετά από την διόρθωση;
>
> Θάνος
>
> [1] https://l10n.gnome.org/vertimus/PulseAudio/master/po/el
> [2]
> http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/pulsecore/core-util.h?id=17e939dc155a73727ec92cde3de62d4fe0ed4eaa#n97
>

Ναι, είναι εντάξει να μεταφραστούν τώρα.

Αν δεις στο αρχείο με τον κώδικα, αναφέρει:

static inline const char *pa_yes_no(bool b) {
return b ? "yes" : "no";
}

static inline const char *pa_yes_no_localised(bool b) {
return b ? _("yes") : _("no");
}



Τώρα υπάρχουν δύο εκδόσεις της συνάρτησης "pa_yes_no()" και η δεύτερη
έκδοση, η pa_yes_no_localized()
είναι αυτή που είναι μεταφράσιμη.
Στον κώδικα, όταν το pulseaudio πάει να φτιάξει την ειδική εντολή για
insmod/modprobe, τότε χρησιμοποιεί την pa_yes_no(),
ενώ όταν θέλει να εμφανίσει καταγραφές (logs), τότε χρησιμοποιεί στον
κώδικα την pa_yes_no_localised().

Σίμος
-- next part --
An HTML attachment was scrubbed...
URL: 

-- 
Ubuntu-gr mailing list
[email protected]

If you do not want to receive any more messages from the ubuntu-gr mailing 
list, please follow this link and choose unsubscribe:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr


Re: Sound not working on 15.04 if Pulseaudio is fully localised (affects: el, it, pl, pt_BR, sk, sv, tr, uk, more)

2015-04-23 ϑεμα Νίκος Αλμπανόπουλος

λύθηκε ή... προσωρινά μένουμε στο 14.10;

On 20/04/2015 03:39 μμ, Simos Xenitellis wrote:

Hi All,

tldr: a function in Pulseaudio returns the strings "yes" or "no". Last
year, those strings were made localizable and some translators started
translating them. However, apart from log messages, that function is used
to construct parameters for module loading. Thus, those that translated the
innocuous "yes"/"no" strings, do not get sound on their systems because the
essential PA modules cannot get loaded.


A member of Ubuntu Greece noticed that audio did not work after recent
updates in 15.04,
http://forum.ubuntu-gr.org/viewtopic.php?p=326944#p326944
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1445358

The relevant message in /var/log/syslog was:

Apr 20 14:03:45 user-laptop pulseaudio[1661]: [pulseaudio] module.c: Failed
to load module "module-alsa-card" (argument: "device_id="0"
name="pci-_00_1b.0" card_name="alsa_card.pci-_00_1b.0"
namereg_fail=false tsched=ναι fixed_latency_range=όχι ignore_dB=όχι
deferred_volume=ναι use_ucm=ναι
card_properties="module-udev-detect.discovered=1""): initialization failed.

What is says here is that "insmod" (or similar) was called with parameters
like "tsched=ναι", and failed.

"git blame" says:
d806b197 src/pulsecore/core-util.h (poljar (Damir Jelić) 2013-06-27
19:28:09 +0200  92) static inline const char *pa_yes_no(bool b) {
cd13fb36 src/pulsecore/core-util.h (Tanu Kaskinen2014-03-24
09:17:53 +0200  93) return b ? _("yes") : _("no");

which means that about a year ago a change was made to make yes/no
localisable.

Among the available quick fixes, one is to make pa_yes_no() non-localisable
as before:

diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h
index dcdc40e..e6be901 100644
--- a/src/pulsecore/core-util.h
+++ b/src/pulsecore/core-util.h
@@ -90,7 +90,7 @@ int pa_parse_boolean(const char *s) PA_GCC_PURE;
  int pa_parse_volume(const char *s, pa_volume_t *volume);

  static inline const char *pa_yes_no(bool b) {
-return b ? _("yes") : _("no");
+return b ? "yes" : "no";
  }

  static inline const char *pa_strnull(const char *x) {


Simos
-- next part --
An HTML attachment was scrubbed...
URL: 




--
Ubuntu-gr mailing list
[email protected]

If you do not want to receive any more messages from the ubuntu-gr mailing 
list, please follow this link and choose unsubscribe:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr