Code Monkey home page Code Monkey logo

Comments (8)

Jefferson49 avatar Jefferson49 commented on September 26, 2024

Thank you for reporting the issue!

A first analysis showed that the dates cannot be translated by translation files.

The dates shown in the frontend are generated by PHP (seemingly in helper.php and vote. php). It seems that the dates are not localized in the PHP code. Until now, I have never recognized this.

As a first workaround, you might want to use a date format without written letters (only numbers). You can set the date format in the settings for the polls, e.g.: Date Format = "d.m.Y". However, some month data keeps still visible.

I have started to work on improving the code. However, it needs some more time. I will get back to you after some progress.

from joomla_plugin_sexypolling_reloaded.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

After some struggling, I could find an approach how to translate the dates. I created a beta version with support for the date translation, which is attached as a file and which you can test.

I could not find out how to translate one of the dates. However, if you use Date Format = "d.m.Y" without any "written" monthes, it should be o.k.

It would be nice if you could test and provide some feedback.

joomla_plugin_sexypolling_reloaded_v4.1.5_beta_date_localization.zip

from joomla_plugin_sexypolling_reloaded.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

In the meantime, I found a solution to fix all date translations. Beta version for testing attached.

joomla_plugin_sexypolling_reloaded_v_4.1.5_beta2.zip

from joomla_plugin_sexypolling_reloaded.

gcguner avatar gcguner commented on September 26, 2024

Hi Jefferson49,

Thank your for your kind support. It shows now the names of the months correctly. I noticed it takes the translation from joomla itself, not using the standalone language file.

from joomla_plugin_sexypolling_reloaded.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

Happy to hear, that the updated code is working.

Yes, I changed the code to use a specific Joomla Date class, which provides the translation within Joomla already.

from joomla_plugin_sexypolling_reloaded.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

If it were o.k. for you, it would be nice to contribute your translation files to the project, e.g. attaching it to a Github issue or sending by email: sexypolling.reloaded (at) gmail.com

from joomla_plugin_sexypolling_reloaded.

gcguner avatar gcguner commented on September 26, 2024

Here is the Turkish translation of the component. This is only the frontend part because I'm using Joomla backend in English. If nessecery as a linguist gladly I would do the rest of the translation. Thank you for your effort and letting us use this nice extension for free.

tr-TR.com_sexypolling.zip

from joomla_plugin_sexypolling_reloaded.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

Thank you very much @gcguner for the contribution of the Turkish frontend translation. This will be a very valuable help for further users!

I added the translation file to the code and published it with the new version 4.1.5

from joomla_plugin_sexypolling_reloaded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.