summaryrefslogtreecommitdiffhomepage
path: root/build/i18n-scan.pl
diff options
context:
space:
mode:
Diffstat (limited to 'build/i18n-scan.pl')
-rwxr-xr-xbuild/i18n-scan.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl
index 5ac1cb77d4..fc516c6a04 100755
--- a/build/i18n-scan.pl
+++ b/build/i18n-scan.pl
@@ -272,7 +272,11 @@ if( open C, "| msgcat -" )
{
if( length $key )
{
- my @positions = @{$stringtable{$key}};
+ my @positions =
+ map { join ':', @$_ }
+ sort { ($a->[0] cmp $b->[0]) || ($a->[1] <=> $b->[1]) }
+ map { [ /^(.+):(\d+)$/ ] }
+ @{$stringtable{$key}};
$key =~ s/\\/\\\\/g;
$key =~ s/\n/\\n/g;