0

我使用 polylang 插件使我的网站成为多语言的,并且某些文本/按钮文本无法翻译。

<div class="col-md-8 col-md-offset-2 text-center">
                <h1>Gwarancja przyjętych wartości</h1>
                    <h4 class="pl-20 pr-20 pv-20">Wieloletnie doświadczenie jak i relacje dealerskie gwarantują Najemcy konkurencyjne ceny i optymalny proces działania.</h4>
                    <div class="pv-30">
                        <a href="http://conspectusdelux.com/oferta" class="smooth-scroll scroll-spy btn btn-blue">Zobacz ofertę</a>
                    </div>

我在wordpress中有这段代码并试图通过polylang插件翻译它..我安装了polylang字符串插件但看不到它......我的问题是如何使用pll_register_string将它添加为字符串或如何以其他方式翻译它. 我在 Php 方面很差,所以为什么我在这里问你们.. o 建议或代码示例,我可以自己使用和工作。

谢谢

4

1 回答 1

0

我有这样的东西

<div class="row">
            <div class="col-md-8 col-md-offset-2 text-center">
                <h1><?php the_field('sekcja_w_stopce_-_tytul', 'option') ?></h1>
                    <h4 class="pl-20 pr-20 pv-20"><?php the_field('sekcja_w_stopce_-_tresc', 'option') ?></h4>
                    <div class="pv-30">
                        <a href="<?php echo get_home_url(); ?>/oferta" class="smooth-scroll scroll-spy btn btn-blue">Zobacz ofertę</a>
                    </div>
                    <div class="separator"></div>
                            <div>
                                <?php if( get_field('link_-_twitter', 'option') ) { ?>
                                    <div class="social-circle-border">
                                        <a href="<?php the_field('link_-_twitter', 'option')?>" target="_blank"><i class="fa fa-twitter social"></i></a> 
                                    </div>
                                <?php } if( get_field('link_-_facebook', 'option') ) { ?>
                                    <div class="social-circle-border">
                                        <a href="<?php the_field('link_-_facebook', 'option')?>" target="_blank"><i class="fa fa-facebook social"></i></a> 
                                    </div>
                                <?php } if( get_field('link_-_instagram', 'option') ) { ?>
                                    <div class="social-circle-border">
                                        <a href="<?php the_field('link_-_instagram', 'option')?>" target="_blank"><i class="fa fa-instagram social"></i></a> 
                                    </div>  
                                <?php } if( get_field('link_-_youtube', 'option') ) { ?>
                                    <div class="social-circle-border">
                                        <a href="<?php the_field('link_-_youtube', 'option')?>" target="_blank"><i class="fa fa-youtube social"></i></a> 
                                    </div>
                                <?php } ?>
                            </div>
                        </div>  
                    </div>

H1, H4 这是我想做多语言的吗

于 2017-08-26T17:52:41.950 回答