-
AuthorPosts
-
October 8, 2020 at 3:14 pm #8146graciaacParticipant
I need to change the language of the date. Currently it is in English and my wordpress is in Catalan. Spanish would also be valid. I have not seen option in the configuration
October 8, 2020 at 6:18 pm #8147Aakash ChakravarthyKeymasterNovember 14, 2020 at 3:28 pm #8427易子轩ParticipantVery much agree! I need this too.
But in fact, obviously there is no need to add support for every language.
Just use Arabic numerals, you provide us with the variables of yy, mm, dd, and let us add the remaining characters and formats.Or, you can use yyyy-mm-dd or other internationally accepted expressions without any vocabulary by default, so that everyone can understand even if their native languages are different
November 14, 2020 at 11:54 pm #8428Aakash ChakravarthyKeymasterHi All,
I still have this item in my todo list.
The plugin just displays whatever is available in the RSS feed. I think this feature is something which is beyond the scope of the plugin as the functionality of the reader is to display the RSS feed as is.
This translation can apply to anything like, title, description. Just translating only date would be the odd one out.
The ideal way would be the RSS feed has content in the required language.
But anyways, this idea is still active. I’ll consider the possible ways of understanding date time and i’ll have an option to convert it to WP language
Thanks,
AakashNovember 15, 2020 at 11:48 pm #8435graciaacParticipantA good option would be to choose how to display the date. If it were with numbers, translations would not be necessary.
Is it possible to modify the code to make it show with numbers?November 16, 2020 at 12:39 am #8436易子轩ParticipantOf course, I believe that everyone uses their own native language as much as possible.
So as you said, the translation function is beyond the plugin. At least I don’t need translation function.
However, I use Chinese, and the RSS feed is completely Chinese. At this time, I checked the date display function and found that it displays the year and date in Arabic numerals, but it displays the month in English words.
So I think there may be something wrong with this.
That’s why I suggested that using Arabic numerals. This may be an easier solution to adapt to different languages.
November 16, 2020 at 12:41 am #8437Aakash ChakravarthyKeymasterHi @graciaac,
If translation is not needed but if you want to change the date format then it is pretty simple.
Please edit the below line in
super-rss-reader/includes/feed.php
https://plugins.trac.wordpress.org/browser/super-rss-reader/trunk/includes/feed.php#L149
You can change
j F Y
to the format as mentioned in the page below.
https://www.php.net/manual/en/datetime.format.phpAn example would be
d-m-Y
to show date as01-12-2020
Thanks,
AakashNovember 16, 2020 at 12:53 am #8438graciaacParticipantNow perfect. It appears in numbers. Thank you
November 16, 2020 at 12:37 pm #8440易子轩ParticipantCheers! It looks like you can delete this item from your todolist! XD
November 16, 2020 at 4:13 pm #8442Aakash ChakravarthyKeymasterThanks everyone !
January 22, 2021 at 10:03 pm #8872Luis van BarenParticipantHi Aakash,
I really need to know how I can change the language… I understand that this is still on your to do list, but please let me know a quick fix for now… I need the Dutch language…January 23, 2021 at 1:10 am #8874Aakash ChakravarthyKeymasterHi Luis,
If your General -> “site language” is Dutch, then you can try the change below.
Plugin editor -> super-rss-reader/includes/feed.php
Replace line 149
$date = $item->get_date( 'j F Y' );
with below lines
$timestamp = $item->get_date( 'U' ); $date = date_i18n('j F Y', $timestamp);
This basically displays the date as per your website’s site langauge setting.
Thanks,
Aakash -
AuthorPosts
- You must be logged in to reply to this topic.