Browse Source

indentation

tags/v1.8.6
Simon Vieille 1 month ago
parent
commit
707dbf6810
Signed by: deblan GPG Key ID: 03383D15A1D31745
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      bin/generate_l10n.php

+ 4
- 2
bin/generate_l10n.php 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;',


Loading…
Cancel
Save