szSelectCulturePlugin - 0.1.0

szSelectCulture es un plugin que incluye un filtro y varios metodos para gestionar los idiomas y la cultura en una pagina web, lo diferencia de otros en la posibilidad de utilizar una base de datos para gestionar las culturas de la web y la de mostrar los nombres de los idiomas en los metodos de seleccion cada uno en su propio idioma

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
The release "default," does not exist for plugin "szSelectCulturePlugin".
szSelectCulturePlugin 0.1.0alpha for sf 1.2 and Propel MIT
Plugin image
3
users
Sign-in
to change
your status

szSelectCulture es un plugin que incluye un filtro y varios metodos para gestionar los idiomas y la cultura en una pagina web, lo diferencia de otros en la posibilidad de utilizar una base de datos para gestionar las culturas de la web y la de mostrar los nombres de los idiomas en los metodos de seleccion cada uno en su propio idioma

szSelectCulturePlugin

szSelectCulturePlugin class provides filters and methods for maintaining url with language/culture and change it maintainig old url and component for (form select or link style selection of new language/culture)

Installation

Install the plugin:

$ symfony plugin:install szSelectCulturePlugin

Or download it and unzip in your /plugins directory

Clear you cache:

$ symfony cc

Active module in your app/[application]/config/settings.yml

enabled_modules: [default, szSelectCulture]

Change your filters in app/[application]/config/filters.yml

rendering: ~

security: ~

culture:

class: szSelectCultureFilter

cache: ~

common: ~

execution: ~

Add a route named changeculture in app/[application]/config/routing.yml

changeculture:

url: /:sf_culture/changeculture params: { module: szSelectCulture, action: index }

Usage

You just need to add one of the following lines of code in your template where you want to insert the select culture methods

[php]

or

[php]

Personalization

If you prefer any other style, create a new directory called

app/[application]/modules/szSelectCulture

and other

app/[application]/modules/szSelectCulture/templates

in templates directoy create a _select.php or _links.php file to overwrite the default layout for these methods.

Developers

Name Status Email
gravatar Sergio Zambrano Delfa lead se.onarbmazoigres <<ta>> oigres

License

Show source

Plugin by Sergio Zambrano (Skilla). (sergio[at]sergiozambrano[dot]es)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.