bobbingwide / oik-bob-bing-wide

More lazy smart shortcodes
https://www.oik-plugins.com/oik-plugins/oik-bob-bing-wide-more-lazy-smart-shortcodes/
GNU General Public License v2.0
2 stars 0 forks source link

100% translatable and localizable #23

Closed bobbingwide closed 2 years ago

bobbingwide commented 7 years ago

As part of making oik 100% translatable and localizable it's time to extract the shortcode help, syntax and example logic from oik for the shortcodes which were originally in oik but are now implemented in oik-bob-bing-wide. Most of this code is in oik-sc-help. This will reduce the number of strings that need to be translated for oik.

Note: for translated help text oik-bob-bing-wide need not be dependent upon oik v3.2 for this to be implemented. We just need to implement a filter function for _sc__help. i.e. It should work with oik v3.1.n

See also https://github.com/bobbingwide/oik/issues/9

bobbingwide commented 7 years ago

IMO: The function wp__help() can be deleted from libs\oik-sc-help.php without the need for any deprecation.

bobbingwide commented 7 years ago

For wp__example()

bobbingwide commented 6 years ago

We also need to change code that uses deprecated files in oik, updating to shared libraries. This will mean that oik-bob-bing-wide will be dependent upon oik v3.2.3

bobbingwide commented 6 years ago

In other cases, to avoid deprecated messages, we need to require the .php version of the file rather than the .inc version.

bobbingwide commented 4 years ago

This’ll have to remain open since the new blocks are not properly localizable. I’ve not tried implementing the necessary logic to enable blocks to be translated.

bobbingwide commented 2 years ago

Blocks have been translatable since they were built with wp-scripts. See #42 Closing now that they've been updated again with new logic developed in v2.2.1