WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Changing language problems [HELP!] (16 posts)

  1. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello folks,

    I am writing to you because I'm going mad! I don't know what my (possible) mistake is, I simply can't change the "Events manager" language to european portuguese "pt_PT" :(

    I've already done the following steps:

    1 - I've got the "pt_PT" files to change my wordpress settings and I've also done the proper configurations in the "wp-config.php" where I've changed the "define ('WPLANG', ''); to "define ('WPLANG', 'pt_PT'); - I saw NO action in "Events Manager" options

    2- I've tried also the "Codestyling Localization" plugin, that does a similar work to Po edit (but inside the wordpress back end) and without success - It shows a warming message telling the following "Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain.
    It seems, that there is code contained extracted out of other plugins, themes or widgets and used by copy & paste inside some source files.
    The affected unknown textdomains are: wpfc
    ". I really can't understand what it means!

    3- At this moment I can see that Portuguese files that come with "Events Manager" are Google translated and some parts aren't translated. However, it's strange nothing appearing translated, right?

    PS: BY the way, I'm working hard to translate it line by line to upload it to this amazing community.

    PLEASE, help me with this! I'm a newbie and with no more means!

    THANK YOU! :)

    https://wordpress.org/plugins/events-manager/

  2. angelo
    NetWebLogic Support
    Posted 2 months ago #

    hi,

    did you try to use translated wordpress instead at http://codex.wordpress.org/WordPress_in_Your_Language ?

  3. sergioleitepiano
    Member
    Posted 2 months ago #

    Dear Angelo,

    I'm not sure if I've understood your question.
    Yes, I made the download of the worpress files .po and .mo from the europeia portuguese page.
    My language is set up as portuguese in my Dashboard.
    I'm start to think the only solution to my situation is to go to the .php files on events manager and translate line by line! :(
    Thanks

  4. philipjohn
    Member
    Posted 2 months ago #

    Hiya,

    Exactly which parts of EM aren't translated? Is any of it translated?

    Where did you get your translation files from, and where are you placing them?

    Thanks
    Phil

  5. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello Phil,

    I only can see translated on my website what I'm able to change in my events manager admin area "formatting". However, and this is the MOST important to me, I would like to seed the [event_form] content translated to my language, this is the most important to me because it will be the form available to the public! :( The .po. and .mo I have are provided inside Events manager (not well translated but in po edit I can see that the event_form lines are translated - so, why are't they appearing translated?).

    I'm translating the .php files changing every string that has the "deem". I've only translated some, however, and I don't know why, when installed on wordpress the program isn't working properly: the icon disappears and it loses abilities like the "uninstall" plugin button, create an "events" page, etc!

    Man, I'm really going mad! :( This plugin is, far way, one of the best (although I'm YET with the free version to test it) and i'm experience hard problems to translate it! I'm sad! :(

    Thanks

  6. caimin_nwl
    NetWebLogic Support
    Posted 2 months ago #

    Are you using a translation plugin like WPML or something similar?

  7. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello Caimin,

    No, at this moment, no.
    I tried it and i really didn't understand how to use it to help me with "Events Manager".
    Thanks

  8. sergioleitepiano
    Member
    Posted 2 months ago #

    (On my 3rd post please read "dbem" instead of "deem". Typing mistake)

  9. angelo
    NetWebLogic Support
    Posted 2 months ago #

    hmm, let me try this and update you here.

    [edited]

    you can translate [event_form] using template file at events-manager/templates/forms/event-editor.php

    to use template: http://wp-events-plugin.com/documentation/using-template-files/

    eg.
    wp-content/themes/Your Theme/plugins/events-manager/forms/event-editor.php

  10. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello Angelo,

    I'll try this and then I let you know. Thanks :)

  11. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello again, Angelo!

    Your tip definitely helped! THANK you! :) I've translated all the templates folder and the [event_form] is working in portuguese like a charm! Now I only have 2 more challenges: how to see the calendar with week days and months in portuguese and countries list translated in portuguese. Can you tell me, please, what documents I need to translate? Thank again

  12. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello again folks,

    My event-forms are really working great! :) THANK YOU! :)
    Now I have a BUT....where can I change the language calendar to portuguese? In which folder/php file?

    Please see the picture to understand what I am talking about: https://www.dropbox.com/s/krigy55u82kc3ol/Captura%20de%20tela%202014-02-07%2014.12.52.png

    THANKS :)

  13. philipjohn
    Member
    Posted 2 months ago #

    Hiya,

    It looks like you need to replace the bundled version of jQuery datepicker with a localised one: http://jqueryui.com/datepicker/#localization

    To do this properly you should use wp_dequeue_script (to remove the bundled version) and wp_enqueue_script (to add the localised version).

    Thanks,
    Phil

  14. sergioleitepiano
    Member
    Posted 2 months ago #

    Hello Philippe,

    I'm not a programmer so, i didn't understand a Single word. :(
    I simply can't translate it inside the events manager php (or other extension) files?
    Thanks

  15. caimin_nwl
    NetWebLogic Support
    Posted 2 months ago #

    Unfortunately not, you'll need to use the function Phil mentioned above:

    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

  16. sergioleitepiano
    Member
    Posted 2 months ago #

    What a pity! :( I'l try to figure how to do that! Thanks for your support, folks! Have a nice week.

Reply

You must log in to post.

About this Plugin

About this Topic