Okay
  Public Ticket #1172472
language issue
Closed

Comments

  • Lawrence started the conversation

    Hi, I am a purchaser of Monument WP theme. My site is www.brain-classroom.com. It is completely written in traditional Chinese language. I try to make everything in Chinese. However, there are still areas that I can't change. Those are present in the right side bars, such as "select category", "continue reading...", "select month", "previous post", "next post", "search". Also, the "menu" botton on mobile version can't be changed to Chinese. Please see if you can allow user to define these in their own language.

    Furthermore, on my front page, I am using a multiple post template. However, as stated in your website, it does not allow side bar to be added. If I need to add it, I have to use a very special template to do the job. I did try it. However, it is a very complicated process to load that specific sample page and change each and every content. It is counterintuitive that there is no such functionality to allow side bar to be added.

    Lastly, concerning the general text in every posts, I found that the text are in grey colour instead of black colour by default. They seem to me a little bit too light. How can I darken them a bit, or else can we select the level of darkness?

    Attached please find some screenshot of my issue.

    Regards,
    Lawrence

    Attached files:  Screenshot 2017-05-13 13.08.18.png
      Screenshot 2017-05-13 13.08.09.png

  •  27
    Oliver replied

    Hi Lawrence,

    To make your website full Chinese language you need to localize the theme (and also plugins) to your language. Please read the theme documentation on how to do so. For WebMan Amplifier localization please refer to the plugin's documentation. As for other plugins, please refer to their respective documentation.

    I don't quite understand the front page issue. What do you mean by "multiple post template" and can you provide a screenshot and/or URL to where I state it is not possible to display sidebar there, please? If you want to display posts on your website front page, don't set up any static front page in that case as WordPress will display posts on your front page by default then.

    I can see you are using a page builder on your front page. You can add a sidebar to a page builder page just by creating a column and adding WordPress widget in there. You can then set a "widget-title-style" CSS class for the widget if you want to style its title as in normal theme's sidebar.

    As for text color, you can change this in Appearance > Customize > Theme Options > Colors: Content.

    Best regards,

    Oliver Juhas
    WebMan Design

  •  27
    Oliver replied

    Hi Lawrence,

    Could you please provide update on the ticket, does my previous reply answer all your questions about the issue? Can I close the ticket now?

    Best regards,

    Oliver Juhas
    WebMan Design

  • Lawrence replied

    Dear Oliver,

    Thank you very much for your reply. It is very helpful!

    I tried your suggested method to change the site to Chinese language. Unfortunately, it does not work. Those text are "strings", namely "select month", "select category", "previous", "continue reading...". It seems that these are not related to your theme. It is strings provided by Wordpress. For example, the "read more" insertion into the text can generate "continue reading...". This seems not related to your theme. As such, I cannot translate the English with the method you suggested. I tried to install other plugin to solve the use, which include Polylang and Loco language. However, most plugins are suppose to translate my whole website. They do not only translate the English text, but also screw up other Chinese text. What I want is to replace very selective English string only. For the Polylang plugin, it also generate a whole new set of URL in Chinese language, which is not what I want. I just want a pure Chinese web site but somehow there is some strings are in English in the Monument Valley theme. I attach a screen shot for part of my problem.

    I am now exploring "Snippets" plugin to try coding with string replacement. Yet, it still fails to do the job. I would be grateful if you can help me out to find a easy way to selectively replace those strings .


     I did successfully add a code on the function.php to change "select category", but I don't know how to change the rest as I don't have those specific code. Any how, I messed up the whole site by wrongly changed the function.php.... It is very scary and luckily I can restore the site with CodeGuard from Hostgator.

    Concerning the side bar, I can fix it. For the colour of the font, I follow your way and it is done. Thank you!

    Lawrence

    Attached files:  IMG_7824.PNG.PNG

  •  27
    Oliver replied

    Hi Lawrence,

    First, please never edit the theme core files. If you need to modify something in the theme, use a child theme, but replacing all the theme's texts to Chinese is not a solution here. There is a simpler, more flexible one.

    Have you managed to translate the theme and plugins into Chinese? Some of those texts are related to the theme and plugins and some of them to WordPress itself (the "Select Category/Month" for example).

    1. First switch your WordPress to Chinese language:

    If WordPress is translated into Chinese, you can simply set it to use Chinese by default in Settings > General. It will make all WordPress related texts translated into Chinese. So, the "Select Category/Month" should be resolved by that. (From WordPress websites it seems only Hong Kong Chinese is translated 100% though... So, is your language fully supported by WordPress, can you select it on settings page?)

    2. Then translate the theme (and plugins) to Chinese:

    Now you still need to translate the theme (and plugins) to Chinese on your own as the theme is not localized for Chinese language out of the box. Without translating the theme you will still see those English texts on your website. Please follow the procedures I've linked to in my previous reply to translate the theme (and plugins) into Chinese.

    3. What plugin to use for translation?:

    Polylang plugin will not help you translate the theme and plugin texts into Chinese. That plugin is only for creating a multilingual websites, so the website where you can switch from English to Chinese and vice versa, for example. This plugin is not for you in this case.

    But Loco Translate plugin should do perfectly fine. Please read the Loco Translate plugin documentation or ask their support for help. You can read the plugin's beginners guide at https://localise.biz/wordpress/plugin/beginners

    As for "Snippets" plugin, I don't know it, but I doubt it will help.

    4. What to do if you language is not supported?:

    If your Chinese language version is not supported by WordPress you will most likely not be able to switch the WordPress to that language and use Loco Translate plugin to translate the theme and other plugins.

    This is unfortunate situation for you as you need to set the WordPress to your language locale manually via `wp-config.php` file and translate the theme with Poedit software and place the translated language files into your child theme - more at https://webmandesign.eu/manual/monument-valley/#localization. Then you need to translate plugins with Poedit too and place the language files according to each plugin documentation. You can also watch a video I have found of this procedure.

    My story...

    Trust me, using Loco Translate or translating the theme/plugin with Poedit software will help. I am not English speaker myself either, so I need to translate themes all the time. Actually, I translated all my themes into Slovak by default and pack that language with the theme. You can see the `monument-valley/languages/` folder for translation files. And once you switch your WordPress to Slovak language, the theme will load that language automatically to replace all its English texts. The same will work for Chinese once you translate the theme with Poedit or Loco Translate.

    Hope this will help.

    Best regards,

    Oliver Juhas
    WebMan Design

  •  27
  • Lawrence replied

    Dear Oliver,

    I am most grateful about your long reply. Your customer service is simply awesome! I am attracted to the appearance and interface of MW valley and therefore committed to this theme. 

    Here are my resonses:

    (1) I do tried your suggestion. In my case, it is a bit complicated. I am a Hong Kong Chinese. I write a medical blog to serve local community which is suppose to read Chinese. The Wordpress back end platform is multilingual and Blog writers are free to choose what language to use the platform. I know English and Chinese. However, the terms in the menu or in the whole Wordpress editing platform should be best read in English because these terms, such as "plug-in",  are originally evolved in Western society. Once they are translated to Chinese, it can still be read to me but they are difficult to easily appreciated. It tremendously affect my efficiency on editing the web page in the Wordpress back end. What I want to say is: the language of the WP website can be changed to Chinese but is not my preference. In fact, if I change it to Chinese, BOTH the editing platform and the web pages are all switched to Chinese. I cannot do it separately. Hence, I work in the back end in English, and post the web sites in Chinese. As the WP editor simply allows Chinese language input, my whole site is 95% in Chinese. Yet, there are still some minor things in the theme are in English which I pointed out earlier. They include: select category, select month, next post, previous post, related posts, share, continue reading..., search, month names of 12 months. 

    For your suggestion, if I don't get it wrongly, it is basically switch the whole site in Chinese, then change the language pack via loco language plug in. I tried but I have to face the problem of working on Chinese WP editing that I mention above. Even if I accept it, it does not help to modify the strings I state in last paragraph. I open all the language packs, no one mention about "continue reading..." (which is suppose to be related to the read more functionality. 

    What I finally did is to find a code to change "select category" to the Chinese string I wanted and inserted it to function.php via a Snippets plugin. It works. Yet, this method heavily relied on coding knowledge, which is what I don't have. Anyway, I can't find the rest from Google. I find a plug in and successfully identify "continue reading" and everntually modified the string into Chinese by myself!!! I also delete "select month" widget, as I fail to change it. I go to Jetpack and change the share button. The end result is almost 99% success. I am afraid English months name is very difficult to change.

    (2) I have another issue to raise. When I am working with the WP editor, I find that it very often automatically add a Tag in my text which I do not intend to do. I attach two screen shots for your reference. You can see a little tag image in the middle of the two images adjacent to hyperlinked texts. This issue is very annoying for me. This tagging behavior is quite unpredictable. I suspect it is related to Chinese language. It is also related to using some punctuation marks, such as colon and bracketing. WP will automatically add a tag referring to a tag link in my site that I never intend to. In order to avoid it, I have to manipulate the paragraph and try deleting some spaces, remove some punctuation and so on and try to get rid of this unpredictable behavior. 

    Now, I just change the "related posts" to Chinese language, but you can see in the screenshot, there is a old man doing weight lifting, you can see the text above. That is it. It is suppose to be a Chinese translation for "related posts". There shouldn't be hyperlinking and a tag, right? I just add the text in the Theme widget editing platform to do so. In that editing area, no one can add a hyperlink and a tag, right? Hence, there is something wrong with the WP. I know this is probably not related to your theme problem....

    (3) Finally, concerning the "menu" button in the mobile platform. For Monument Valley theme, it is very cool to have a circular menu button at the bottom in the mobile platform. Yet, I find that my clients or friends easily ignore its existence and fail to open it up. They keep asking when to find the menu!!! The reason is simple: They are accustomed to open menu on the top. When there are lots of figures, pictures and sharing buttons on the screen, users can easily ignore this fancy menu button. However, MW theme does not allow user to modify menu in mobile mode. 

    Personally, I use desktop to browse 80% of the time. Hence, I put a lot of my energy making the web site look good in desktop. However, majority of the public browse via mobile devices. It is equally important to make the site appealing to them. 

    Thank you for your time and patience answering my questions! Your commitment to this theme development is highly appreciated!

    Cheers,

    Lawrence

    Attached files:  Screen Shot 2017-05-19 at 9.32.51 AM.png
      Screen Shot 2017-05-19 at 9.32.45 AM.png

  •  27
    Oliver replied

    Hi Lawrence,

    Please note that your questions number 2 and 3 are not related to the original issue of this ticket and thus should be logged as a new, separated tickets. I like to keep tickets on this support center monothematic so it's easy to close the issue once it's resolved.

      

    1. WordPress language setup

    Please note that due to how WordPress works, you have to set it up to use a Chinese language. Otherwise your translations will not work on your website. If you want to have WordPress admin in English you can try using a plugin for that, or it is also possible to set it on your user profile in Users > Your Profile.

    It's also difficult to provide short answers to your question as it is also not-theme related. Here are texts explained:

    • WordPress native texts: select category, select month, search, month names.
      These texts will be automatically translated once you switch to your WordPress to Chinese.
    • Theme texts: next post, previous post, continue reading.
      You need to translate the theme texts with procedures described below. I suggest you to use Poedit just like described in theme documentation. Once you open the `monument-valley/languages/monument-valley.pot` file you will see all these texts there, ready for translation.
    • Plugins texts: related posts, share.
      You need to check the plugin's documentation for how to translate it. The above texts seems to be related to Jetpack plugin, which you can translate at its WordPress repository (the similar goes for WebMan Amplifier plugin if you use it).

    Please read more on WordPress localization at https://codex.wordpress.org/Installing_WordPress_in_Your_Language and https://make.wordpress.org/polyglots/handbook/ to understand how it works.

     

    2. WP editor issue

    This is not a theme, nor WordPress related issue. The tag icon seems to be coming from the Autoptimize plugin you are using. Please set up the plugin to not to insert the tag icon or contact the plugin support for solution or disable the plugin altogether.

    For future, you can read Using browser code inspector article for how to trace this type of issues.

     

    3. Mobile menu issue

    Please note that this is a theme modification and I only provide tips for those - please read Terms of Service. The theme was designed for the best user experience and I understand that most websites have the mobile menu button on top, but it is much easier to reach when it is on bottom - and this is not only my idea, but many websites adopt this philosophy nowadays.

    If you want to move the mobile menu, you can do so with your own custom CSS (please read Custom CSS article). If you are not familiar with CSS coding, I suggest hiring someone that can help, you can try https://studio.envato.com/. Here is some CSS to get you started:

    @media only screen and (max-width: 41.9375em) and (min-height: 28em) {
        .menu-toggle {
            position: relative;
            width: auto;
            height: auto;
            left: auto;
            bottom: auto;
            padding: .76543em 1.7037em;
            line-height: 1.62;
            border-radius: 5rem;
            z-index: auto;
            box-shadow: none;
            opacity: 1;
            -webkit-transform: none;
            -ms-transform: none;
            transform: none;
            -webkit-animation: none;
            animation: none;
        }
        .menu-toggle::before {
            display: inline;
            margin-right: .62em;
        }
        .is-active .menu-toggle {
            display: inline-block;
            position: fixed;
            width: 3rem;
            right: 1.62rem;
            padding: 0;
            margin-top: 1.62rem;
            line-height: 3rem;
            text-align: left;
            text-indent: -999em;
            border-width: 0;
            z-index: 999;
        }
        .is-active .menu-toggle::before {
            position: absolute;
            width: 100%;
            left: 0;
            top: 0;
            text-align: center;
            text-indent: 0;
        }
        .main-navigation-container {
            -webkit-transform-origin: 50% 0;
            -ms-transform-origin: 50% 0;
            transform-origin: 50% 0;
        }
    }

    Best regards,

    Oliver Juhas
    WebMan Design

  • Lawrence replied

    Dear Oliver,

    I must express my highest salute to you for solving all my problems! I  simply want a Chinese web page while maintaining an English admin page. I struggle for weeks to work out. As I never realise there is such a simple plug-in to do this job, I totally get loss. Thanks for guiding me and helping me out!

    Concerning the tag issue, it is actually a plugin about Auto Tag link. It is actually useless for me and I can never imagine it is the culprit. Good job, Oliver, you can solve the puzzle! I thought this problem would be forever and no one could help me out.

    Lastly, the CSS for the mobile menu simply WORKs! It is just what I want!

    I appreciate very much about your patience and clear documentation about all the solution.

    I will keep writing my blog with your theme! Thank you once again!

    Lawrence

  •  27
    Oliver replied

    Hi Lawrence,

    I'm glad to hear you have managed to resolve the issues, good job!

    Can I ask you maybe to rate the theme/support provided at ThemeForest (here is how)? Thank you!

    Best regards,

    Oliver Juhas
    WebMan Design