plate icon indicating copy to clipboard operation
plate copied to clipboard

Looking for translation help

Open joshuaiz opened this issue 6 years ago • 5 comments

I'm looking for help with translation for the Plate theme. There are two things I could use help with:

  1. Finding places in the theme where we can add localization. I'll start on this for future updates.
  2. Updating and adding the respective translations.

This is my first foray into localization so once we have delineated the places that can be translated in the theme, we'll need people who can translate those into their respective languages and pull those in.

I've found this tutorial but it is a bit dated: https://wp.smashingmagazine.com/2011/12/internationalizing-localizing-wordpress-theme/

If anyone has some other links or resources outside of the Codex and Developer Tools, please add them here.

Also, I know I should have been conscious of localization from the get go however this theme started as an internal project for my studio so we are a bit late to the game. Better late than never and now that this is out there, I'd like it to be as accessible as possible so any help would be appreciated.

joshuaiz avatar Jan 22 '18 02:01 joshuaiz

Any thoughts on RTL implementation? I'm working on a project now where this will be needed, so looking at SCSS solutions for that

thetwopct avatar Feb 08 '18 05:02 thetwopct

@thetwopct We don't have anything formal but the theme does include a .rtl body class where you could add any styles.

Just doing a casual search I found these: https://github.com/davidecantoni/sass-rtl-mixin https://davidwalsh.name/stylus-parent-selectors (scroll to comments to see sass mixin)

I'm happy to pull in rtl support if you come up with an elegant solution or want to include one of the above mixins.

joshuaiz avatar Feb 08 '18 05:02 joshuaiz

Just an update on this: with the 1.2.5 commit I cleared out all of the old Bones translation files, created a new .pot and default .mo and .po file for English (US).

I would love to have more translations included with this theme so if you can help translate Plate into your language it would be greatly appreciated.

If you don't know how to get started, ask here and we can point you in the right direction. Thanks!

joshuaiz avatar Jun 10 '18 05:06 joshuaiz

Hey @joshuaiz, I speak Spanish natively, so I can help out with the Spanish translation. I have no idea how to go about this. Can you point me in the right direction?

moyamanuel avatar Jun 16 '18 22:06 moyamanuel

Hi @moyamanuel that would be great!

Check this article: https://www.smashingmagazine.com/2011/12/internationalizing-localizing-wordpress-theme/

...and scroll down to the 'Providing Translation' section.

To get started, download or clone the Plate theme to your machine. The .pot file is in /library/translation. There is also a ReadMe in that folder with more translation resources and information.

From there, to translate you will need to download Poedit: https://poedit.net. Then you load the .pot file from the theme which contains all of the translatable strings. Enter the Spanish translations and then have Poedit spit out the .po and .mo files. Make sure to name them according to the ISO codes as explained in the Smashing Magazine article so either: es_ES.po/mo or es_MX.po/mo (for Mexican Spanish).

If you're stuck, add a comment here and I can help.

joshuaiz avatar Jun 19 '18 17:06 joshuaiz