From 692e056df9fc7fdded29cfc758dafb5bb3d9b065 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 8 May 2017 23:13:29 -0500 Subject: Extract app name and navigation entries for l10n Signed-off-by: Morris Jobke --- l10n/l10n.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'l10n/l10n.pl') diff --git a/l10n/l10n.pl b/l10n/l10n.pl index 3f50ec0756b..c8312982fdc 100644 --- a/l10n/l10n.pl +++ b/l10n/l10n.pl @@ -120,6 +120,8 @@ if( $task eq 'read' ){ my @temp = split( /\//, $dir ); my $app = pop( @temp ); chdir( $dir ); + # parses the app info and creates an dummy file specialAppInfoFakeDummyForL10nScript.php + `php $whereami/../build/l10nParseAppInfo.php`; my @totranslate = crawlFiles('.'); my %ignore = readIgnorelist(); my $output = "${whereami}/templates/$app.pot"; @@ -139,6 +141,7 @@ if( $task eq 'read' ){ print " Reading $file\n"; `xgettext --output="$output" $joinexisting $keywords --language=$language "$file" --add-comments=TRANSLATORS --from-code=UTF-8 --package-version="8.0.0" --package-name="ownCloud Core" --msgid-bugs-address="translations\@owncloud.org"`; } + rmtree( "specialAppInfoFakeDummyForL10nScript.php" ); chdir( $whereami ); } } -- cgit v1.2.3