WordPress Popular Posts Translations
-
Hi
i have uploaded “ar_TN.php” to “wp-content/languages/plugins” but still no changes in front end WordPress Popular Posts.
please note that i am using “child theme” in my site.
what seems to be the problem?
thanks
-
Hi
thanks for the reply
i did follow ur instructions but still no luck
wp-content/languages/plugins/wordpress-popular-posts-ar_TN.php
please note that i am not using the themes that comes with WP
i am using a theme called “publisher” also i am using the child theme belong to it.
is there any code that i have to insert into the theme functions.php perhaps?
any suggestions?
regards
-
This reply was modified 6 years, 2 months ago by
nd62.
Wait. Why are you using a PHP file? What are you trying to translate?
Hi
i want to translate the “WordPress Popular Posts” front end.
i have found this file at:
wp-content/plugins/wordpress-popular-posts/src/Moment/Locales/ar_TN.php
so i downloaded and re-name it to: “wordpress-popular-posts-ar_TN.php”
than i uploaded to : wp-content/languages/plugins/wordpress-popular-posts-ar_TN.php
so what went wrong?
if “php” translate file not correct where is “WordPress Popular Posts” po translate file than?
i am getting confused now
regards
The files in the
/Moment/Localesfolder are only for translating date-related text. In that case, thear_TN.phpfile should be placed in there and not in the/wp-content/languages/pluginsdirectory (note that future plugin updates will likely delete yourar_TN.phpfile so you either keep a copy of this file somewhere or you send it to me so I can officially include it with the plugin).To translate the rest of the plugin please follow the instructions from this FAQ.
With that being said, does WordPress provide official support for Tunisian Arabic? As far as I can see there’s only Arabic, Algerian Arabic and Moroccan Arabic but not Tunisian Arabic (see here for more).
Did you place the file inside the
/Moment/Localesfolder as I suggested before?Hi
yes
wp-content/plugins/wordpress-popular-posts/src/Moment/Locales/ar_TN.php
Hi @nd62,
Did you set WordPress’ language to Tunisian Arabic? If so, how exactly did you do that? Because -as I previously pointed out- WordPress doesn’t provide an official language pack for it.
Also, please upload your
ar_TN.phpsomewhere (eg. pastebin.com) and share the link here so I can try it out.Hi
first of all, i do not use Arabic version of wp, i use English version but front end
we use Arabic where it is only file.
for “ar_TN.php” here the file:
wp-content/plugins/wordpress-popular-posts/src/Moment/Locales/ar_TN.php
(…) i do not use Arabic version of wp, i use English version but front end
we use Arabic where it is only file.
In that case WPP won’t translate the strings into Arabic as you want because WordPress itself is configured to use the English language and so the plugin will display English dates as well. You’ll need configure WordPress so it uses Arabic instead of English for WPP to show dates in Arabic too.
Hi
WordPress is configured to use the Arabic language on front end only.
we do not use Arabic in admin side at all.
all my articles dates are showing in Arabic accept your plugin and another plugin.
regards
WordPress is configured to use the Arabic language on front end only.
Alright, then allow me to ask again: how did you set WordPress to use Tunisian Arabic on the front end?
Also on a previous comment I requested you to upload your
ar_TN.phpsomewhere, like pastebin.com, so I could test the file.Hi
settings/general/Site Language/Arabic
there is no such Tunisian Arabic. only Arabic
now the site (front end) is RTL and uses the Arabic translation including dates
than edit my admin account to use English so the back-end stay English
here we go:
https://العنكبوت.com/category/lebanon_news/dates in Arabic accept WordPress Popular Posts
sorry, don’t know how to use : pastebin.com
there is no such Tunisian Arabic. only Arabic
In that case, the name of the
ar_TN.phpfile isn’t the right one to begin with.ar_TNis Tunisian Arabic. WordPress -as I mentioned before– only provides support for Arabic, Algerian Arabic and Moroccan Arabic. Assuming you’re using the first one (Arabic), change the name of your PHP file to justar.phpand the plugin should be able to pick up your translations.sorry, don’t know how to use : pastebin.com
- Go to pastebin.com.
- Copy the contents of your
ar_TN.phpfile and paste them inside the New Paste field. - Click on the Create New Paste button.
- Once done, copy the URL of the “Paste” where your code is and share it here.
-
This reply was modified 6 years, 2 months ago by
The topic ‘WordPress Popular Posts Translations’ is closed to new replies.