summaryrefslogtreecommitdiff
path: root/tools/updatelang
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-27 15:18:21 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-27 19:19:02 +0000
commit8159c9537fd2702719ebb31584c800b774976153 (patch)
treef6a9db6262ec7de66064199559ace39cbf0e6b39 /tools/updatelang
parent632385a4d01448eb1099d8206095afe8b12ce143 (diff)
downloadrockbox-8159c9537fd2702719ebb31584c800b774976153.tar.gz
rockbox-8159c9537fd2702719ebb31584c800b774976153.zip
updatelang: Don't rely on non-core modules
Change-Id: I262f47e10aee51116375238b458270e92e25154d
Diffstat (limited to 'tools/updatelang')
-rwxr-xr-xtools/updatelang4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/updatelang b/tools/updatelang
index a139bc77f8..cbeb3ff25c 100755
--- a/tools/updatelang
+++ b/tools/updatelang
@@ -9,7 +9,6 @@
9# Copyright (C) 2020 Solomon Peachy 9# Copyright (C) 2020 Solomon Peachy
10# 10#
11 11
12use Clone 'clone';
13use utf8; 12use utf8;
14use File::Basename; 13use File::Basename;
15 14
@@ -66,7 +65,8 @@ sub parselangfile {
66 $line eq '<phrase>') { 65 $line eq '<phrase>') {
67 $pos = 'phrase'; 66 $pos = 'phrase';
68 } elsif ($line eq '</phrase>') { 67 } elsif ($line eq '</phrase>') {
69 $phrases{$id} = clone(\%thisphrase); 68 my %copy = %thisphrase;
69 $phrases{$id} = \%copy;
70 %thisphrase = %empty; 70 %thisphrase = %empty;
71 $pos = 'lang'; 71 $pos = 'lang';
72 $id = ''; 72 $id = '';