Trying to translate the 404 page with no success

edited April 2020 in Theme support
Hi there

I can't find a way to translate my 404 page. I went in the 404.php code and saw this code
$translate['404-title'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-title', 'Ooops... Error 404') : __('Ooops... Error 404', 'betheme');

What does it do? Can I translate from here?

I'm using Polylang

thank you

Comments

  • Hi,


    Sorry, but we did not test this script/plugin with the theme. Our policy states that we do not support third party plugins or custom code so unfortunately, we cannot be of any help to you.
    Also, we cannot recommend any plugins other than the ones we support. You can find the list on this page, in the sidebar:
    https://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048

    thanks
  • I understand you dont support third-party modules but isn't it a basic question? Am I the first to ask a question about translation? 

    Could you at least tell me what the function in the 404.php is doing?
  • edited April 2020
    After some research I found that you can translate the 404 in your theme options.

    But it doesn't seem to work as the value entered in the input fields is displayed on both languages.
  • If you would like to create a 404 page with your text inside, you can just create another page and set it as a 404 page, you don't have to translate the strings at all.
    Theme Options > Pages > Error 404

    Thanks
  • strange answer the 404 Page is content of the be-theme
    why doesnt work any customisation of the translation.
    btw. why the languange file are not open?

    in the 404.php is a call fpr translation, but maybe there in the languagefile nothing
    $translate['404-title'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-title', 'Ooops... Error 404') : __('Ooops... Error 404', 'betheme');
    $translate['404-subtitle'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-subtitle', 'We are sorry, but the page you are looking for does not exist') : __('We are sorry, but the page you are looking for does not exist', 'betheme');
    $translate['404-text'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-text', 'Please check entered address and try again or') : __('Please check entered address and try again or ', 'betheme');
    $translate['404-btn'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-btn', 'go to homepage') : __('go to homepage', 'betheme');
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class="no-js<?php echo esc_attr(mfn_user_os()); ?>">

    dont know what it have to do with plugins and third party
  • All translation are open and available in the theme folder.
    You can use our theme options>translate to change some things.
    For more changes you have to edit the language files manually or use a plugin like POeditor.
    thanks
  • as i seen the lnguage file are assemble and not editable
  • and sorry POeditor is commercial why i must pay for edit a translation?
  • As Bryan said, all of the translations which are available with standard BeTheme can be found in the Theme Options > Translate - there you will find fields for 404 page too

    For multilingual or more advanced translations of our theme, you would have to use WPML or POEdit plugin.
    Thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.