summaryrefslogtreecommitdiff
path: root/intltool-prepare.in
diff options
context:
space:
mode:
authormenesis <>2001-02-19 01:00:33 +0000
committermenesis <>2001-02-19 01:00:33 +0000
commit4ae0fde7c74a2c061740c6ca413777eeb22e7f9c (patch)
treec8d57ec0af9d9136651447b1c7094385f1cccebb /intltool-prepare.in
parent07a223ca1f01ca582d324b048d1318feed219e15 (diff)
downloadintltool-4ae0fde7c74a2c061740c6ca413777eeb22e7f9c.tar.gz
create new po files for languages whose translation exist only in .desktop files
ChangeLog for all 3 fixes.
Diffstat (limited to 'intltool-prepare.in')
-rwxr-xr-xintltool-prepare.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/intltool-prepare.in b/intltool-prepare.in
index 584db33..fbc5187 100755
--- a/intltool-prepare.in
+++ b/intltool-prepare.in
@@ -169,11 +169,10 @@ sub rescue_file
if (($entry =~ /^($keywords)=(.*)$/) ||
($entry =~ /^(\s*description)=(.*)$/)) {
$msgid = $2;
- $msgid =~ s/\"/\\"/;
+ $msgid =~ s/\"/\\"/g;
} elsif (($entry =~ /^($keywords)\[(.*?)\]=(.*)$/) ||
($entry =~ /^(\s*\[)(.*?)\]description=(.*)$/)) {
$lang = $2;
- next if (!-s "po/$lang.po");
my $msgstr = $3;
$msgstr =~ s/"/\\"/g;
@@ -285,7 +284,8 @@ sub fix_makefiles
$line .= "$name\_DATA = \$($name\_in_files:.$1.in=.$1)\n";
if ($basename eq 'keys') {
if (!contains($makefile, '@XML_I18N_MERGE_KEYS_RULE@')) {
- $line .= "\@XML_I18N_MERGE_KEYS_RULE\@\n";
+ $line .= "\@XML_I18N_MERGE_KEYS_RULE\@\n";
+ }
}
elsif (!contains($makefile, '@XML_I18N_MERGE_DESKTOP_RULE@')) {
$line .= "\@XML_I18N_MERGE_DESKTOP_RULE\@\n";