symfony API

I18NHelper Functions

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

I18NHelper.

Function Summary

Function Details

  • format_country () Browse code

  • format_language () Browse code

  • (string) format_number_choice ($text, $args, $number, $catalogue) Browse code

    $text Text used for different number values
    $args Arguments to replace in the string
    $number Number to use to determine the string to use
    $catalogue Catalogue for translation

    Format a string according to a number.


    Every segment is separated with |
    Each segment defines an intervale and a value.

    For example :

    * [0]Nobody is logged|[1]There is 1 person logged|(1,+Inf]There are %number persons logged

    returns Result of the translation

  • __ () Browse code