summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 5fa23c479..339e0aa00 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -51,16 +51,23 @@ sub salt {
sub makedev { ($_[0] << 8) | $_[1] }
sub unmakedev { $_[0] >> 8, $_[0] & 0xff }
-sub translate {
+sub translate_real {
my ($s) = @_;
$s or return '';
foreach ('libDrakX', @::textdomains) {
- my $s2 = $::isInstall && eval { $::o->isa('interactive::gtk') } ? c::dgettext_utf8($_, $s) : c::dgettext($_, $s);
+ my $s2 = c::dgettext($_, $s);
return $s2 if $s ne $s2;
}
$s;
}
+sub translate {
+ my $s = translate_real(@_);
+ $::need_utf8_i18n and c::set_tagged_utf8($s);
+ $s;
+}
+
+
sub untranslate {
my $s = shift || return;
foreach (@_) { translate($_) eq $s and return $_ }
0:01 +0000'>2012-09-1871-735/+1156 | * (main_license) enable to write a preambleThierry Vignaud2012-09-181-0/+2 | | | | (needed for next commits) * save the untranslated license earlyThierry Vignaud2012-09-182-1/+5 | * (main_license) factorize call to warning_about_patents()Thierry Vignaud2012-09-182-2/+3 | * (main_license_raw) split it out of main_license() (needed soon)Thierry Vignaud2012-09-181-0/+5 | * (display_release_notes) kill old commented stuffThierry Vignaud2012-09-181-1/+1 | * (main_license) move a comment for translators where neededThierry Vignaud2012-09-181-1/+1 | * (raw) do not crash when trying to guess homedir before running another ↵Thierry Vignaud2012-09-172-1/+4 | | | | process (mga#7403) * (raw) rename $user as $uid as it really what it isThierry Vignaud2012-09-171-5/+5 | | | | (preparing for next commit) * corrected small typo in Slovenian translationFilip Komar2012-09-161-2/+2 | * Slovenian translation updatedFilip Komar2012-09-161-5/+4 | * further simplifyThierry Vignaud2012-09-161-1/+1 | * remove useless "Autodetect printers" optionThierry Vignaud2012-09-162-4/+3 | | | | | | rationale: we don't detect anymore printers since commit r245200 on 2008-09-15 ("do not use anymore printerdrake and thus do not detect printers anymore") * Update Greek translationDimitrios Glentadakis2012-09-161-3/+3 | * 14.44.1Thierry Vignaud2012-09-152-1/+3 | * (main_license) add spacing between license paragraphsThierry Vignaud2012-09-152-1/+3 | * Ukrainian translation updateYuri Chornoivan2012-09-151-144/+145 | * Update Greek translationDimitrios Glentadakis2012-09-151-19/+20 | * typo fixThierry Vignaud2012-09-141-1/+1 | * 14.44Thierry Vignaud2012-09-143-1/+5 | * (reallyChooseGroups) remove "select all" buttonThierry Vignaud2012-09-142-1/+3 | | | | | rationale: it's not as usefull as "unselect all" & it takes too much place when translated * resurect some translations from before commit r261528 by pterjan on 2009-10-07Thierry Vignaud2012-09-144-8/+8 | | | | (was: "Update po for new strings in diskdrake and partitionning wizard") * updateThierry Vignaud2012-09-141-10/+10 | * update licenseThierry Vignaud2012-09-141-4/+3 | * change license ownership (mga#7347)Thierry Vignaud2012-09-1474-123/+123 | * fix one forgotten doble listed Mga (mga#1122)Thierry Vignaud2012-09-141-1/+1 | * s/mdv/mga/Thierry Vignaud2012-09-144-5/+5 | * propagate license changeThierry Vignaud2012-09-1471-610/+469 | * (main_license) advertize new doc license (mga#7347)Thierry Vignaud2012-09-143-2/+4 | * keep as fuzzy the translations that were previously fuzzyThierry Vignaud2012-09-145-21/+21 | | | | | | | | | | | | | | but only fuzzy the paragraphgs that actually got fuzzy (intro, 1-4) in commits on 2008-09-19: - r245989 by fcrozat: "Correct some part of the license, add optional Google provisions and optional US export provisions" - r245997 by pixel: "tune spacing between blocks of text" that got merged into translations by commit r245995 hoping this will help translators to adapt the translations... * sync with codeThierry Vignaud2012-09-1471-11346/+11544 | * remove trailling newlines (final syncing with sources)Thierry Vignaud2012-09-1471-591/+591 | * split translations like source wasThierry Vignaud2012-09-1471-4189/+4482 | * fix missing doble line (preparatory work for next commit)Thierry Vignaud2012-09-145-0/+7 | * fix bogus doble empty lines (preparatory work for next commit)Thierry Vignaud2012-09-146-22/+0 | * split big messages into smaller bitsThierry Vignaud2012-09-141-11/+13 | | | | (preparing for further changes for bug mga#7347) * s/licence/license/ (mga#7347)Thierry Vignaud2012-09-14