Support » Plugin: uCan Post » [Plugin: uCan Post] "Ucan Post" localization

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author cartpauj

    (@cartpauj)

    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.mo

    Open 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.

    Plugin Author cartpauj

    (@cartpauj)

    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.

    Plugin Author cartpauj

    (@cartpauj)

    Do you have them in the /i18n/ folder?

    Yes. I do.

    Plugin Author cartpauj

    (@cartpauj)

    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?

    Plugin Author cartpauj

    (@cartpauj)

    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.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: uCan Post] "Ucan Post" localization’ is closed to new replies.