• Resolved nd62

    (@nd62)


    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

    • This topic was modified 4 years, 9 months ago by nd62.
    • This topic was modified 4 years, 9 months ago by nd62.
Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @nd62!

    It’s the filename. Assuming the language code is correct (ar_TN) then your file should be named as wordpress-popular-posts-ar_TN.php (as stated on this FAQ) for WordPress to recognize your translation.

    Thread Starter nd62

    (@nd62)

    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 4 years, 9 months ago by nd62.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Wait. Why are you using a PHP file? What are you trying to translate?

    Thread Starter nd62

    (@nd62)

    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

    • This reply was modified 4 years, 9 months ago by nd62.
    • This reply was modified 4 years, 9 months ago by nd62.
    Plugin Author Hector Cabrera

    (@hcabrera)

    The files in the /Moment/Locales folder are only for translating date-related text. In that case, the ar_TN.php file should be placed in there and not in the /wp-content/languages/plugins directory (note that future plugin updates will likely delete your ar_TN.php file 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).

    Thread Starter nd62

    (@nd62)

    Plugin Author Hector Cabrera

    (@hcabrera)

    Did you place the file inside the /Moment/Locales folder as I suggested before?

    Thread Starter nd62

    (@nd62)

    Hi

    yes

    wp-content/plugins/wordpress-popular-posts/src/Moment/Locales/ar_TN.php

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.php somewhere (eg. pastebin.com) and share the link here so I can try it out.

    Thread Starter nd62

    (@nd62)

    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

    Plugin Author Hector Cabrera

    (@hcabrera)

    (…) 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.

    Thread Starter nd62

    (@nd62)

    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

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.php somewhere, like pastebin.com, so I could test the file.

    Thread Starter nd62

    (@nd62)

    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

    • This reply was modified 4 years, 9 months ago by nd62.
    • This reply was modified 4 years, 9 months ago by nd62.
    Plugin Author Hector Cabrera

    (@hcabrera)

    there is no such Tunisian Arabic. only Arabic

    In that case, the name of the ar_TN.php file isn’t the right one to begin with. ar_TN is 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 just ar.php and the plugin should be able to pick up your translations.

    sorry, don’t know how to use : pastebin.com

    1. Go to pastebin.com.
    2. Copy the contents of your ar_TN.php file and paste them inside the New Paste field.
    3. Click on the Create New Paste button.
    4. Once done, copy the URL of the “Paste” where your code is and share it here.
Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘WordPress Popular Posts Translations’ is closed to new replies.