protected function createMultiArray(array $translations)
    {
        $res = array();

        foreach ($translations as $keyString => $value) {
            $keys = explode('.', $keyString);

            //$keyString might be "Hello world."
            $keyLength = count($keys);
            if ($keys[$keyLength - 1] == '') {
                unset($keys[$keyLength - 1]);
                $keys[$keyLength - 2] .= '.';
            }

            $this->addValueToMultiArray($res, $value, $keys);
        }

        return $res;
    }