Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.0.5stable
|
MIT license |
1.0.5stable
|
04/03/2009 |
|
1.0.2stable
|
MIT license |
1.0.2stable
|
03/03/2009 |
|
1.0.1stable
|
MIT license |
1.0.1stable
|
19/02/2009 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
18/02/2009 |
|
0.2.1beta
|
MIT license |
0.2.1beta
|
06/02/2009 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
0.0.4beta
|
MIT license |
0.0.4beta
|
05/02/2009 |
Changelog for release 1.0.2 - 03/03/2009
- denny: automatic clear cache
- denny: support for more apps
- denny: german dictionary
- denny: possibility to manage invalid keys
- serg: russian dictionary
- vojta: some code refactoring
- vojta: update managing invalid keys
- vojta: layout changes
Other releases
Release 1.0.5 - 04/03/2009
- vojta: fixed bug in JS fixed
- vojta: fixed bug (warning, when translate_apps is not set)
- vojta: fixed bug (declaring of an array in actions.class.php)
Release 1.0.2 - 03/03/2009
- denny: automatic clear cache
- denny: support for more apps
- denny: german dictionary
- denny: possibility to manage invalid keys
- serg: russian dictionary
- vojta: some code refactoring
- vojta: update managing invalid keys
- vojta: layout changes
Release 1.0.1 - 19/02/2009
- vojta: some code refactoring
- vojta: css changes (suited for sf_admin)
- vojta: bug with checking keys (ajax saving) fixed
- vojta: dictionaries renamed
- vojta: other small changes
Release 1.0.0 - 18/02/2009
- vojta: possibility to change existing keys
- vojta: trimming keys
- vojta: btn quick add into action (filled module, action)
- vojta: displaying full keys
- vojta: possibility to edit invalid messages
- vojta: lower case module, action (in key)
Release 0.2.1 - 06/02/2009
- vojta: first release for S 1.2
Release 0.0.4 - 05/02/2009
- vojta: repaired bug (routing case sensitive)
- vojta: possibility to edit also modules and plugins i18n
- vojta: add exceptions and error lists
- vojta: helper implemented __()
- vojta: JS validation of keys
sfEleAdminI18n plugin
The sfEleAdminI18nPlugin is a symfony plugin that provides a simple tool for administrating i18n dictionaries.
It gives you a module sfEleAdminI18n - that is the user interface of this tool.
Installation
Install the plugin
$ symfony plugin:install sfEleAdminI18nPlugin
Copy the /web folder.
Copy this folder from plugin directory into you sf /web.
(When you use pear install on unix, you don't have to do this)
Set the module enabled in /apps/your_app/config/settings.yml
all:
.settings:
enabled_modules: [..., sfEleAdminI18n]
Set the i18n enabled in /apps/your_app/config/settings.yml
all:
.settings:
i18n: on
Clear your cache
$ symfony cc
Configuration
You can set separator for keys, in /apps/your_app/config/app.yml
all:
sfEleAdminI18n:
separator: "_"
use_self_defined_key: true #no error, if the key is not wellformed
translate_apps: [frontend, backend] #apps to translate
Structured view
All messages from opened dictionary are grouped by module and action.
If you want to work this right, you have to use this convention in all keys:
module-separator-action-separator-caption
An example of some keys:
- GALLERY_INDEX_author
- USER_LOGIN_password
- GALLERY_INDEX_name
- USER_LOGIN_name
- GALLERY_LIST_photo
The plugin will generate something like this:
GALLERY
- INDEX
- author
- name
- LIST
- photo
USER
- LOGIN
- name
- password
Very huge dictionaries are pretty transparent now.
- And you can also use fast navigation between modules.
Design
- Whole application is suited to use sf_admin theme (or advanced theme sf_ele_admin)
- You can change the default sf_admin theme, as you want.
If you want to use this theme, just put into your /apps/your_app/config/view.yml
default:
stylesheets: [/sf/sf_admin/css/main.css, ...]
Renaming existing keys
- If you need to rename an existing key, just click on its caption. Input text box will appear then.
Adding and deleting messages
- When you add or delete a message. This message will automaticly added to or deleted from all languages.
- Pretty fast, isn't it ?
sfEleAdminI18n Helper
- If you use structured keys, this helper will help you a lot.
- It takes as a parameters: caption, action, module, arguments for i18n, catalogue.
- If you do not set action or module it will print the actual one.
Author