Update "mrpetovan" email address
[friendica.git/.git] / src / Core / Console / PoToPhp.php
index 62ff24b..b7c9bfa 100644 (file)
@@ -5,7 +5,7 @@ namespace Friendica\Core\Console;
 /**
  * Read a messages.po file and create strings.php in the same directory
  *
- * @author Hypolite Petovan <mrpetovan@gmail.com>
+ * @author Hypolite Petovan <hypolite@mrpetovan.com>
  */
 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";
                        }