aboutsummaryrefslogtreecommitdiffstats
path: root/l10n
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-08 23:13:29 -0500
committerMorris Jobke <hey@morrisjobke.de>2017-05-08 23:24:28 -0500
commit692e056df9fc7fdded29cfc758dafb5bb3d9b065 (patch)
treeab71813277b2b8e322e5a3de308469572fa652fb /l10n
parentf6a4028fad57ff2be8752b17c66b990e042cfdf9 (diff)
downloadnextcloud-server-692e056df9fc7fdded29cfc758dafb5bb3d9b065.tar.gz
nextcloud-server-692e056df9fc7fdded29cfc758dafb5bb3d9b065.zip
Extract app name and navigation entries for l10n
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'l10n')
-rw-r--r--l10n/l10n.pl3
1 files changed, 3 insertions, 0 deletions
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 );
}
}