Wordpress Localization
complete
Ziggeo
complete
This is available in version 3.0 of our core plugin
There is now a page called "Translations Panel" within our WordPress core plugin which will allow you to add translations for any string in the player or recorder. It will then automatically add those strings to the page for you. All you need is to filter through and add translations of interest, then click on Save button at the bottom of the page.
Ziggeo
in progress
Ziggeo
The code you have added looks right. However if this is on Wordpress website, the right data will be provided by the core plugin: https://wordpress.org/plugins/ziggeo/
In context of the plugin being present, you can just add the following to your page:
- Add the "Custom HTML" Gutenberg block (or similar of your preference)
- Add the following code within it:
<script>
ZiggeoApi.V2.Locale.mainLocale.register({"ziggeoplayer.video-processing": "Congrats Your recording has uploaded"}, 10);
</script>
As you do, it should work ;)
* Please do check the localization keys here: https://ziggeo.com/docs/sdks/javascript/browser-integration/localization and use
ZiggeoApi.V2.Locale.mediaLocale.register()
for keys starting with
ba-
For all other keys (not starting with "ba-"), please use
ZiggeoApi.V2.Locale.mainLocale.register()
C
Chris Mocock
Ziggeo: ive tried cha ging other text like the initial record bitton which works but it seems that "ziggeoplayer.video-processing" is broken or possibly not the correct code,please can you check this?
Ziggeo
Chris Mocock: I apologize, this is my fault. I should have added additional info.
Depending on the key you are using you will either need to use:
ZiggeoApi.V2.Locale.mediaLocale.register
orZiggeoApi.V2.Locale.mainLocale.register
As you can see one is using
mediaLocale
and another is using mainLocale
.We are considering changing this to be more straightforward so you do not need to know which one to use.
Generally the keys starting with "ba-" should be combined with
mediaLocale
.On the other hand the non "ba-" should be within
mainLocale
* Will also update the original answer to reflect this
Ziggeo
planned
We plan to extend the support for translations of our JS side texts as well. No ETA at this time.
C
Chris Mocock
Ziggeo:
I am using teh below to try to change some text but does not work, please can you advise?
ZiggeoApi.V2.Locale.mediaLocale.register({"ziggeoplayer.video-processing": "Congrats Your recording has uploaded"}, 10);
Full Header info below
<link rel="stylesheet" href="//assets.ziggeo.com/v2-stable/ziggeo.css" />
<script src="//assets.ziggeo.com/v2-stable/ziggeo.js"></script>
<script>
var ziggeoApp = new ZiggeoApi.V2.Application({
token: "APPLICATION_TOKEN",
webrtc_streaming_if_necessary: true,
webrtc_on_mobile: true
});
ZiggeoApi.V2.Locale.mediaLocale.all();
ZiggeoApi.V2.Locale.mediaLocale.register({"ziggeoplayer.video-processing": "Congrats Your recording has uploaded"}, 10);
</script>