Comments (8)
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.
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.
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.
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.
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.
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.
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.
from joomla_plugin_sexypolling_reloaded.
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)
- No changelog link shown for plugin Button - Sexypolling Polls
- Ínvalid token (Joomla 5.1.0) HOT 9
- Feature Request: Permissions for Answers and Votes, and Export/Import Functionality HOT 14
- Bug report: All location information shows as "Unknown" in Votes HOT 6
- Confirmation of technical requirements HOT 4
- End date of poll is not correctly handled if option "Show Results During Poll" is set to "no" HOT 1
- Inserting a poll into an article using shortcode [sexypolling id="id"] HOT 27
- Setting for poll width 100% is not used; instead fixed value for poll width is used
- Creating a new poll based on the settings of an existing poll HOT 2
- Add a button to the article editor in order to embed polls into articles HOT 2
- Issue with "Show Results During Poll" to "no” HOT 4
- Poll animation is shown although setting "Show Results During Poll" is set to "No"
- Date defaults to 2024-01-11 if an empty start date or end date is saved in poll settings
- Warning message about start time of vote shows wrong time delta until vote will start HOT 11
- No warning message is shown if user votes again and vote is rejected due to voting period setting HOT 1
- No animation of voted poll although setting "Autoanimate For Voted Polls" is set to "yes" HOT 1
- Plugin name not translated if plugin is deactivated or after new installation
- PHP error if opening the statistics for a poll: "An error has occurred. 0 Class "JHtmlSidebar" not found"
- SQL error when adding count to field Insert votes in Answers HOT 3
- PHP error in template view: com_sexypolling/helpers/footer.php: No such file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joomla_plugin_sexypolling_reloaded.