Skip to content

Commit 7dcf84b

Browse files
committed
Change to translation directory from anywhere
This allows the script to be invoked from anywhere in the tree, and it will cd to the src/translation directory.
1 parent d588b1f commit 7dcf84b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/checkkeys.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
use open qw(:std :utf8);
2828
use XML::LibXML;
2929
use Data::Dumper;
30+
use File::Basename;
31+
32+
my $TRANSLATION = "src/translation";
33+
my $scriptdir = dirname $0;
34+
35+
chdir "$scriptdir/../$TRANSLATION" or die "translation directory not found";
3036

3137
my %keys;
3238

0 commit comments

Comments
 (0)