[Plugin: uCan Post] "Ucan Post" localization
-
I wish this plugin was localized. It is the best-looking and the most user-friendly plugin for post-submission. But you cannot have it in languages other than English.
-
It supports other languages. It looks like I forgot to include a Template.POT file. I will create one for the next release that you can use with a tool like Poedit to translate into your own language. If you need more help hit me up at my forums at http://cartpauj.com/forum
Thanks. You need to name the “pot” file “ucan-post.pot” and place it in a folder called languages (or you can place it in the main folder.) Otherwise some translation devices cannot locate the localization file.
I translated the pot file but it didn’t work on the site. The site still shows the english words. I think this is caused because the pot file and the translation files are in the folder “i18n”.
No, this method is working fine for all other plugins. Make sure you name the translated files ucan-post-LANGUAGE.po and ucan-post-LANGUAGE.mo and put them in the /i18n/ folder.
Example the french language would be ucan-post-fr_FR.po and ucan-post-fr_FR.moOpen the .POT file in Poedit, translate and then do a SAVE-AS, this will generate the .po and .mo files for you, don’t actually leave the .POT file translated.
Exactly thanks Jim.
That is what I did. The files are named “ucan-post-fa_IR.mo” and “ucan-post-fa_IR.po”.
It does not work.Do you have them in the /i18n/ folder?
Yes. I do.
The last release fixes this. I apologize but there was an error in the directory structure for the i18n files. Should work fine now. Thanks for your patience on this one!
Thanks. That fixed the problem of localization. The only problem I have now is that the text box is LTR (left-to-right) for left-to-right languages. How can I change the default for the text box to RTL?
Thanks. That fixed the problem of localization.
The only problem I have now is that the text box is LTR (left-to-right) for left-to-right languages. How can I change the default for the text box to RTL? Is it possible for you to add an option to the settings page for RTL languages?
Let me know if this works, try changing this (near the top of ucan-post-class.php):
<script type="text/javascript"> tinyMCE.init({ mode : "specific_textareas", theme : "advanced", skin : "o2k7", editor_selector:"theEditor", width:"80%", theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontsizeselect,formatselect", theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,image,media", theme_advanced_buttons3 : "forecolor,backcolor,|,emotions,charmap,spellchecker,|,code,preview,|,help", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", plugins : "emotions,preview,safari,spellchecker,media" }); </script>To this:
<script type="text/javascript"> tinyMCE.init({ mode : "specific_textareas", theme : "advanced", skin : "o2k7", editor_selector:"theEditor", width:"80%", theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontsizeselect,formatselect", theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,image,media", theme_advanced_buttons3 : "forecolor,backcolor,|,emotions,charmap,spellchecker,|,code,preview,|,help", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", plugins : "emotions,preview,safari,spellchecker,media", directionality : "rtl" }); </script>This plugin is fantastic but strange that the plugin does not work here for videos
Thanks. That fixed it.
The topic ‘[Plugin: uCan Post] "Ucan Post" localization’ is closed to new replies.