![]() |
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 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)
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 }
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]
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.
| Name | Status | |
|---|---|---|
|
|
lead |
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.