X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FPoToPhp.php;h=b7c9bfaaec4c9326258a102a57b401deb4db5317;hb=be7bd106784ad4e45833b1649e8409ef48f0d19f;hp=62ff24bd5553a20ee4a8525182faa689c1b64f95;hpb=88353ce56f0e5da6352af2d999a58bd0c9b375f7;p=friendica.git diff --git a/src/Core/Console/PoToPhp.php b/src/Core/Console/PoToPhp.php index 62ff24bd55..b7c9bfaaec 100644 --- a/src/Core/Console/PoToPhp.php +++ b/src/Core/Console/PoToPhp.php @@ -5,7 +5,7 @@ namespace Friendica\Core\Console; /** * Read a messages.po file and create strings.php in the same directory * - * @author Hypolite Petovan + * @author Hypolite Petovan */ class PoToPhp extends \Asika\SimpleConsole\Console { @@ -94,6 +94,7 @@ HELP; $fnname = 'string_plural_select_' . $lang; $out .= 'if(! function_exists("' . $fnname . '")) {' . "\n"; $out .= 'function ' . $fnname . '($n){' . "\n"; + $out .= ' $n = intval($n);' . "\n"; $out .= ' return ' . $cond . ';' . "\n"; $out .= '}}' . "\n"; }