• Resolved sahnas10

    (@sahnas10)


    Hi,

    Thanks for your work. This plugin is amazing !

    We just have an issue with the months translation. We are from France and when we use the change language tab in the admin panel, it not works. The plugin displays months in english.

    Do we have to change it in the php files ? Or is there another way to do this ?

    Thanks and Kheyr Incha’allah.

    Hassan

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author mmrs151

    (@mmrs151)

    Assalamualaikum Hassan,

    Can I see your site please.

    I tested on my site and it is working, so I need to see it first. I am sure the matter is silly and you don’t need to change any php file.

    Mustafiz

    Thread Starter sahnas10

    (@sahnas10)

    Of course, it’s https://s648862793.onlinehome.fr/

    I have made a js function to translate months because I don’t find any other way.

    Thanks

    Plugin Author mmrs151

    (@mmrs151)

    Dear Hassan,

    I don’t see the page. Did you mean the monthly calendar page, where the month translation did not work?
    Or you meant the date on top of the daily prayer timings?

    Thanks.

    Thread Starter sahnas10

    (@sahnas10)

    I mean the date of the daily prayer timings.

    You can see it on the top right of our website :

    https://s648862793.onlinehome.fr/

    Thanks

    Plugin Author mmrs151

    (@mmrs151)

    aha!

    Thank you very much to point this one out. I will fix it and push it soon.

    1. If you have access to the php code I can give you the snippet.
    2. Or I can give you a zip file so you can just upload
    3. you can wait until the next version update

    I know you have already fixed that with js.

    Please let me know if you need it.

    Jazakallah again brother

    Thread Starter sahnas10

    (@sahnas10)

    I have access to the PHP code, so you can give me the snippet if you want, the JS fix is not a good solution for this.

    If you want to give a zip file, you can too, as you want dear brother.

    Barakallahoufik for your great work.

    Plugin Author mmrs151

    (@mmrs151)

    Sorry for the delay.

    I will remember it and will send it to you tonight iA. For now, sending you the php code will be the quickest I believe.

    Plugin Author mmrs151

    (@mmrs151)

    Here you go,
    1. go to Views/DailyTimetablePrinter.php
    2. line 158 and line 257
    3. replace the code ‘$this->formatDate($row[‘d_date’])’ with
    date_i18n( get_option( ‘date_format’ ) )

    And it should work by the will of Allah swt

    Please update me.

    Thread Starter sahnas10

    (@sahnas10)

    Salam,
    It didn’t do the trick. When I replace it, the date didn’t displays anymore.

    So I came back to the old code $this->formatDate($row[‘d_date’]) and now I have 1 January 1970.

    Did I miss something ?

    Barakallahoufik

    Thread Starter sahnas10

    (@sahnas10)

    Salam,

    EDIT : It finally works. The date is translated in French, but it prints 25 avril 2017 and today is 26 avril 2017

    Thread Starter sahnas10

    (@sahnas10)

    EDIT V2 : It finally works ! The issue was my wordpress parameters.

    Thanks for your works. God bless you.

    Thanks,

    • This reply was modified 7 years, 7 months ago by sahnas10.
    Plugin Author mmrs151

    (@mmrs151)

    Alhamdulillah! All praise to Allah who made us brother and we find peace by helping each other.

    I hope I can ask for a review for the plugin now ??

    Jazakallah brother.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Months translation’ is closed to new replies.