Changeset 11076
- Timestamp:
- 03/11/10 12:44:46 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Locale.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Locale.pm
r11075 r11076 60 60 my %RFC4646; 61 61 62 # taken from gettext translations of the iso-codes package62 # The utf8text could/should be taken from gettext translations of the iso-codes package 63 63 # file:///usr/share/locale/*/LC_MESSAGES/iso_639.mo 64 64 # file:///usr/share/xml/iso-codes/iso_639.xml 65 65 # http://pkg-isocodes.alioth.debian.org/ 66 #my %lang_labels = (67 # 'de' => 'Deutsch',68 #);69 66 70 67 sub label { 71 68 my $name = shift; 72 return $RFC4646{$name}{utf8text} || $name 69 require Encode; 70 return $RFC4646{$name}{utf8text} ? Encode::decode('utf8', $RFC4646{$name}{utf8text}) : $name 73 71 } 74 72
Note: See TracChangeset
for help on using the changeset viewer.
