Add english .po, .mo language files in theme folder

Stagger Lee
1818 Posts
Stagger Lee posted this 28 September 2016

Just for more easy editing for multilanguage websites. And make on Save one check for all our custom strings in template files, and put them in files.
PO, MO editors (making new files) costs money (licence) but editors (editing existing) are free. At least when editor needs to scan theme files for all strings.

You need to have a viewpoint Users many times start with native language when making theme, and later add english language. Problem are all those buttons, readmore captions, etc.

I just tested with Poedit PRO and works well, it scans all my custom strings and make new english files. When on front I switch language to english it works nice.

As I sad problem is many Themler Users start to develop theme in its own native language, and english comes later/last.
So all those (say german) strings need to be translated to english.
One habbit difficult to remove now.

Maybe it is easy to just copy other language files, rename and edit them. But I dont know what about scaning of all new custom strings. Would they be there, I doubt.

Just for more easy editing for multilanguage websites. And make on Save one check for all our custom strings in template files, and put them in files. PO, MO editors (making new files) costs money (licence) but editors (editing existing) are free. At least when editor needs to scan theme files for all strings. You need to have a viewpoint Users many times start with native language when making theme, and later add english language. Problem are all those buttons, readmore captions, etc. I just tested with Poedit PRO and works well, it scans all my custom strings and make new english files. When on front I switch language to english it works nice. As I sad problem is many Themler Users start to develop theme in its own native language, and english comes later/last. So all those (say german) strings need to be translated to english. One habbit difficult to remove now. Maybe it is easy to just copy other language files, rename and edit them. But I dont know what about scaning of all new custom strings. Would they be there, I doubt.
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Stagger Lee
1818 Posts
Stagger Lee posted this 28 September 2016

How to translate simple Button Controls ?
I see now Text of buttons are put there as simple text.

It is one not small problem for multilanguage websites.

How to translate simple Button Controls ? I see now Text of buttons are put there as simple text. It is one not small problem for multilanguage websites.
Stagger Lee
1818 Posts
Stagger Lee posted this 28 September 2016

It could be solved if button accepted tags inside Title. We could add plugin language strings, in some language plugin(s). But Themler deletes it, expect pure Text there.

It could be solved if button accepted tags inside Title. We could add plugin language strings, in some language plugin(s). But Themler deletes it, expect pure Text there.
Support Team
Support Team posted this 29 September 2016

Hi,

If you need to add custom translatable string I suggest that you try using CMS Code control with the code as follows:

<a href="#" class="bd-button"><?php echo __('My content','theme-text-domain');?></a>

This is related to custom button text or headings, for example.

In most of cases the controls with specific titles created by Themler have translatable titles (wrapped with translation function). In this case you just need to have appropriate key in your po and mo files.

Thank you,
Olivia

Hi, If you need to add custom translatable string I suggest that you try using CMS Code control with the code as follows: `<a href="#" class="bd-button"><?php echo __('My content','theme-text-domain');?></a>` This is related to custom button text or headings, for example. In most of cases the controls with specific titles created by Themler have translatable titles (wrapped with translation function). In this case you just need to have appropriate key in your po and mo files. Thank you, Olivia
Stagger Lee
1818 Posts
Stagger Lee posted this 29 September 2016

Hi Olivia.
Sounds nice.

I cant use this snippet because it wont give possibility to style button in More Styles - Button. If you fix it in some future update then it is OK.

Hi Olivia. Sounds nice. I cant use this snippet because it wont give possibility to style button in More Styles - Button. If you fix it in some future update then it is OK.
Support Team
Support Team posted this 30 September 2016

Hi,

Something like this should also work in the CMS Code control:

<input type="button" name="Submit" value="<?php echo __('My content','theme-text-domain');?>">

Thank you,
Olivia

Hi, Something like this should also work in the CMS Code control: `<input type="button" name="Submit" value="<?php echo __('My content','theme-text-domain');?>">` Thank you, Olivia
You must log in or register to leave comments