How do I change Testimonials Widget text labels
The Template Way
See How to change testimonials layout.
The Localization Way
- The default
WPLANG
isen_US
.- Use
en_US.mo
anden_US.po
as the filenames of your localization changes if you’re sticking with US English. de_DE
– Germanen_UK
– UK Englishes_ES
– Spanishfr_FR
– Frenchja_JP.EUC-JP.mo
– Japanese in EUC-JP encodingzh-TW
– Traditional Chinesezh_CN
– Simplified Chinese
- Use
- Create localized
YOUR_WPLANG.mo
andYOUR_WPLANG.po
files fromlanguages/testimonials-widget.pot
.- See Translation Tools of Translating WordPress for help.
- Ensure that
YOUR_WPLANG.mo
andYOUR_WPLANG.po
files contain the correctLanguage:
tag likeLanguage: es_ES
and"Language: es_ES\n"
respectively. - Example: See screenshot 21. “Poedit Catalog properties”
- Create a directory named
languages
inside ofwp-content
. - Put your
YOUR_WPLANG.mo
andYOUR_WPLANG.po
files into yourwp-content/languages
directory. - Set
WPLANG
inwp-config.php
to your chosen language.- See Using Localizations of Translating WordPress for help.
- Ex:
<?php define('WPLANG', 'de_DE'); ?>
Sometimes the above doesn’t work, so…
- Create localized
testimonials-widget-YOUR_WPLANG.mo
andtestimonials-widget-YOUR_WPLANG.po
files fromlanguages/testimonials-widget.pot
. - Put your localized
testimonials-widget-YOUR_WPLANG.mo
andtestimonials-widget-YOUR_WPLANG.po
files into directorywp-content/plugins/testimonials-widget/languages/
. - Set
WPLANG
inwp-config.php
to your chosen language.
When done translating, please send your translation for inclusion with the Testimonials Widget plugin release.
The JavaScript Way
An example for testimonials forms
<script type="text/javascript">// <![CDATA[ jQuery(document).ready(function() { jQuery("#post_title").attr('placeholder', '"Mary" or "Nurse on pediatric floor"'); jQuery(".button-primary").prop('value', 'Thank a Nurse'); }); // ]]></script>