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
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<?php
function generateJsContent($translations) {
function generateJsContent($translations)
{
$json = json_encode($translations, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
return <<< EOF
@ -8,7 +9,8 @@ OC.L10N.register("side_menu", {$json}, "nplurals=6; plural=n==0 ? 0 : n==1 ? 1 :
EOF;
}
function generateJsonContent($translations) {
function generateJsonContent($translations)
{
$datas = [
'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;',