• Resolved Otta

    (@otta)


    Is the plugin compatible with WPML to show text in widget popup in different languages?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Perfecty

    (@perfecty)

    Good point @otta, yes, however you need to use the default empty values in Settings so that it uses the translated texts automatically. There is a bug now that replaces the empty values with the default values and doesn’t allow it to work correctly, so please follow: https://github.com/perfectyorg/perfecty-push-wp/issues/143

    Typically bugs have higher priority so you should expect it to be released soon. Thanks!

    Plugin Author Perfecty

    (@perfecty)

    This has been included in the v1.6.0 release

    Thread Starter Otta

    (@otta)

    Thank you for your new release.
    What’s new about WPML?
    I don’t see any folder “language” with .po or .mo file.
    How it’s supposed to work multilanguade widget?
    Thank you.

    Plugin Author Perfecty

    (@perfecty)

    You can download the files from the plugin translation site in WordPress. For example, this is Rusian: https://translate.ww.wp.xz.cn/projects/wp-plugins/perfecty-push-notifications/stable/ru/default/ and on the bottom of the page there’s a tool to export the .po files. You can do the same for any language and can optionally import it to make them official but it needs to align to the WordPress guidelines for translations.

    Thread Starter Otta

    (@otta)

    I have followed your instructions but I don’t uderstand how it works.
    I have downloaded .po and .mo files from your link, then I have uploaded all files inside languages folder but nothing changed.
    So I have renamed files following the structur name-plugin-it_IT.po and name-plugin-it_IT.mo without result.
    I have discovered that if I edit the text for the widget popup in the back-end, the text it’s displayed in all languages, so I have removed my custom text but it seems language files are not used by the plugin.
    Can explain how can display a multilanguage message on the widget popup?

    Plugin Author Perfecty

    (@perfecty)

    Hi,

    This is an example for Russian, which is translated 100%, and was installed via the WordPress Directory. All the text messages were deleted from Perfecty Push > Settings > Public Widget, so that they use the default and translated values:

    https://user-images.githubusercontent.com/691521/155020495-f7f402a0-072f-4649-bb1e-fcbba9838b8e.png

    https://user-images.githubusercontent.com/691521/155020506-96ff51f0-a0f0-4372-b5b6-d05ee55acf4a.png

    https://user-images.githubusercontent.com/691521/155020532-42b22f0b-ef53-4d2f-819c-a454655803ad.png

    Thread Starter Otta

    (@otta)

    Hi,
    can you clarify:
    – what’s the name of the file in each language?
    Are you sure the name of the file is something like wp-plugin-perfecty-push-plugin-stable-ru???
    – where files are to be uploaded? I suppose in the languages folder of the plugin right?

    I kinldly ask you to give me some clear instructions to display a multilanguage widget popup cause in my case it seems the plugin totally ignores language files displaying always English text in the popup widget.

    My plugin is version 1.6.1
    Php 7.3

    Plugin Author Perfecty

    (@perfecty)

    Hi,

    We already provide support internationalization in the plugin according to the WordPress guidelines using the official plugin translations. As mentioned before as an example, when you change your language in your WordPress Settings, it will automatically pick the oficial translations. This means if you want to add support to a different language you should do it through https://translate.ww.wp.xz.cn/projects/wp-plugins/perfecty-push-notifications/stable/

    Could you please clarify what is your use case a bit more and why it’s not sufficient to have the official translations? Have in mind any code change we include in the plugin needs to have a valid reason for it.

    Thank you!

    Thread Starter Otta

    (@otta)

    Hello,

    I would like to change the message and buttons of the widget popup for different languages (italian, English, French, Spanish, German and Russian)

    For Example in English:
    From
    Do you want to receive notifications?
    Not now Continue
    to
    Do you want to receive free notifications about News and Special Offers?
    Cancel Active

    I have already edited .mo and .po files with Poedit but nothing changed.
    Hope you can give me a tip.
    Thank you.

    Plugin Author Perfecty

    (@perfecty)

    Is the site going to be multi-language or a site will only use a single of the mentioned languages?

    Thread Starter Otta

    (@otta)

    Hello,
    site is multilanguage, I use wpml plugin and I need a different text for each mentionated language (IT, EN, FR, ES, DE, RU).
    Hope you can give me a tip, I need to solve this last issue asap.
    Thank you
    Regards

    Plugin Author Perfecty

    (@perfecty)

    Right now we don’t support sending notifications to a specific language so even though you show the dialog/bell messages in the user language, you might still have the problem of sending push notifications in a language that is not the user’s language. In that case you may want to follow this issue https://github.com/perfectyorg/perfecty-push-wp/issues/50

    Thread Starter Otta

    (@otta)

    Hello Perfecty Team and thanks again for your kind support.
    I’m not asking to send notifications in different languages.
    What I’am asking is to display the text of the widget popup in differenent language.
    What can I do to show a custom text as follow?:

    For Example in English:
    From
    Do you want to receive notifications? Not now Continue
    to
    Do you want to receive free notifications about News and Special Offers?
    Cancel Active

    I have already edited .mo and .po files with Poedit but nothing changed.
    Thank you.`

    Thread Starter Otta

    (@otta)

    Hello!
    Is there anybody can help me to solve this “easy” issue?

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘WPML’ is closed to new replies.