Use fribidi for Hebrew in the language list as well (LP: #212491).

master
Colin Watson 14 years ago
parent e64e90bc0a
commit 09ee4e32f9

6
debian/changelog vendored

@ -1,3 +1,9 @@
gfxboot-theme-ubuntu (0.9.2) UNRELEASED; urgency=low
* Use fribidi for Hebrew in the language list as well (LP: #212491).
-- Colin Watson <cjwatson@ubuntu.com> Mon, 22 Feb 2010 12:10:39 +0000
gfxboot-theme-ubuntu (0.9.1) lucid; urgency=low
[ Colin Watson ]

@ -23,7 +23,7 @@
[ "ga" "ga_IE" "Gaeilge" ]
[ "gl" "gl_ES" "Galego" ]
[ "gu" "gu_IN" "Gujarati" ]
[ "he" "he_IL" "עברית" ]
[ "he" "he_IL" "תירבע" ]
[ "hi" "hi_IN" "Hindi" ]
[ "hr" "hr_HR" "Hrvatski" ]
[ "hu" "hu_HU" "Magyar" ]

@ -1,5 +1,6 @@
#! /usr/bin/perl -w
use strict;
use IPC::Open2;
if (@ARGV != 1) {
print STDERR "Usage: $0 localechooser-source-tree\n";
@ -56,6 +57,15 @@ while (<LIST>) {
$lang = $langcode_overrides{$lang} if exists $langcode_overrides{$lang};
if (exists $langname_notranslate{$lang}) {
$langnames{$lang} = $bits[1];
} elsif ($lang eq 'he') {
my $bidi_pid = open2(\*BIDI_OUT, \*BIDI_IN, 'fribidi', '--nopad', '--nobreak');
binmode BIDI_IN, ':utf8';
binmode BIDI_OUT, ':utf8';
print BIDI_IN $bits[2];
close BIDI_IN;
{ local $/ = undef; $langnames{$lang} = <BIDI_OUT>; }
$langnames{$lang} =~ s/(.)%/%$1/g;
waitpid $bidi_pid, 0;
} else {
$langnames{$lang} = $bits[2];
}

Loading…
Cancel
Save