summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* (setupBootloaderBefore) update an obsolete commentThierry Vignaud2008-09-291-1/+1
* update (Rhoslyn Prys)Thierry Vignaud2008-09-281-4/+4
* update (Rhoslyn Prys)Thierry Vignaud2008-09-281-12/+12
* 11.57Thierry Vignaud2008-09-283-1/+5
* (move_selection) better positionning of sidepanel's selection barThierry Vignaud2008-09-284-3/+7
* prevent wrapping labels for most languagesThierry Vignaud2008-09-281-2/+2
* improved button layoutThierry Vignaud2008-09-281-1/+1
* make it fit in 800x600 resolution by spliting into notebook (#36105)Thierry Vignaud2008-09-282-1/+9
* (create_scale_table) better sizingThierry Vignaud2008-09-281-2/+2
* do the wrapping automatically, not through manually inserted "\n"Thierry Vignaud2008-09-281-1/+1
* keep around global variableThierry Vignaud2008-09-281-1/+2
* use mygtk2 to create scale widgetsThierry Vignaud2008-09-281-1/+1
* show what is common (btw, 'mcc' option should be either renamed or dropped si...Thierry Vignaud2008-09-281-5/+5
* increase default width so that translated widgets fit inThierry Vignaud2008-09-282-1/+2
* log latest changeThierry Vignaud2008-09-281-0/+1
* better layout for "verbose mode" tabThierry Vignaud2008-09-281-6/+10
* fix crash: 'Can't locate object method "get_text" via package "Gtk2::CellView"'Thierry Vignaud2008-09-282-4/+6
* reindent for readability (shorter lines, no changes)Thierry Vignaud2008-09-281-11/+24
* reindent for readability (shorter lines, no changes)Thierry Vignaud2008-09-281-10/+14
* reindent for readability (shorter lines, no changes)Thierry Vignaud2008-09-281-24/+32
* make it fit better in 800x600 resolution (still too high) (#36105)Thierry Vignaud2008-09-282-1/+9
* update translation for ItalianAndrea Celli2008-09-281-7/+7
* update translation for ItalianAndrea Celli2008-09-281-8/+8
* update translation for ItalianAndrea Celli2008-09-281-16/+16
* update translation for ItalianAndrea Celli2008-09-281-191/+154
* update translation for ItalianAndrea Celli2008-09-281-1607/+1243
* update translation for ItalianAndrea Celli2008-09-281-422/+430
* update translation for ItalianAndrea Celli2008-09-281-75/+38
* update translation for ItalianAndrea Celli2008-09-281-57/+18
* 2008-09-28 Reinout van Schouwen <reinouts@gnome.org>Reinout van Schouwen2008-09-281-14/+14
* 2008-09-28 Reinout van Schouwen <reinouts@gnome.org>Reinout van Schouwen2008-09-281-26/+33
* Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2008-09-281-1/+1
* Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2008-09-281-7/+7
* Update zh_TW translationShiva Huang2008-09-281-19/+19
* Update zh_TW translationShiva Huang2008-09-281-15/+30
* update Finnish translationsThomas Backlund2008-09-281-30/+24
* Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2008-09-271-1/+1
* Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2008-09-271-4/+4
* Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2008-09-271-1/+1
* updated Ukrainian translationPavel Maryanov2008-09-271-695/+759
* greek (el) language update by NikosNikos Papadopoulos2008-09-271-234/+169
* update Swedish translationsThomas Backlund2008-09-261-1/+67
* typo fixThierry Vignaud2008-09-261-1/+1
* 11.56Thierry Vignaud2008-09-263-1/+5
* - dmraid devices: use isw_xxxxp1 instead of isw_xxxx1 (see #42542, #44182)Pascal Rigaux2008-09-263-1/+3
* create fstab.old when writing fstabPascal Rigaux2008-09-261-0/+1
* (create_steps_window) remove hackThierry Vignaud2008-09-261-3/+0
* (_gtk__MDV_Notebook) enable to simplify both installer & MCCThierry Vignaud2008-09-261-0/+1
* (ask_from_normalize) do not display Help buttons in standalone modeThierry Vignaud2008-09-262-0/+5
* use mygtk2 for WebKitThierry Vignaud2008-09-261-1/+1
hl opt">}, "$::prefix/etc/localtime") }; $@ and log::l("installing /etc/localtime failed"); setVarsInSh("$::prefix/etc/sysconfig/clock", { ZONE => $t->{timezone}, UTC => bool2text($t->{UTC}), ARC => "false", }); my $adjtime_file = $::prefix . '/etc/adjtime'; my @adjtime = cat_($adjtime_file); @adjtime or @adjtime = ("0.0 0 0.0\n", "0\n"); $adjtime[2] = $t->{UTC} ? "UTC\n" : "LOCAL\n"; output_p($adjtime_file, @adjtime); } sub reload_sys_clock { my ($t) = @_; require run_program; any::disable_x_screensaver(); run_program::run('hwclock', '--hctosys', ($t->{UTC} ? '--utc' : '--localtime')); any::enable_x_screensaver(); } #- best guesses for a given country my %c2t = ( 'AM' => 'Asia/Yerevan', 'AR' => 'America/Buenos_Aires', 'AT' => 'Europe/Vienna', 'AU' => 'Australia/Sydney', 'BA' => 'Europe/Sarajevo', 'BE' => 'Europe/Brussels', 'BG' => 'Europe/Sofia', 'BR' => 'Brazil/East', #- most people live on the east coast 'BY' => 'Europe/Minsk', 'CA' => 'Canada/Eastern', 'CH' => 'Europe/Zurich', 'CN' => 'Asia/Beijing', 'CZ' => 'Europe/Prague', 'DE' => 'Europe/Berlin', 'DK' => 'Europe/Copenhagen', 'EE' => 'Europe/Tallinn', 'ES' => 'Europe/Madrid', 'FI' => 'Europe/Helsinki', 'FR' => 'Europe/Paris', 'GB' => 'Europe/London', 'GE' => 'Asia/Yerevan', 'GL' => 'Arctic/Longyearbyen', 'GR' => 'Europe/Athens', 'HR' => 'Europe/Zagreb', 'HU' => 'Europe/Budapest', 'ID' => 'Asia/Jakarta', 'IE' => 'Europe/Dublin', 'IL' => 'Asia/Tel_Aviv', 'IN' => 'Asia/Calcutta', 'IR' => 'Asia/Tehran', 'IS' => 'Atlantic/Reykjavik', 'IT' => 'Europe/Rome', 'JP' => 'Asia/Tokyo', 'KR' => 'Asia/Seoul', 'LT' => 'Europe/Vilnius', 'LV' => 'Europe/Riga', 'MK' => 'Europe/Skopje', 'MT' => 'Europe/Malta', 'MX' => 'America/Mexico_City', 'MY' => 'Asia/Kuala_Lumpur', 'NL' => 'Europe/Amsterdam', 'NO' => 'Europe/Oslo', 'NZ' => 'Pacific/Auckland', 'PL' => 'Europe/Warsaw', 'PT' => 'Europe/Lisbon', 'RO' => 'Europe/Bucharest', 'RU' => 'Europe/Moscow', 'SE' => 'Europe/Stockholm', 'SI' => 'Europe/Ljubljana', 'SK' => 'Europe/Bratislava', 'TH' => 'Asia/Bangkok', 'TJ' => 'Asia/Dushanbe', 'TR' => 'Europe/Istanbul', 'TW' => 'Asia/Taipei', 'UA' => 'Europe/Kiev', 'US' => 'America/New_York', 'UZ' => 'Asia/Tashkent', 'VN' => 'Asia/Saigon', 'YU' => 'Europe/Belgrade', 'ZA' => 'Africa/Johannesburg', ); sub fuzzyChoice { my ($b, $count) = bestMatchSentence($_[0], keys %c2t); $count ? $b : ''; } sub bestTimezone { $c2t{fuzzyChoice($_[0])} || 'GMT' } our %ntp_servers; sub get_ntp_server_tree { my ($zone) = @_; map { $ntp_servers{$zone}{$_} => ( exists $ntp_servers{$_} ? $zone ? translate($_) . "|" . N("All servers") : N("All servers") : translate($zone) . "|" . translate($_) ), get_ntp_server_tree($_); } keys %{$ntp_servers{$zone}}; } sub ntp_servers() { +{ get_ntp_server_tree() }; } sub dump_ntp_zone { my ($zone) = @_; map { if_(/\[\d+\](.+) -- (.+\.ntp\.org)/, $1 => $2) } `lynx -dump http://www.pool.ntp.org/zone/$zone`; } sub print_ntp_zone { my ($zone, $name) = @_; my %servers = dump_ntp_zone($zone); print qq(\$ntp_servers{"$name"} = {\n); print join('', map { qq( N_("$_") => "$servers{$_}",\n) } sort(keys %servers)); print "};\n"; \%servers; } sub print_ntp_servers() { print_ntp_zone(); my $servers = print_ntp_zone('@', "Global"); foreach my $name (sort(keys %$servers)) { my ($zone) = $servers->{$name} =~ /^(.*?)\./; print_ntp_zone($zone, $name); } } # perl -Mtimezone -e 'timezone::print_ntp_servers()' $ntp_servers{""} = { N_("Global") => "pool.ntp.org", }; $ntp_servers{"Global"} = { N_("Africa") => "africa.pool.ntp.org", N_("Asia") => "asia.pool.ntp.org", N_("Europe") => "europe.pool.ntp.org", N_("North America") => "north-america.pool.ntp.org", N_("Oceania") => "oceania.pool.ntp.org", N_("South America") => "south-america.pool.ntp.org", }; $ntp_servers{"Africa"} = { N_("South Africa") => "za.pool.ntp.org", N_("Tanzania") => "tz.pool.ntp.org", }; $ntp_servers{"Asia"} = { N_("Bangladesh") => "bd.pool.ntp.org", N_("China") => "cn.pool.ntp.org", N_("Hong Kong") => "hk.pool.ntp.org", N_("India") => "in.pool.ntp.org", N_("Indonesia") => "id.pool.ntp.org", N_("Iran") => "ir.pool.ntp.org", N_("Israel") => "il.pool.ntp.org", N_("Japan") => "jp.pool.ntp.org", N_("Korea") => "kr.pool.ntp.org", N_("Malaysia") => "my.pool.ntp.org", N_("Philippines") => "ph.pool.ntp.org", N_("Singapore") => "sg.pool.ntp.org", N_("Taiwan") => "tw.pool.ntp.org", N_("Thailand") => "th.pool.ntp.org", N_("Turkey") => "tr.pool.ntp.org", N_("United Arab Emirates") => "ae.pool.ntp.org", }; $ntp_servers{"Europe"} = { N_("Austria") => "at.pool.ntp.org", N_("Belarus") => "by.pool.ntp.org", N_("Belgium") => "be.pool.ntp.org", N_("Bulgaria") => "bg.pool.ntp.org", N_("Czech Republic") => "cz.pool.ntp.org", N_("Denmark") => "dk.pool.ntp.org", N_("Estonia") => "ee.pool.ntp.org", N_("Finland") => "fi.pool.ntp.org", N_("France") => "fr.pool.ntp.org", N_("Germany") => "de.pool.ntp.org", N_("Greece") => "gr.pool.ntp.org", N_("Hungary") => "hu.pool.ntp.org", N_("Ireland") => "ie.pool.ntp.org", N_("Italy") => "it.pool.ntp.org", N_("Lithuania") => "lt.pool.ntp.org", N_("Luxembourg") => "lu.pool.ntp.org", N_("Netherlands") => "nl.pool.ntp.org", N_("Norway") => "no.pool.ntp.org", N_("Poland") => "pl.pool.ntp.org", N_("Portugal") => "pt.pool.ntp.org", N_("Romania") => "ro.pool.ntp.org", N_("Russian Federation") => "ru.pool.ntp.org", N_("Slovakia") => "sk.pool.ntp.org", N_("Slovenia") => "si.pool.ntp.org", N_("Spain") => "es.pool.ntp.org", N_("Sweden") => "se.pool.ntp.org", N_("Switzerland") => "ch.pool.ntp.org", N_("Ukraine") => "ua.pool.ntp.org", N_("United Kingdom") => "uk.pool.ntp.org", N_("Yugoslavia") => "yu.pool.ntp.org", }; $ntp_servers{"North America"} = { N_("Canada") => "ca.pool.ntp.org", N_("Guatemala") => "gt.pool.ntp.org", N_("Mexico") => "mx.pool.ntp.org", N_("United States") => "us.pool.ntp.org", }; $ntp_servers{"Oceania"} = { N_("Australia") => "au.pool.ntp.org", N_("New Zealand") => "nz.pool.ntp.org", }; $ntp_servers{"South America"} = { N_("Argentina") => "ar.pool.ntp.org", N_("Brazil") => "br.pool.ntp.org", N_("Chile") => "cl.pool.ntp.org", }; 1;