YahnisElsts/wp-update-server

فایل های ترجمه کار نمیکند

Closed this issue · 18 comments

متاسفانه فایل های ترجمه فراخوانی نمی شود و کلمات فقط به زبان انگلیسی نمایش داده می شود

Translation by Google Translate:

Unfortunately the translation files are not called and the words are displayed in English only

I can't seem to reproduce that issue. As a test, I changed the language on one of my sites to Italian (PUC has translation files for this language) and the "Check for updates" link was correctly translated:

put-translation-example

Then I switched to German and that also worked as expected:

puc-translation-example-2

Which language are you trying to use, and does PUC actually have a translation file for that language?

منظور من موارد زیر است:
The test aminb plugin is up to date.

A new version of the elementor plugin is available.

Is this the Persian language (fa_IR)? It looks like the translation that we have for that language is more than 4 years old and it is missing translations for a few messages including the ones shown in your screenshots.

I don't know any Persian so I can't fix this myself. If you're familiar with how plugin translation works, feel free to submit updated .po and .mo files for this language.

فایل زبان جدید را ساختم اما مشکل رفع نگردید
دانلود فایل زبانم فارسی جدید
https://uupload.ir/view/3e_plugin-update-checker-fa_ir.zip/

It looks like you only have a .po file. For the translation to work, you also need to compile that .po file to a .mo file and put that in the same directory. Here, try this .mo file:
plugin-update-checker-fa_IR.zip

خیر در فایل اصلی پلاگین هر دو فایل را قرار دادم
این فایل را برای بررسی شما قرار دادم

اگر ممکن است شما با استفاده ار فایلی که من فرستادم
شما فایل دوم را تولید کنید
و زبان سایت را روی فارسی قرار دهید
و موضوع را بررسی کنید

All right, here it is:
puc-fa-check-for-updates

It looks like the "new version is available" message is translated. I'm using the .po file that you sent me and a .mo file that I generated myself.

If it's still not working for you, could it be that there are multiple active plugins on your site that are using different versions of plugin-update-checker? In general, only one copy of PUC will be able to load its translations, so if an older version is being loaded first, your new translation might not show up.

نسخه 4.10 را دانلود کردم
در مرحله بعد کامل پوشه نسخه 4.10را به داخل پوشه پلاگین اضافه کردم

Right, but are the any other active plugins or themes that could be using this update checker?

بله
یک پلاگین دیگر از این سیستم استفاده میکند
ولی در هر دو پلاگین از نسخه 4.10 استفاده شده است

So could it be that the other plugin is executed first, so it loads its old copy of the .mo file and not your new version? Try placing your .po/.mo files in the languages subdirectories of both plugins.

اگر امکان دارد فایل هایی را که شما تولید کردید را اپلود نمایید تا من دانلود کنم و مجدد امتحان کنم

I already included the .mo file in an earlier comment. But sure, here are both files:
plugin-update-checker-fa_IR.zip

مشکل برطرف گردید
موضوع مشکل نکته ای بود که شمکا به آن اشاره کرده بودید
متشکرم

All right, I'll close this then.