@phoenix-plugin-registry/korri.citranslate
v0.1.0
Published
Tool to help translate CodeIgniter template, works with PHP and Smarty. Automatically places the string into languages files and replaces it by a key. Allows modifying the translations from the template.
Downloads
1
Readme
#brackets-ci-translate
Brackets.io extension aiming at simplifying translation of CodeIgniter projects.
##How to use
You can do two things with the plugin, you need to "Open Folder" you project first.
###Translate a non-translated string:
- Select text you want to translate
- Click on
Edit => CITranslate: Translate Text
or press Ctrl+Alt+Shift+T - Enter the key you want to use in the modal then press
Enter
- Enter you translations in the new modal then press
Enter
- Files are now edited, but you must save them in order to apply changes (Or hit Ctrl+Z if something is messed up)
###Edit a translation.
- Place cursor inside the call to
lang('')
function. - Click on
Edit => CITranslate: Edit Translation
or press Ctrl+Alt+Shift+R - Enter you translations in the new modal then press
Enter
- Files are now edited, but you must save them in order to apply changes (Or hit Ctrl+Z if something is messed up)
###Confguration
You can add a .citranslate
json file at the root of the folder you open with Brackets, here is an example of configuration:
{
"language_file": "my_lang",
"language_folder": "application/language"
}
Or if you prefer to open /application
directly
{
"language_file": "my_lang",
"language_folder": "language"
}
###Changelog ####v0.1.0
- Changed shortcuts cause if wasn't working on gnome
- Allowed changing the language folder path
- Added support for .citranslate file to specify config
####Donate Want to pay me a beer, why not with dogecoin ? DMpRH9DKQHnUTvXYQ6sSqb9UN883WpmzrX