indentation

This commit is contained in:
Simon Vieille 2020-08-28 17:30:08 +02:00
parent f8dd123851
commit 707dbf6810
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

@ -1,6 +1,7 @@
<?php <?php
function generateJsContent($translations) { function generateJsContent($translations)
{
$json = json_encode($translations, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); $json = json_encode($translations, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
return <<< EOF return <<< EOF
@ -8,7 +9,8 @@ OC.L10N.register("side_menu", {$json}, "nplurals=6; plural=n==0 ? 0 : n==1 ? 1 :
EOF; EOF;
} }
function generateJsonContent($translations) { function generateJsonContent($translations)
{
$datas = [ $datas = [
'translations' => $translations, 'translations' => $translations,
'pluralForm' => 'nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;', 'pluralForm' => 'nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;',